Skip to content
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

Merged
merged 2 commits into from
Aug 30, 2024
Merged

Conversation

wesbillman
Copy link
Collaborator

See #2552
Screenshot 2024-08-29 at 12 21 36 PM
Screenshot 2024-08-29 at 12 23 22 PM

Also created new Tabs and Pill components

Screenshot 2024-08-29 at 12 15 51 PM
Screenshot 2024-08-29 at 12 15 56 PM
Screenshot 2024-08-29 at 12 16 00 PM

@wesbillman wesbillman requested a review from deniseli August 29, 2024 19:24
@wesbillman wesbillman requested a review from alecthomas as a code owner August 29, 2024 19:24
@wesbillman wesbillman requested a review from a team August 29, 2024 19:24
This was referenced Aug 29, 2024
@wesbillman wesbillman force-pushed the display-status-info branch from 772b013 to 2020ecd Compare August 29, 2024 19:25
await infrastructureNavItem.click()
await expect(page).toHaveURL(/\/infrastructure$/)

const controllersTab = await page.getByRole('button', { name: 'Controllers' });
Copy link
Contributor

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?

Copy link
Collaborator Author

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
Copy link
Contributor

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.

Copy link
Collaborator Author

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!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good!

Copy link
Contributor

@deniseli deniseli left a 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"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweeeet

@wesbillman wesbillman added this pull request to the merge queue Aug 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 29, 2024
@wesbillman wesbillman added this pull request to the merge queue Aug 29, 2024
@wesbillman wesbillman removed this pull request from the merge queue due to a manual request Aug 29, 2024
@wesbillman wesbillman force-pushed the display-status-info branch from 586d21e to e07a6b0 Compare August 29, 2024 21:13
@wesbillman wesbillman added this pull request to the merge queue Aug 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 29, 2024
@wesbillman wesbillman added this pull request to the merge queue Aug 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 29, 2024
@wesbillman wesbillman added this pull request to the merge queue Aug 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 29, 2024
@wesbillman wesbillman added the run-all A PR with this label will run the full set of CI jobs in the PR rather than in the merge queue label Aug 29, 2024
@wesbillman wesbillman force-pushed the display-status-info branch from e07a6b0 to ee7f79a Compare August 29, 2024 23:02
@wesbillman wesbillman enabled auto-merge August 29, 2024 23:11
@wesbillman wesbillman added this pull request to the merge queue Aug 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 29, 2024
@wesbillman wesbillman added this pull request to the merge queue Aug 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 30, 2024
@wesbillman wesbillman force-pushed the display-status-info branch from ee7f79a to ae78a61 Compare August 30, 2024 16:10
@wesbillman wesbillman enabled auto-merge August 30, 2024 16:15
@wesbillman wesbillman added this pull request to the merge queue Aug 30, 2024
@wesbillman wesbillman removed this pull request from the merge queue due to a manual request Aug 30, 2024
@wesbillman wesbillman added this pull request to the merge queue Aug 30, 2024
Merged via the queue into main with commit 6eabae2 Aug 30, 2024
87 checks passed
@wesbillman wesbillman deleted the display-status-info branch August 30, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-all A PR with this label will run the full set of CI jobs in the PR rather than in the merge queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants