fix: [UIE-9111] - DBaaS - Database landing page shows error state after plans column is sorted. - #12729
Conversation
…er plans column is sorted.
| direction={order} | ||
| handleClick={handleOrderChange} | ||
| label="plan" | ||
| label="type" |
There was a problem hiding this comment.
Does this need to stay "plan"?
There was a problem hiding this comment.
@corya-akamai On line 126, you'll see Plan which is the text that gets displayed in the column header cell. I left that as is so we still see Plan in the UI.
The label property is what gets passed up and eventually used in x-filter. You can see the onClick for TableSortCell here where it gets used.
https://github.com/linode/manager/blob/develop/packages/manager/src/components/TableSortCell/TableSortCell.tsx#L46
There was a problem hiding this comment.
However I also see it used for the aria-label in TableSortCell here:
https://github.com/linode/manager/blob/develop/packages/manager/src/components/TableSortCell/TableSortCell.tsx#L69
@mjac0bs Though "type" and "plan" refer to the same field, does the aria-label need to mirror the actual text we're seeing in the UI?
If so, then I'll need to reach out to UX to see if we want to make this change to the actual text that gets displayed.
There was a problem hiding this comment.
As Sam said, it does need to be consistent with the actual filter on the backend and this statement in the PR description isn't correct/maybe was not removed as intended:
The label for this column will continue to be "Plan". This is only an update to what what we provide to the backend call for the database list.
As for the aria-label, I think you're fine - there are plenty of other spots that handle the Plan/Type column with the aria-text slightly differing. (you can see them by searching active={orderBy === 'type'}).
| direction={order} | ||
| handleClick={handleOrderChange} | ||
| label="plan" | ||
| label="type" |
There was a problem hiding this comment.
As Sam said, it does need to be consistent with the actual filter on the backend and this statement in the PR description isn't correct/maybe was not removed as intended:
The label for this column will continue to be "Plan". This is only an update to what what we provide to the backend call for the database list.
As for the aria-label, I think you're fine - there are plenty of other spots that handle the Plan/Type column with the aria-text slightly differing. (you can see them by searching active={orderBy === 'type'}).
|
@mjac0bs Just saw your comment and updated the description to just say that the column header text will continue to be plan. Thanks for the quick response! |
Cloud Manager UI test results🎉 730 passing tests on test run #2 ↗︎
|
Description 📝
This pull request fixes in issue in the DBaaS Landing page where the error state is displayed shortly after "Plan" column is sorted.
Changes 🔄
List any change(s) relevant to the reviewer.
typewhich changes what we provide toorderByfor X-Filter in the database instances request and should work with both variations of the call (new and legacy)Scope 🚢
Upon production release, changes in this PR will be visible to:
Target release date 🗓️
8/26/2025
Preview 📷
How to test 🧪
Prerequisites
(How to setup test environment)
Reproduction steps
(How to reproduce the issue, if applicable)
Note: You can differentiate between the legacy and new database instances calls via the
platformfield in X-Filter.rdbms-legacyvsrdbms-default"orderBy": "plan"is provided.Could not apply filterVerification steps
(How to verify changes)
"orderBy": "type"providedAuthor Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed ✅