Commit Graph

2985 Commits

Author SHA1 Message Date
Bernhard Kirchen
376912d821 webapp: add gap between inverter selectors 2024-11-01 23:36:17 +01:00
Bernhard Kirchen
d3eabc3311 webapp: remove table's bottom margin
we don't need a margin at the bottom of tables in general. not sure why
this is even a thing in bootstrap. this change, in particular, makes the
space between a table and a parent card symmetric on all sides.
2024-11-01 23:35:34 +01:00
Bernhard Kirchen
d06ea51c7a webapp: last table row shall have no bottom border
similar to the first row which has no border at the top.
2024-11-01 23:34:41 +01:00
Bernhard Kirchen
c750defc5f webapp: right-align labels for inputs on non-sm viewports
this change tries to achieve a pleasing look of input forms by
right-aligning the texts of labels. the input form now looks similar
to a table, achieving a cleaner look, especially for forms where the
labels have varying text lenghts.
2024-11-01 23:33:48 +01:00
Thomas Basler
130d90ce04 Merge branch 'pr2328' into dev 2024-11-01 22:12:41 +01:00
Thomas Basler
55c98ef880 Fix: skip BOM in JSON files (pin_mapping and config)
based on #2387
2024-11-01 22:07:48 +01:00
Thomas Basler
6c903abda1 Fix: Lint Error 2024-11-01 22:01:30 +01:00
Thomas Basler
28788070b2 Upgrade ESPAsyncWebServer from 3.3.17 to 3.3.21 2024-11-01 21:56:41 +01:00
Thomas Basler
0fc1ffc4d3 webapp: Update dependencies 2024-11-01 21:52:55 +01:00
Thomas Basler
8019eaf182 Feature: Validate JSON before uploading 2024-11-01 21:52:13 +01:00
Bernhard Kirchen
c55ff7d9ae Feature: add HASS autodiscovery for JBD BMS 2024-10-30 21:53:47 +01:00
Bernhard Kirchen
ad0e9faad1 webapp: add JDB BMS issue texts 2024-10-30 21:53:47 +01:00
Bernhard Kirchen
3b0c83fa25 webapp: generalize battery serial interface settings 2024-10-30 21:53:47 +01:00
Manuel Bruehl
7cd1984d60 Feature: support for JBD BMS using serial connection 2024-10-30 21:53:47 +01:00
Bernhard Kirchen
33b7697b37 add "important differences" to README 2024-10-29 17:07:07 +01:00
Bernhard Kirchen
a352821f77 restructure and improve README
* move badges to the top
* merge introductory paragraph with main topic
* add links to users
* fix typos, grammar, wording
2024-10-29 17:07:00 +01:00
Bernhard Kirchen
1bd22376f2 webapp: optimize body bottom padding and length
long forms, when scrolled to the bottom, would leave no space between
the bottom of the viewport and the buttons, which is unpleasent.

short views would still createa large (high) body, for apparently no
reason.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
4a5aea09b9 webapp: always scroll up when navigating to another view 2024-10-29 14:56:06 +01:00
Bernhard Kirchen
77e889cf9f webapp: optimize spacing around power meter test buttons 2024-10-29 14:56:06 +01:00
Bernhard Kirchen
29cf2bc5bb webapp: optimize look of login page
improve spacing and align login buton to the right, where all our
buttons are.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
c0cfdf04a8 webapp: fix AC charger admin view
use InputElement where possible, which in particular fixes that the
inputs of the second card were all in the same row.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
a425be5a03 webapp: inverter advanced tab needs space at the top
this avoids the input text box from colliding with the tab navigation
bottom border.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
e6ee0d584f webapp: optimize look of firmware update cards 2024-10-29 14:56:06 +01:00
Bernhard Kirchen
2f0699d62e webapp: properly space alert with hint for hostname 2024-10-29 14:56:06 +01:00
Bernhard Kirchen
72e0708e51 webapp: device manager: optimize cards for tab nav
the top border of the card was breaking the design of the tabs, where
the active tab would be "visually connected" to the content. also, the
rounded border at the top did not blend in with the navbar's bottom
border.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
3c3d97fe05 webapp: show pin mapping categories as cards
on a desktop browser, this approach allows to display all categories at
once. we also increase readability as the values are much closer to
their label. previously, the values were far to the right of the screen
and it was unpleasent to read which value belonged to which setting. the
grouping of values per category was also not very well conceived.

by using cards, we also avoid some styling issues, namely the use of
rowspan, which caused a spurious table cell border at the end of the old
table layout.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
c87ba97a2b webapp: optimize placement of device profile doc buttons
* remove empty container for device profile links. if a device profile
  has no links, no buttons are generated, but a row was still part of
  the DOM, adding spurious space between the select and the alert with
  the hint.
* "float" the buttons to the right, as we always place these kinds of
  buttons to the right.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
121b7cfc40 webapp: replace remaining "OpenDTU" texts with "OpenDTU-OnBattery" 2024-10-29 14:56:06 +01:00
Bernhard Kirchen
89a433c356 webapp: consistently use no colon in form labels
there are no colons for table headers as well. some form labels had no
colon already, so this change uses a unified look among form labels.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
db5520452d webapp: fixup battery total cards
the total cards have been trimmed at the bottom as the card's last child
has its margin-bottom removed (set to "auto"). that is desired as it
places the text in the middle of the cards. however, the battery total
cards are different, as they show two values each, which are arranged by
div.flex-fill containers, which are the children of the cards rather
than the h2 tags as in all other totals cards.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
50db50174e webapp: use value class to format live values
avoids inline style and removes right padding such that the value and
its unit move closed together, replicating the design of the inverter
channel info tables.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
bad5260630 webapp: avoid inline style for inverter channel info value 2024-10-29 14:56:06 +01:00
Bernhard Kirchen
31c26b0d25 webapp: MQTT: no login with cert if TLS disabled
in the settings view we hide the "login with cert" setting while TLS is
disabled, so we should also hide that info in the info view when TLS is
disabled.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
8174fb1176 webapp: MQTT: use v-if in favor of v-show
if we hide elements (which is done using style="display:none;"), they
are still part of the DOM and mess with CSS rules that shall apply to
the last element of a card or the last row of a table.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
2d49093c68 webapp: optimize spacing on bottom of cards
if the last child in a card (div.card > div.card-body) adds bottom
marging, we don't want the card to add more space through its
padding-bottom. most cards have children that add sufficient space
at the bottom anyways.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
dc78a83b84 webapp: avoid spurious DOM elements, avoid v-show, use v-if
avoid hidden (but existing) or simply redundant DOM elements from
messing with the style sheet, which uses :last-child in particular to
fix up the margin on the bottom of cards.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
8c46521d6e webapp: do not use div with v-if but template elements
when using v-if on a div element, the div will be part of the DOM in
case the condition is true. if we group elements to use v-if on the
group, we shall use a template element, so the group elements appear
as siblings of the other elements.

in particular, these spurious div do not mess up our CSS patch that sets
the bottom margin for the last child in a card to "auto".
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
b6c0a850c9 webapp: fix inverter "add" and "save order" button positions
the source tells us that the buttons are supposed to be on the right of
tha card, but the CSS broke at some point.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
0a5bd65bd2 webapp: beautify radio statistics reset button
it would be nice to have this in the header of the accordion, which is
hard, but doable. however, clicking the button then also toggles the
accordion, which is unacceptable. preventing that seems non-trivial, as
the @click.stop() is not enough. also, nesting interactive elements is
simply bad practice. the button can also go to the right of header, with
reasonable effort, but the corner radii are then messed up and would
need to react interactively (accordion collapsed or not), which is also
a pain.

we now "float" the reset button to the right, add a nice icon, and give
the button some space so it at least looks like it belongs there.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
a582f9c6d3 webapp: adjust look of tables in accordions to live view cards
this is relevant for the radio statistics table, as well as the tables
in the grid profile modal.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
aef0efcfae webapp: apply card-table class to info view cards
the cards in all information views still used a div.card-body around the
table, which added a margin on all sides of the table. to achieve a
unified look, these cards and tables now look the same as the inverter
channel cards.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
28bbd27280 webapp: align table headers with card headers
set the left margin of table header cells to the same marging the card
header use, such that the text align on the same axis.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
d8fa70371c webapp: use reasonable name for radio stats accordion 2024-10-29 14:56:06 +01:00
Bernhard Kirchen
e15fdab3e1 webapp: equalize style of cards with tables in live view
this change adjusts the style of cards showing tables such that they
look the same as inverter channel info tables.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
3edfdb7ab6 webapp: avoid inline style in inverter channel info card 2024-10-29 14:56:06 +01:00
Bernhard Kirchen
4aa9080d4e webapp: add gap between inverter selectors 2024-10-29 14:56:06 +01:00
Bernhard Kirchen
983b58fa0c webapp: remove table's bottom margin
we don't need a margin at the bottom of tables in general. not sure why
this is even a thing in bootstrap. this change, in particular, makes the
space between a table and a parent card symmetric on all sides.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
c5f37a8010 webapp: last table row shall have no bottom border
similar to the first row which has no border at the top.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
94123fe415 webapp: right-align labels for inputs on non-sm viewports
this change tries to achieve a pleasing look of input forms by
right-aligning the texts of labels. the input form now looks similar
to a table, achieving a cleaner look, especially for forms where the
labels have varying text lenghts.
2024-10-29 14:56:06 +01:00
Bernhard Kirchen
993f3213a1 Fix: skip BOM in JSON files (pin_mapping and config) 2024-10-29 11:02:07 +01:00