-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
UI: Redesign/organize settings page #753
Conversation
I think it works for GitHub because there is a clear hierarchy of "most of the time you only need code, issues, and PRs" and they can just hide the rest as the screen width changes. But we don't really have that, and I also rarely see settings sub-pages get separated into tabs like that. How about we split the settings pane itself then? |
This is unexpectedly better looking than I thought. Let's take this way. |
3e0b50c
to
1ccbbda
Compare
I personally see UK as about 3 key features, the monitoring, the notifications, and the status pages, and I am wondering if notifications should get their own section like the dashboard. Should #233 et. all, be accounted for and space prepared ahead of time while the settings are getting updated? Or should that be delegated to a separate PR? (I assume the latter, but worth bringing up.) |
Are you talking about adding a completely new page to manage notifications settings? IMO a lot of them are and will be "per monitor" rather than global, so I don't see the need. Also, the status page currently manages its own settings. It would be debatable if in the future "multiple status pages" becomes a thing, the settings page be a place to manage it. But I'm also not sure. But this refactor would at least convert each settings sub-section to its own component, so future expansion would be easier and more organized. |
@chakflying's implementation is preferred. |
20b3542
to
83b0922
Compare
@louislam still working through this, but using |
I think we can put into a function that returns |
268a02d
to
dd4652f
Compare
Tested the tests work locally, but it fails on GitHub for seemingly no reason... |
I had similar experience, I found that jest + puppeteer is really hard to use especially on GitHub Action, because their machine is too slow. |
5924502
to
0ba9e92
Compare
I think it's finally fixed. |
Ops, does it crash the whole setting page? If yes, it would be great if we fix it first |
6c4e6a4
to
6558e57
Compare
Oops that was dumb, I added a save button in the monitor history page. |
9c0c762
to
92fc9b4
Compare
If you cannot make the unit test working again, just let it go. I can test it manually. I honestly hate jest + puppeteer now, it is not reliable and hard to write at all in my opinion. May look for an alternative and consider to drop this. |
Thanks to a very recent StackOverflow post, I finally got the error message to show up:
I traced this to
I switched around the order in |
WIP: Fix security page & improve layout WIP: Fix displaying current page UI: Improve spacing Chore: Improve styling
Fix: Fix current route parsing
Test: Add clear stats test Test: Attempt to fix tests Test: Add test for disable auth Update README
Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Investigate error message Test: Attempt to fix tests Chore: Cleanup code Test: Attempt to fix tests Test: Attempt to fix tests
d298fbd
to
7f4d5a0
Compare
Welll, I really don't know about this one. I disabled the clear statistics test for now. |
As mentioned, the settings page is rapidly getting cluttered with different sections. The
Save
button is also in an awkward place as only some settings needs to be manually saved. I think a better design would be to have sections on the left side, and the main pane shows settings of this section only. The "Save" button can then appear only if that page needs to be saved.