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

fix: remove tabs from add-deployment #670

Merged
merged 6 commits into from
Jun 15, 2023
Merged

fix: remove tabs from add-deployment #670

merged 6 commits into from
Jun 15, 2023

Conversation

plyr4
Copy link
Contributor

@plyr4 plyr4 commented Jun 9, 2023

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

Screenshot 2023-06-09 at 9 25 49 AM

after

Screenshot 2023-06-09 at 9 25 57 AM

other subpage for reference (no tabs)

Screenshot 2023-06-13 at 10 59 58 AM

@plyr4 plyr4 requested a review from a team as a code owner June 9, 2023 14:36
@plyr4 plyr4 self-assigned this Jun 9, 2023
@plyr4 plyr4 marked this pull request as draft June 13, 2023 19:11
@plyr4
Copy link
Contributor Author

plyr4 commented Jun 13, 2023

im going to invert the implementation and try out adding the tabs to ALL "add" resource pages and see what it looks like

@plyr4
Copy link
Contributor Author

plyr4 commented Jun 15, 2023

tried it, and with the expanded crumbs introduced in #669 the pages become very busy
Screenshot 2023-06-15 at 9 56 24 AM

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

@plyr4 plyr4 marked this pull request as ready for review June 15, 2023 15:45
@plyr4
Copy link
Contributor Author

plyr4 commented Jun 15, 2023

im continuing with the original plan, removing tabs from the "add resource" pages, Deployments is the only one needing the fix

RFR

@plyr4 plyr4 merged commit 7941227 into main Jun 15, 2023
@plyr4 plyr4 deleted the fix/deployment-add-tabs branch June 15, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants