Commit Graph

34 Commits

Author SHA1 Message Date
Neil MacDougall 7378ebd065
Add extension catalog page and initial contents (#13769)
* Add extension catalog page and initial contents

* Address PR feedback

* Tweaks to the disclaimer text

* Fix text for icon size
2025-03-20 09:15:54 +00:00
Jordon Leach 1621fe5d3b
Return the old path when `next` is missing from the url (#13078) 2025-01-13 13:20:01 -05:00
Alexandre Alves 68c7c83bee
migrate docusaurus to v3 and add search for documentation (#12681)
* migrate docusaurus to v3 + add search for documentation

* add script to run built assets on docusaurus
2024-11-28 11:44:56 +00:00
Alexandre Alves 2c0c8ad30f
Extensions docs update (#12491)
* update docs with migration guide + new mechanism to fix annotations + other small changes

* Update docusaurus/docs/extensions/advanced/fix-annotations-published-extensions.md

Co-authored-by: Jordon Leach <jordonleach@gmail.com>

* update docs for annotations fix + update dates format on changelog + fix link on homepage

* configure redirect plugin (only works in production)

* update redirect config

* Update docusaurus/docs/extensions/advanced/fix-annotations-published-extensions.md

Co-authored-by: Jordon Leach <jordonleach@gmail.com>

* Update docusaurus/docs/extensions/advanced/fix-annotations-published-extensions.md

Co-authored-by: Jordon Leach <jordonleach@gmail.com>

* Update docusaurus/docs/extensions/advanced/fix-annotations-published-extensions.md

Co-authored-by: Jordon Leach <jordonleach@gmail.com>

* Update docusaurus/docs/extensions/advanced/fix-annotations-published-extensions.md

Co-authored-by: Jordon Leach <jordonleach@gmail.com>

* hide docs on fixing annotations

* add simple change to re-trigger test

---------

Co-authored-by: Jordon Leach <jordonleach@gmail.com>
2024-11-07 09:53:31 +00:00
Jordon Leach dd0b605c56
Refactor extensions docs to enable versioning (#12355)
* Refactor extensions docs to enable versioning

* Fix relative links

* Change next version label to 3.x.x
2024-11-04 16:26:59 +00:00
Neil MacDougall 136ae6ad78
Fix broken links on readme and docs homepage (#11161)
* Fix broken links on readme and docs homepage

* Fix lint
2024-06-03 17:37:27 +01:00
Alexandre Alves 4ae1459cae
make docusaurus public-facing area exclusive to extensions (#11121) 2024-06-03 12:58:55 +01:00
Neil MacDougall 3451cdd287
Extensions docs: Add cname to gh-pages branch (#11007)
* Trying a different URL

* Add CNAME to the gh-pages branch

* Update docusaurus.yaml
2024-05-10 19:13:51 +01:00
Neil MacDougall ad648104ca
Trying a different URL (#11006) 2024-05-10 18:16:54 +01:00
Alexandre Alves a18e6bff25
revert url change (#11004) 2024-05-10 17:08:40 +01:00
Neil MacDougall 52bc23bca6
Update docusaurus for extensions domain (#11002) 2024-05-10 15:50:52 +01:00
scures 21aa606cd7
chore: fix linter issues 2023-05-04 13:01:15 +02:00
Kenneth Wimer f404780c0f Changes wording for old posts 2023-04-14 14:22:21 +02:00
Kenneth Wimer 58c0546e6f Adds post on truncation and configures sidebar and number of posts 2023-04-14 11:32:08 +02:00
Richa 52f10cb080 Added blog section back 2023-04-03 12:45:02 +02:00
Richa 67c844952c Fixed lints 2023-03-03 13:53:36 +01:00
Richa dc3349b6b9 Added guides section 2023-03-03 08:48:11 +01:00
Richa 3df1238478 Added logo for dark theme 2023-01-04 16:48:18 +01:00
Neil MacDougall fc377a0eb2
Extension and other docs (#7551) 2022-11-28 15:04:53 +00:00
Phillip Rak 3d410d0974 Apply linter auto-fixes
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2022-11-16 18:38:20 -07:00
Neil MacDougall 44fd817f5b
Tweak docs landing page (#6746)
* Tweak landing page

* Fixed text, links

* Fixed lint error

Co-authored-by: bisht-richa <richa.bisht@suse.com>
2022-08-25 13:31:22 +01:00
richa f701dfef8f
Documents hierarchy (#6522)
* Modifed sidebar, docusaurus.config and custom css

* Added sub directories

* Changes section name and fixed link error

* Fixed Getting Started and Components & Design kit svg size

* Added baseUrl dashboard

* Update Cypress to version 10 (#6146)

* Run Cypress migration scripts; Update failing parts

* Move env var assignments to Cypress configuration; Correct env patterns

* Correct imports within the Cypress tests

* Correct TS linting configuration errors after update

* Return directly spec path in cypress configuration

* Change global token setting name

* Minor improvement to cluster dashboard page for alerts tab (#6536)

* HARVESTER: Fix namespace filter wrong on Harvester page (#6523)

* Fix workspace filtering
- This was broken by https://github.com/rancher/dashboard/pull/6261
- The `activeNamespaceCache` depends on the product (fleet requires workspaces, everything else namespaces)
- This needs updating when going to or from fleet

NOTE - On `head` (but not `ui-dashboard-index` `latest`) refreshing on the explorer pods page does not show the correct namespace filtered pods

Small tidyup for `activeNamespaceCache` and `activeNamespaceFilters` getters

* Take NS filter into account when updating SortableTable's `arrangedRows` inside ResourceTables

* Use web worker to throttle counts and schema changes (#6421)

* Use web worker to throttle counts and schema changes

* Delete nodes.md

* Address PR feedback

* Small tidy up

* Fix dependencies for plugins

* Address PR feedback

* Fix lint issue

* Improve presentation of add Member dialog (#6500)

* Improve presentation of add Member dialog

* Updated for PR feedback

* kubeconfig-default-ttl-minutes setting takes numeric input only

* Selected webhook type is persisted in UI

* HARVESTER: fix image clone miss label

* HARVESTER: validate image displayName

* HARVESTER: prevent submit

* HARVESTER: delete displayName RFC1123 validations

* Adds form-validation back in after deployments redesign

* Revert "Use web worker to throttle counts and schema changes (#6421)"

This reverts commit 4687fbca17.

* Script to create standalone build for testing

* Remove debug

* Add missing socket

* Tweaks and fixes
- Remove unused mimeTypes (and eslint file)
- add some build output dirs to gitignore
- fix serve of html files (content was in ui/dist instead of ui)

* Create unit test and linting jobs with GitHub Actions (#6562)

* Add GitHub Actions on push to run lint and unit test

* Store unit test coverage as artifact

* Correct unit tests coverage path collection

* Add i18n linting on CI

* Correct rancher-component path

* Remove pull request trigger from Drone

* Fix linting from master

Co-authored-by: Richard Cox <richard.cox@suse.com>

* Fix live and delayed columns not updating

* Fix activeNamespaceCache given change in master

* Handle changes in sort field or order
- also created convenience method watcherUpdateLiveAndDelayed

* fix azure warning banner link

* do not assume ec2 vpc obj have Tags

* When adding alerting rule, provide a default namespace label

* Revert "Merge pull request #6553 from mantis-toboggan-md/revert-6421"

This reverts commit c86abfae23, reversing
changes made to 57f9a3706c.

* Fix web worker
Inline worker bits to avoid CORS issues in chrome when dashboard is `-head`

* fix issue when on first login we were setting an empty value to state.workspace because user doesnt have an prefs set (#6586)

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>

* Incremental loading and manual refresh features (#6543)

- Add manual refresh experimental feature to specific list views
- Add incremental loading experimental feature to specific list views

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Richard Cox <richard.cox@suse.com>

* Group up GHA config under test; Remove push cases (#6587)

* Temporarily disable FOSSA

* Fix disabled drone build

* Namespace filters apply on first page load

* Refactor namespace caching and filtering

* Fix build

* Fix flicking between fleet workspaces with equal resources
- fleet workspace switch toggles straight between 2 selections
- this results in the case that the row count doesn't change
- the `activeNamespaceCacheKey` cache is used to cover this case
- this was broken given in original pr and after my suggested edit

* fix-issue-multiple-resource-counts-on-resource-fetch-mixin (#6589)

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>

* Remove unneeded API call to get projects from local cluster

* Harvester: fix override when saving multiple VMs

* Harvester: Fix reserved memory edit issue

* HARVESTER: fix template OSType not automatically filled

* Harvester: typology field is inputable if get nodes failed

* Harvester: move harvester specific code out of PodAffinity

* default podaffinity  namespaces prop to null instead of empty array

* Added ranche fav icon, removed not used images

* Tweaks to the performance settings & loading indicator
- Following UX review this is the first set of changes
- The text on the settings page has been improved
- The background of the incremental loader has been removed
- Fixed a typo (`UI_PERFORNMANCE`)

* E2E: Create dashboard access for reviewing tests results (#6576)

* Add sorry-cypress library, commands and configuration

* Replace e2e test run ID to be used for the dashboard with title, id and number run

* Add missing instruction for the dashboard

* Set default browser to Chrome

* Updated env template

* do not attempt to filter-by-namespace for unnamespaced harvester resources

* Reset user preferences on E2E start or requests (#6535)

* Add user preference command for Cypress stubs

* Include global types to Cypres TS configuration

* Prevent distributed interface issues on lint

* Improve initial load of Home and Cluster Dashboard pages

Home Page
- Don't block whole page on loading of mgmt and prov clusters
- Use table `loading` indicator when clusters are loading
- Use correct cluster count (with harv cluster filter) - To confirm

Cluster Dashboard
- EventsTable - use standard table loading indicator
- Don't block on fetch at all (or show page loading indicator)
  - Remove fetch for nodeTemplates and rke1NodePools. I went through a lot of code and don't think these are needed
  - Reminaing calls for Node and Metrics can happen at the same time
- Forget additional resource types when leaving page
- Optimise fetch of management nodes

Pre-Page optimisations
- Authentication Mixin
  - if applicable, fetch `principal` 'me' same time as `user` 'me'

Other tweaks
- Don't show AwsComplianceBanner or AzureWarning until management store ready

* Revert changes to authentication
- previously combined request for user and principal together, instead of making them sequentially
- this should have been safe (both calls will fail or succeed given auth state)...
- ... might not be given ways requests are handled (i chickened out)

* Address PR feedback
- Split calls to `setPromiseResult` into multiple lines
- Ensure label is correctly used (drop duplicate text)
- Improve beforeDestroy comment
- Add JSDoc to setPromiseResult

* Use getters instead of `setPromiseResult` for known resource types

* Create `diagnostic` page (#6603)

* Adds diagnostic page, accessible via the about page

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Richard Cox <richard.cox@suse.com>

* For certain roles hide concept of namespace outside of groups
Users who have no overaching view of the cluster (non-rancher admins, non-cluster owners)
- shouldn't see namespaces outside of their projects
- shouldn't be able to create namespaces outside of their projects (specifically not in a project)

* Fix namespace detail page when a namespace filter is applied
- Caused by `filteredRows` running causing `getActiveNamespaces` to run.. which in tern triggers other table's `filteredRows`, etc
- Fix is to only update `activeNamespaceCache` if there were actual changes
- Tested
  - ns detail page
  - project/namespaces list
  - fleet resources
  - fleet resources where there are only 1 entry in two workspaces

* Fix resource counts in side nav
- This looks like it was a regression from https://github.com/rancher/dashboard/pull/6570/files#diff-87b5f0108669b304fbe8fa4b9684ffb07e42c4c41320580a8768e6ab4edf23ddL72
- It worked at the time on my rancher (b8afb4e - 20th July). Bug appears on later versions. Not sure why
- `activeNamespaceCache` should be pretty safe now we only update it given genuine changes

* save harvester kubeconfig as secret

* add ownerref to harvester kubeconfig secret

* do not set ownerref on kube secret; add annotation

* add additional harvester kube secret annotation

* initial content for 2.6.7 (#6449)

* initial content for 2.6.7

Signed-off-by: Gary A Korhonen <gkorhonen@suse.com>

Fixes https://github.com/rancher/dashboard/issues/6430
Includes 2.6.6 blurb though there was only one bug addressed

* revised AWS blurb

* fixed typo in AWS bit

* Update shell/content/docs/en-us/whats-new.md

Signed-off-by: Gary A Korhonen <gkorhonen@suse.com>

Co-authored-by: Sergey Nasovich <85187633+snasovich@users.noreply.github.com>

* Update shell/content/docs/en-us/whats-new.md

Signed-off-by: Gary A Korhonen <gkorhonen@suse.com>

Co-authored-by: Sergey Nasovich <85187633+snasovich@users.noreply.github.com>

* Update shell/content/docs/en-us/whats-new.md

Signed-off-by: Gary A Korhonen <gkorhonen@suse.com>

Co-authored-by: Sergey Nasovich <85187633+snasovich@users.noreply.github.com>

* added MSAL copy & fixed some wording

* updated 2.6.6 section

* updated amazon billing

Co-authored-by: Sergey Nasovich <85187633+snasovich@users.noreply.github.com>

* force user to delete all ns in project if they cant see ns outside of projects

rm unused class

* Pull request template has question about browser

* reworded 1.24 blurb for 2.6.7 (#6621)

Signed-off-by: Gary A Korhonen <gkorhonen@suse.com>

* Harvester: remove Pod Scheduling on harvester cluster page

* Adding a windows deprecation banner to the registration command of rke1 clusters

https://github.com/rancher/dashboard/issues/5995#issuecomment-1206817132

* Fix package script and visibility of incremental loading indicator

Script Changes
- fixed `require` errors
- ensure dashboard ignores output of scripts (useful for local dev)

Dashboard Changes
- only show the resource loading indicator if incremental loading is enabled

* Modifed sidebar, docusaurus.config and custom css

* Added sub directories

* Removed not used images

* Added docusaurus in tsconfig.

* Updated baseUrl

* Formatting update

* Ensure local cluster kube node's can determine their cluster id
- We determine the cluster id via the node's `self` link
- Normally this is something like `k8s/clusters/c-m-274kcrc4/v1/nodes/nodeid`
  However for the local cluster this is only v1/nodes/nodeid`
- This meant that for local cluster nodes it's norman and mgmt nodes were unavailable
- From what i can this only affected it's ability to
  - determine it's role (though this had a working fallback)
  - determine if some actions were shown (and also execute them)

* Fix plugins

* Re-enable FOSSA check

* Fixed lint error

Signed-off-by: Gary A Korhonen <gkorhonen@suse.com>
Co-authored-by: Giuseppe Leo <giuseppe.leo@suse.com>
Co-authored-by: Catherine Luse <catherine.luse@gmail.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Qingyang Nong <n313893254@126.com>
Co-authored-by: Richard Cox <richard.cox@suse.com>
Co-authored-by: wujun <897415845@qq.com>
Co-authored-by: Sean <sean.mchugh@suse.com>
Co-authored-by: Nancy <42977925+mantis-toboggan-md@users.noreply.github.com>
Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Alexandre Alves <97888974+aalves08@users.noreply.github.com>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: yuzeng <cridequeger@yahoo.com>
Co-authored-by: Richard Cox <ricox@suse.com>
Co-authored-by: Gary A Korhonen <gkorhonen@suse.com>
Co-authored-by: Sergey Nasovich <85187633+snasovich@users.noreply.github.com>
Co-authored-by: Cody Jackson <cody.jackson@suse.com>
2022-08-22 16:30:44 +02:00
bisht-richa eebc043b33 Fixed text 2022-08-18 10:27:04 +02:00
bisht-richa 922cd9ef37 Added rancher repo in config and action yamal file 2022-08-17 18:51:58 +02:00
bisht-richa 90329552a7 Added ranche fav icon, removed not used images 2022-08-12 15:47:15 +02:00
bisht-richa 45db4cbed1 Fixed code 2022-07-19 08:59:44 +02:00
bisht-richa 2fbace9cae Fixes 2022-07-18 20:48:11 +02:00
bisht-richa 2d6a28a58b Fixed lint issues 2022-07-18 17:07:04 +02:00
bisht-richa adff20b023 Fixes in docusaurus.config.js 2022-07-18 10:19:54 +02:00
bisht-richa 7bd5a34062 Added /docusaurus.yaml 2022-07-18 09:46:25 +02:00
bisht-richa 4f8aab8296 Added docusaurus.yaml file 2022-07-15 16:27:52 +02:00
bisht-richa ab2215dee3 Update readme file 2022-07-14 16:37:01 +02:00
bisht-richa 06fdaa7eab Added extra files in docs file added introduction page 2022-07-14 11:02:53 +02:00
bisht-richa ea56d5d137 Created docusaurus setup 2022-07-13 09:05:16 +02:00