1
0
Commit Graph

15 Commits

Author SHA1 Message Date
d3ed57227e
display warning that rules only affect new games 2026-03-10 20:56:56 +01:00
eb20849bd8
make main buttons redraw syncronously
By main buttons I mean the "new game", "they win" and "we win" buttons.
They have in common that they scroll to the bottom of the view, to make
sure the user can immediately see their effect.

This change fixes two bugs:

1. The scrolling did not work reliably. While it would always scroll a
   bit, it would usually not go to the bottom exactly. This meant that
   most of the time the bottom digits were only half visible. Now it
   scrolls reliably all the way.

2. When hitting the win buttons in rapid succession it was possible to
   trigger both within a single redraw cycle. This caused the UI to set
   a single rounds winner to both teams, which the round model rightly
   rejected. Now, by the time the second event is registered, the button
   has already been disabled, or the round been replaced by a new one.
2026-03-10 00:40:02 +01:00
32ab7594f1
refactor style sheets 2026-03-05 01:55:45 +01:00
f9d33b746f
style session rules 2026-03-03 23:21:45 +01:00
d74c9ed798
only show rules button if necessary 2026-03-03 21:36:24 +01:00
e0ede4a503
refactor styles to make further additions easier 2026-03-03 20:29:04 +01:00
7e7410a406
improve design of session view
This improves the design of the session view a lot. However, several
things still need to be done:

1. The rules section is not styled.

2. The session list is not styled.

3. The design is not responsive yet. This will take longer, as the base
   view will need to be overhauled substantially to take advantage of
   wider screens.

4. A light mode needs to be added.
2026-03-03 01:45:14 +01:00
d4536aadc1
allow editing session head data 2026-03-02 22:12:23 +01:00
de0fc8c917
enable history navigation
The previous implementation only looked at the URL (and state) during
initialization. This allowed users to open a specific session via URL
(e.g. when reloading the page).

History navigation, however, was completely ignored. I.e. if the user
pressed the back button the URL would change, but the content would
remain the same.

This has now been corrected.
2026-03-01 02:28:47 +01:00
bb3ad61950
make import paths absolute 2026-02-22 12:51:28 +01:00
7df55afd1a
move game points into name cell 2026-02-18 19:21:14 +01:00
eba36600b9
make session UI somewhat nice 2026-02-18 19:01:14 +01:00
0cc3c991e5
restructure basic UI for better semantics 2026-02-18 19:01:10 +01:00
979dfb9b08
make basic UI fully functional 2026-02-18 19:01:03 +01:00
624063b91e
implement very basic UI 2026-02-15 22:31:36 +01:00