- Notifications
You must be signed in to change notification settings - Fork928
feat(site): Add Admin Dropdown menu#885
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecovbot commentedApr 6, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## main #885 +/- ##==========================================+ Coverage 65.92% 66.10% +0.17%========================================== Files 228 238 +10 Lines 14126 14221 +95 Branches 105 115 +10 ==========================================+ Hits 9313 9401 +88 Misses 3868 3868- Partials 945 952 +7
Continue to review full report at Codecov.
|
So far on the backend we've removed a ton of settings in the "Admin UI" in favor of flags on the coder start command. At this time I can't think of any settings we'll need for MVP, so it seems fine to leave it off for now. I know Github Oauth will land on settings, but I think that's officially "not MVP". I think any work toward the page itself is fine, because we will probably need one eventually, but I wouldn't prioritize the work or link to it yet. |
Can you merge latest main into this branch so that we get the Chromatic workflow to run |
Uh oh!
There was an error while loading.Please reload this page.
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.
Love seeing all the tests and stories!
@@ -0,0 +1,26 @@ | |||
import { fade, makeStyles, Theme } from "@material-ui/core/styles" |
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.
I like how much more reusable these arrows are now.
path={entry.path} | ||
title={entry.label} | ||
variant="narrow" | ||
onClick={() => { |
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.
This is not something we need to address here but just a thought I had. I think all of the dropdown items as they exist in v1 could easily beNavLink
s so I wonder if we should remove the ability to pass in anonClick
and makepath
required. Maybe that would promote making sure nav items really are regular anchor-based nav items, too (in v1 trying to open "add organization" in a new tab by middle-mouse clicking for example does nothing because it utilizesonClick
for page navigation instead of being a standard<a>
).
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 like a good idea, can you make a chore ticket for it?
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.
Will do. 🧹
code-asher commentedApr 8, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
If reaching a decision takes a bit maybe we merge with it in and remove later if necessary (or the other way around works too I suppose). |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Fixes#591
Adds BorderedMenu, BorderedMenuRow, Typography from v1
Adds AdminDropdown, based on v1 ManageDropdown
extracts OpenDropdown and CloseDropdown - arrows we can reuse in dropdowns
some reorganization of files and storybook
stories for BorderedMenu (which includes BorderedMenuRow), Typography, and AdminDropdown
test for AdminDropdown - currently just testing links, wrote a ticket to add and test that only admins see it but I don't think we have that capability yet. It's currently guarded by whether you are literally
admin@coder.com
😂add AuthAndNav to routes
remove Settings?Tyler says to keep it