BUG: changing occasion resets the chosen theme (should not) #16
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug (from #10)
m: „das Theme sollte nicht pro Anlass resetted werden, wenn ich den ändere.“
#10 wired the occasion picker to pre-select that occasion's default theme. Side effect: if the sender has already chosen a theme and then changes the occasion, their theme gets overwritten by the occasion default. Annoying — the explicit theme choice is lost.
Fix
Changing the occasion must not override a theme the user has chosen.
Scope
Compose JS + maybe a tiny markup tweak (
web/templates/compose.html). No backend/schema change. Don't regress #10 (occasion badge/title/default-theme-on-first-pick still fine).Sequencing
Same compose track — fold in with the other in-flight compose work (#13 → #14 → #15); otto-head will slot it.
DoD
Fixed ✅
Changing the occasion no longer overwrites an explicitly chosen Farbwelt.
Approach (cleanest variant from the issue): a
themeTouchedflag in the compose JS. It startsfalse; picking any theme radio sets ittrue. The occasion-change handler only auto-applies the occasion'sdata-theme-defaultwhilethemeTouchedis false:DoD
Bundled with #17, #20 and the #19 admin-TTL tweak in one shift per otto-head.
Commit:
3ae968445bBranch:
mai/hermes/issue-16-bug-changing(otto-head merges + deploys)✅ Live — merged
3ae9684(merge9a8eda4), deployed. Theme stays on occasion change (themeTouched flag); default only applies until you pick a theme. Verified build green. Not closing — m closes.