-
Notifications
You must be signed in to change notification settings - Fork 36
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
Html edits from bootstrap 3 to bootstrap 5 #1058
Conversation
Thanks for contributing. Our test pipeline shows the following error:
Please move the comments (that summarize the changes) into the PR description. Are you working with a running FlexMeasures installation (e.g. with data from the toy tutorial), or with html pages only? I tested the new UI locally, but many elements end up misplaced. Some of the regressions (viewed on my laptop, 1920x1080, on pages that are not throwing the above Jinja exception):
|
Was working with a running installation, but I was using a smaller pc, let
me check on them
…On Fri, 10 May 2024, 12:12 Felix Claessen, ***@***.***> wrote:
Thanks for contributing. Our test pipeline
<https://github.com/FlexMeasures/flexmeasures/actions/runs/9017816682/job/24811786661?pr=1058>
shows the following error:
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'comment'.
Please move the comments (that summarize the changes) into the PR
description.
Are you working with a running FlexMeasures installation (e.g. with data
from the toy tutorial), or with html pages only? I tested the new UI
locally, but many elements end up misplaced. Some of the regressions
(viewed on my laptop, 1920x1080, on pages that are not throwing the above
Jinja exception):
- Large white margin at the top of the page.
- Contents of (hidden) modal divs (such as in our footer, and also on
the /tasks page) are now always visible on the page.
- Expandable menu item listing (under the *Tasks* menu item) are
always expanded instead of collapsed until clicked on.
- Menu appears vertically stacked instead of horizontally.
- Less responsive (e.g. menu no longer collapses into hamburger icon
on small screen size).
- Floating table headers, when scrolling down, become floating on the
middle of the page rather than at the top (seems to be related to the large
white margin at the top).
- Footer contents are no longer center aligned.
- The replay button on the /sensor/<id> page incorrectly resizes when
clicked on.
—
Reply to this email directly, view it on GitHub
<#1058 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX5E4IRERUWPQYPZEYSCJWTZBSFQDAVCNFSM6AAAAABHOZQHW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUGI2DQMBTGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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.
The comments are helpful, but I think they should live in the PR description, to be documented there, and not in the code.
Can you move them?
yes
…On Fri, May 10, 2024 at 12:31 PM Nicolas Höning ***@***.***> wrote:
***@***.**** requested changes on this pull request.
The comments are helpful, but I think they should live in the PR
description, to be documented there, and not in the code.
Can you move them?
------------------------------
In flexmeasures/ui/templates/base.html
<#1058 (comment)>
:
> @@ -22,8 +22,8 @@
<link ***@***.***/dist/leaflet.css" rel="stylesheet" />
<link ***@***.***/dist/MarkerCluster.css" rel="stylesheet" />
<link ***@***.***/dist/MarkerCluster.Default.css" rel="stylesheet" />
- <!-- Bootstrap -->
- <link href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
+ <!-- Latest Bootstrap link-->
+ <link href="https://stackpath.bootstrapcdn.com/bootstrap/5.3.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
Can you explain or point us to the need for this new integrity field?
—
Reply to this email directly, view it on GitHub
<#1058 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX5E4IT35NO6CPCFT5BZ73LZBSHX7AVCNFSM6AAAAABHOZQHW6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDANBZGY2TIMJTGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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.
Thanks, now we are loading the modern bootstrap!
I'm not sure which comments by @Flix6x from above still apply now. Here some things I see:
- Menu not displaying (element is set to be collapsed with class "collapse navbar-collapse navbar-right" and ID #bs-example-navbar-collapse-1), but even when i display it, it's vertical.
- White space above menu bar
- Assets page: table seems too narrow
- Sensor table on asset page shows URL column, which we were hiding on purpose (we use it to make each row a clickable link)
I attach screenshots for each:
Ok, I'll take a look.
…On Sat, 11 May 2024, 02:27 Nicolas Höning, ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Thanks, now we are loading the modern bootstrap!
I'm not sure which comments by @Flix6x <https://github.com/Flix6x> from
above still apply now. Here some things I see:
- Menu not displaying (element is set to be collapsed with class
"collapse navbar-collapse navbar-right" and ID
#bs-example-navbar-collapse-1), but even when i display it, it's vertical.
- White space above menu bar
- Assets page: table seems too narrow
- Sensor table on asset page shows URL column, which we were hiding on
purpose (we use it to make each row a clickable link)
I attach screenshots for each:
Screenshot.from.2024-05-11.01-15-13.png (view on web)
<https://github.com/FlexMeasures/flexmeasures/assets/1042336/0f986d3d-19ad-4192-9053-18d1d5472483>
Screenshot.from.2024-05-11.01-15-41.png (view on web)
<https://github.com/FlexMeasures/flexmeasures/assets/1042336/b9e24fdb-2092-4049-90e3-6fe1f2ae6798>
Screenshot.from.2024-05-11.01-16-46.png (view on web)
<https://github.com/FlexMeasures/flexmeasures/assets/1042336/ebd6cda4-77c2-4e38-bdad-9de992e8800a>
—
Reply to this email directly, view it on GitHub
<#1058 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX5E4IWRQVVDWNEGPA3WEB3ZBVJU5AVCNFSM6AAAAABHOZQHW6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDANJQHE3TMMRQGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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.
- The menu is now horizontal and shows, but it is not styled. The dropdown for tasks isn't working.
- The breadcrump navigation on the asset page should have some padding on the left, it is only clickable at the bottom edge, and the dropdown at the right side doesn't work.
- The Create new asset" button on the asset overview page is vertically moved to the middle, should be at the top.
- The accounts page still shows the "URL" column which should be hidden.
- The /logged-in-user page layout is broken
Please compare the current layout to the previous one.
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.
These are changes made regarding the requested changes.
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.
Thanks.
- The menu seems to have some padding or margin (top and bottom) which make the highlighting of the currently selected item not look good. Also, action buttons (e.g. create new asset) and the asset breadcrumb are then too close to the menu. Check
#topnavbar, I found for instance
-bs-navbar-padding-y`. - The sensor table on the asset page still shows the hidden URL column. Same for users and assets tables on accounts page.
- Breadcrumbs are now wrapping and the dropdown is gone.
- On logged-in-user page, the audit log buttons are too low.
Some of these issues are needed to be checked on all pages, not just foxed on one, apparently.
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.
Made those changes, but i can't seem to find, this --bs-navbar-padding-y: 0.5rem, to remove it from my end to ensure the menu is not too large vertically
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
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.
thanks
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.
removed unnecessary css
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
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.
Great, everything seems to work fine. Thanks!
I approve and have just one question left, which you might know an answer to.
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
This reverts commit c21e5a0. Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
* Html edits from bootstrap 3 to bootstrap 5 * Correction on the cdn links and script link * comments moved to PR description * fixed Assets page: table seems too narrow and others.. * Menu enhancement etc... * Compared current layout and made changes requested changes * Compared current layout and made changes requested changes * Compared current layout and made changes requested changes * Compared current layout and made changes requested changes * ensuring similarity between the versions * Correction of requested changes * Adjusting menu height * Adjusting menu height * Resolving the latest issues * Correction of table, menu hamburger etc * Fixed everything * Fixes * updated fixes * other updated fixes * flex and s margin * breadcrumb toggle * page load on clicked breadcrumb dropdown * style attributes to custom css file * auto-commit * changes on requested changes * changes on requested changes * auto-commit * auto-commit * custom css to flexmeasures.css * custom css to flexmeasures.css * custom css to flexmeasures.css * breadcrumb * auto-commit * Fix wrong click event on breadcrumb dropdown Signed-off-by: Nicolas Höning <nicolas@seita.nl> * add back space between 'active' and 'users' Signed-off-by: Nicolas Höning <nicolas@seita.nl> * select date-div, margin * removed unnecessary style * improve/fix some indentation Signed-off-by: Nicolas Höning <nicolas@seita.nl> --------- Signed-off-by: Nicolas Höning <nicolas@seita.nl> Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
* style: remove non-breaking spaces from base template Signed-off-by: F.N. Claessen <felix@seita.nl> * fix: update display property for Bootstrap >= 4 Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: put back inline comment removed in #1058 Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: expand on rationale in inline comment Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * fix: breakpoint for collapsing menu and moving tooltip to caption should coincide also for intermediate screen sizes Signed-off-by: F.N. Claessen <felix@seita.nl> --------- Signed-off-by: F.N. Claessen <felix@seita.nl>
Removed the classes hiding the menu and adjusted it for a horizontal layout.
Other Fixes:
Removed extra space above the navbar.
Adjusted the width of the assets table.
Hid the URL column in the sensor table again (clickable rows preserved).