Conversation
|
A very elegant approach to reskin the web app, indeed! I'm impressed. The monochrome icons are stylish, and the on hover rainbow effect on the RaSCSI Reloaded text in the header is a nice touch. My only nitpick layout wise is that having the load configs form on the far left and the save configs form on the far right. I didn't immediately notice the other when looking at either of them. Perhaps centering is better? Or on top of each other as before? Something to iterate on I think. BTW what do you mean by dropzone.js being uploaded from scratch? I didn't immediately see a code change that corresponded to that. Left a few nitpick comments for your consideration. |
|
BTW it might be fun to brainstorm more memorable names for the themes than classic and modern. ;) |
77af2d0 to
6ca4ef0
Compare
Oops, I meant to say I've restyled the Dropzone upload-er!
That's a fair observation. The rationale was that the most important UI element (IMO) is the table of active devices, so I wanted to visual noise and unused space above it. We received a comment in #rascsi-dev which critiqued the new theme as having too much vertical padding/whitespace, causing the active devices table not to fit on a 800px depth viewport, so I am hesitant to immediately return these to the stacked layout. One option - out of scope for this PR - would be to consolidate the two forms; for example, we could start with an empty default.json file (auto-created if missing), then add a 'Save As' button which prompts for the filename. Example: |
|
Well noted on the conservation of vertical space as a design choice. I like the proposed new unified config management form. We can definitely experiment with that in future PRs. |
7e64af7 to
e177cc6
Compare
|
Note: I'm assuming the failed unit tests are because the |
rdmark
left a comment
There was a problem hiding this comment.
Looks good overall -- just a few nitpick comments inline.
The main question that I have is the inclusion of the large CSS style file with an MIT license. I assume MIT and BSD are compatible but INAL.
Also, are you the author of the SVG icon graphics? And if not, who's the author and under which license are they distributed?
Apart from this I have no concerns about the code changes! Amazing job!
| TEMPLATE_THEMES = ["classic", "modern"] | ||
|
|
||
| # Default theme for modern browsers | ||
| TEMPLATE_THEME_DEFAULT = "modern" |
There was a problem hiding this comment.
How about calling this theme something like "rainbow" to allude to the nice text color effect when hovering over "RaSCSI Reloaded" in the title bar at the top.
There was a problem hiding this comment.
The text effect is a gradient made up from the colours inside the raspberry in the RaSCSI logo. I thought it was neat as a subtle 'flourish' (although I can totally see this getting old and us removing it before too long). The theme is otherwise quite formal, IMO. It is comparatively modern, but not what most would consider contemporary.
I think "rainbow" is clever (for those that make the connection), but it's somewhat equivocal, and might therefore be confusing for those that have 🌈 (colourful, vibrant) in their mind?
I don't have any other suggestions at the moment!
There was a problem hiding this comment.
One idea is html5 -- this term is almost retro at this point. :)
|
Regarding licences:
|
Its my understanding that BSD and MIT are compatible as well. It might be worth adding a note at the bottom of LICENSE in the root directory to state that some components are MIT licensed. (Note: The Banana Pi code that I'm pulling it is also MIT licensed, so this concern is not unique to the web UI) |
|
@nucleogenic I found one i18n bug when playing around with this. The fixed width of the form buttons in the attached device action column lead to some localized strings being truncated. Affects German/Spanish/Swedish currently. Can we go back to dynamic widths on those buttons again? We never know how long strings future localizations might bring to the table! |
…drop placeholders from login labels, various other adjustments
…thout user-agent wrapper
3e680f0 to
c9c11d7
Compare
|
@nucleogenic Anything left on your todo list now? The "boring" theme naming may be for the best. They make it very clear what they are. It'd be great to get this merged to open up for continuous iteration on the Web UI code! |
|
@rdmark I don't think there are any further changes I want to make at this point, so fine to get this merged into develop. |




Introduction
This change set contains a concept for a "modern" web UI theme.
It provides an interim solution to the New Web UI roadmap item, which is a high effort feature and currently on hold.
Goals
Browser Support
The modern theme is selected as the default for the following browsers:
All other browsers and browser versions will be given the classic theme, although it is still possible to switch manually.
Changes
static/themes/{theme}browser_supports_modern_themes()functionPreview
Try It Out
1. Build and launch Docker containers:
2. Access web UI:
Todo
Better theme names?Credits