Stabilize event log toggle and omit dev mode events
This commit is contained in:
@@ -9,9 +9,9 @@
|
|||||||
## Polish
|
## Polish
|
||||||
|
|
||||||
- [x] Do a pass on condensing overly verbose UI elements. For example, "Current Difficulty" could be replaced by "Difficulty" and "The Obstacle List" could be replaced by "Obstacles"
|
- [x] Do a pass on condensing overly verbose UI elements. For example, "Current Difficulty" could be replaced by "Difficulty" and "The Obstacle List" could be replaced by "Obstacles"
|
||||||
- [ ] Event log button should be the same size and position when expanded and collapsed in all screens
|
- [x] Event log button should be the same size and position when expanded and collapsed in all screens
|
||||||
- [x] Align the "Current Difficulty" and "Successes" boxes
|
- [x] Align the "Current Difficulty" and "Successes" boxes
|
||||||
- [ ] Don't have dev mode toggling appear in the event log
|
- [x] Don't have dev mode toggling appear in the event log
|
||||||
- [ ] Remove display of current deck size
|
- [ ] Remove display of current deck size
|
||||||
- [ ] Voting status in the between-scenes phase should be visual, not text-based
|
- [ ] Voting status in the between-scenes phase should be visual, not text-based
|
||||||
- [ ] Players should be able to see who they voted for
|
- [ ] Players should be able to see who they voted for
|
||||||
|
|||||||
@@ -26,6 +26,10 @@
|
|||||||
|
|
||||||
/* Corner button that toggles the inline Event Log without moving. */
|
/* Corner button that toggles the inline Event Log without moving. */
|
||||||
.log-reopen-btn {
|
.log-reopen-btn {
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 132px;
|
||||||
|
height: 44px;
|
||||||
|
white-space: nowrap;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 20px;
|
bottom: 20px;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
|
|||||||
@@ -72,6 +72,7 @@
|
|||||||
|
|
||||||
<button
|
<button
|
||||||
class="log-reopen-btn"
|
class="log-reopen-btn"
|
||||||
|
aria-expanded={logOpen}
|
||||||
title={logOpen ? 'Hide the event log' : 'Show the event log'}
|
title={logOpen ? 'Hide the event log' : 'Show the event log'}
|
||||||
on:click={() => (logOpen = !logOpen)}
|
on:click={() => (logOpen = !logOpen)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -6,10 +6,11 @@
|
|||||||
// - Add a CHANGELOG entry only when a commit changes something players can
|
// - Add a CHANGELOG entry only when a commit changes something players can
|
||||||
// see. Skip refactors, tests, and tooling. Keep wording player-facing.
|
// see. Skip refactors, tests, and tooling. Keep wording player-facing.
|
||||||
|
|
||||||
export const VERSION = 27;
|
export const VERSION = 28;
|
||||||
|
|
||||||
// Newest first. Each entry: { version, date: 'YYYY-MM-DD', changes: [string, ...] }.
|
// Newest first. Each entry: { version, date: 'YYYY-MM-DD', changes: [string, ...] }.
|
||||||
export const CHANGELOG = [
|
export const CHANGELOG = [
|
||||||
|
{ version: 28, date: '2026-09-04', changes: ['The Event Log toggle keeps the same size when opened or closed.', 'Dev Mode changes no longer clutter the Event Log.'] },
|
||||||
{ version: 27, date: '2026-09-04', changes: ['Shorter labels make the table easier to scan.', 'Difficulty and Successes now line up side by side, including on small screens.'] },
|
{ version: 27, date: '2026-09-04', changes: ['Shorter labels make the table easier to scan.', 'Difficulty and Successes now line up side by side, including on small screens.'] },
|
||||||
{
|
{
|
||||||
version: 25,
|
version: 25,
|
||||||
|
|||||||
@@ -257,6 +257,7 @@
|
|||||||
{#if state.game.phase !== 'scene'}
|
{#if state.game.phase !== 'scene'}
|
||||||
<button
|
<button
|
||||||
class="log-reopen-btn"
|
class="log-reopen-btn"
|
||||||
|
aria-expanded={phaseLogOpen}
|
||||||
title={phaseLogOpen ? 'Hide the event log' : 'Show the event log'}
|
title={phaseLogOpen ? 'Hide the event log' : 'Show the event log'}
|
||||||
on:click={() => (phaseLogOpen = !phaseLogOpen)}
|
on:click={() => (phaseLogOpen = !phaseLogOpen)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ def set_dev_mode(
|
|||||||
game.dev_mode = enabled
|
game.dev_mode = enabled
|
||||||
db.add(game)
|
db.add(game)
|
||||||
db.commit()
|
db.commit()
|
||||||
crud.add_game_event(db, game.id, f"🛠 Dev Mode turned {'ON' if enabled else 'OFF'} by {player.name}.", kind="info")
|
|
||||||
return {"status": "ok", "dev_mode": game.dev_mode}
|
return {"status": "ok", "dev_mode": game.dev_mode}
|
||||||
|
|
||||||
# Teaching mode: an admin volunteers to be the forced Rank-3 Deep for scene 1.
|
# Teaching mode: an admin volunteers to be the forced Rank-3 Deep for scene 1.
|
||||||
|
|||||||
Reference in New Issue
Block a user