-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: add infrastructure tabs and state #2553
Conversation
772b013
to
2020ecd
Compare
frontend/e2e/infrastructure.spec.ts
Outdated
await infrastructureNavItem.click() | ||
await expect(page).toHaveURL(/\/infrastructure$/) | ||
|
||
const controllersTab = await page.getByRole('button', { name: 'Controllers' }); |
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.
Looks like the tabbing got a little messed up here?
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.
Ah yeah, biome
was ignoring the e2e
folder. Fixed!
setSearchParams({ tab: tabId }) | ||
} | ||
|
||
const currentTab = searchParams.get('tab') || tabs[0].id |
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.
What do you think about making the tab part of the path? Since these tabs are basically sub-pages of the Infrastructure page, that feels a little more canonical. Query params work too, though.
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.
Yeah it's a good question! I think for now I might leave the params and as I build this out re-evaluate the best solution here. Good call out!
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.
sounds good!
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.
very exciting!!
@@ -1,11 +1,11 @@ | |||
{ | |||
"extends": ["../biome.json"], | |||
"linter": { | |||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx", "src/**/*.cjs", "src/**/*.mjs", "tests/**/*.ts"], | |||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx", "src/**/*.cjs", "src/**/*.mjs", "tests/**/*.ts", "e2e/**/*.ts"], |
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.
sweeeet
586d21e
to
e07a6b0
Compare
e07a6b0
to
ee7f79a
Compare
ee7f79a
to
ae78a61
Compare
See #2552
Also created new
Tabs
andPill
components