-
Notifications
You must be signed in to change notification settings - Fork 86
Migrate tabs to Ant Design #6260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work on this migration! One detail: if you reload the page in the action center, it doesn't go back to the active tab even if it has the hash in the url.
Also, the tabs within the Privacy Request Details page don't have this functionality, but I happen to be working on that page so I can implement it to prevent conflicts.
@@ -52,10 +59,12 @@ Cypress.Commands.add("getAntSelectOption", (option: string | number) => | |||
typeof option === "string" | |||
? cy.get( | |||
`.ant-select-dropdown:not(.ant-select-dropdown-hidden) .ant-select-item-option[title="${option}"]`, | |||
{ withinSubject: null }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another Ant select fix: {withinSubject: null}
forces the query to search the whole document; without this, you can't use these commands inside a within
block because Ant's select menu renders outside the normal document flow.
@lucanovera Thanks for catching that, I've updated to fix the action center tabs and fixed the remaining test failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed action center tabs were fixed, everything working as expected. Approved!
…yca/fides into jpople/eng-158/tab-migration
fides
|
Project |
fides
|
Branch Review |
main
|
Run status |
|
Run duration | 01m 50s |
Commit |
|
Committer | jpople |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
2
|
|
0
|
|
0
|
|
0
|
|
3
|
View all changes introduced in this branch ↗︎ |
Closes ENG-158
Description Of Changes
Migrates all Chakra tabs in the admin UI to Ant Design's Tabs component, and implements a reusable hook to handle hashing tab URLs.
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.md
updatedmain
downgrade()
migration is correct and works