-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Instance status configuration #8096
Conversation
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
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 great! Just a few rough edges
<> | ||
<LemonSpacer /> | ||
<PageButton | ||
title="Instance settings" |
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.
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.
Well as we now have an additional menu item if the user is staff, I think it's fine to keep this way. If you're accessing the page from the site popover, it makes sense that you want to focus on the system status.
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, honestly I didn't notice the sidebar button. This raises more questions – it's kind of weird:
- there are now two buttons that take you to this page – one in the sidebar, and one in the popover
- the sidebar button takes you to instance settings… but that's the third tab of the page, not the first, which is a surprising destination for a pattern that's meant for top-level pages
- "Settings" is just one of a few tabs – a sidebar item should cover all tabs of the page it leads too (otherwise the highlighting is confusing when you navigate to another page tab for example)
If we go the sidebar item route, I strongly propose making instance settings their own page, with status/metrics reachable from the popover like it is currently.
frontend/src/scenes/instance/SystemStatus/InstanceConfigSaveModal.tsx
Outdated
Show resolved
Hide resolved
frontend/src/scenes/instance/SystemStatus/InstanceConfigSaveModal.tsx
Outdated
Show resolved
Hide resolved
frontend/src/scenes/instance/SystemStatus/InstanceConfigSaveModal.tsx
Outdated
Show resolved
Hide resolved
frontend/src/scenes/instance/SystemStatus/InstanceConfigTab.tsx
Outdated
Show resolved
Hide resolved
frontend/src/scenes/instance/SystemStatus/InstanceConfigSaveModal.tsx
Outdated
Show resolved
Hide resolved
frontend/src/scenes/instance/SystemStatus/InstanceConfigSaveModal.tsx
Outdated
Show resolved
Hide resolved
Thanks for the thorough review @Twixes, all feedback addressed, ready for a final look. |
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.
All good except got some doubts about the navigation patterns in use
<> | ||
<LemonSpacer /> | ||
<PageButton | ||
title="Instance settings" |
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, honestly I didn't notice the sidebar button. This raises more questions – it's kind of weird:
- there are now two buttons that take you to this page – one in the sidebar, and one in the popover
- the sidebar button takes you to instance settings… but that's the third tab of the page, not the first, which is a surprising destination for a pattern that's meant for top-level pages
- "Settings" is just one of a few tabs – a sidebar item should cover all tabs of the page it leads too (otherwise the highlighting is confusing when you navigate to another page tab for example)
If we go the sidebar item route, I strongly propose making instance settings their own page, with status/metrics reachable from the popover like it is currently.
Thanks @Twixes! Alright I've decided just to rename the page to make it consistent, and the sidebar link now opens the first tab. We can iterate later if it makes sense. |
* master: hobby: Wait for ClickHouse and for Postgres before starting (#8686) Part 2: Deprecate old tags and upgrade to new tags Backend (#8529) Remove flake8-commas (#8695) Update Breakdown props to use filter groups (#8679) Automatically switch to the right project if possible (#8681) Super Lazy VMs (#8609) .github/workflows/ci-backend.yml: fix flake8 config (#8676) Fix recording page refresh loop (#8685) Instance status configuration (#8096)
This PR resulted in adding an instance level navigation item to the project navigation. By design, everything in that menu should be project navigation. We already link to this via the utilities menu. Likewise a lot of the modals, banners, etc are using really long form values and they don't align to our other components of the same type. |
Changes
Nice confirmation screen before saving
Warning when changing recordings TTL (@rcmarron)
Info when changing email settings
How did you test this code?
is_staff = True
.