-
Notifications
You must be signed in to change notification settings - Fork 17
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
fix: remove tabs from add-deployment #670
Conversation
im going to invert the implementation and try out adding the tabs to ALL "add" resource pages and see what it looks like |
tried it, and with the expanded crumbs introduced in #669 the pages become very busy it also becomes difficult to track which tabs should redirect where, because a highlighted "Secrets" tab for example could lead you to repo secrets, or move you nowhere. to quote someone else, if we introduced bigger changes and reworked crumbs again then i think tabs and "add" resource pages could work well together, but not now |
im continuing with the original plan, removing tabs from the "add resource" pages, Deployments is the only one needing the fix RFR |
this removes the repo tabs from the "Add Deployment" page.
they arent supposed to be rendered on the resource-add pages. and if they are, then changes need to be made to make the tab actually highlight the resource (see the screenshot, no highlighting, and its the only resource-add page with the tabs)
it also adds the other pages and removes the switch short circuit (
_ ->
) for more type safety, to help catch this easier in the future when more pages are added.before
after
other subpage for reference (no tabs)