Skip to content

Add timeline branching toggle to settings#59

Merged
vincentmakes merged 1 commit intomainfrom
claude/disable-timeline-branching-JT589
Mar 3, 2026
Merged

Add timeline branching toggle to settings#59
vincentmakes merged 1 commit intomainfrom
claude/disable-timeline-branching-JT589

Conversation

@vincentmakes
Copy link
Owner

Summary

This PR adds a new "Timeline: Branching" toggle to the Settings > Advanced section, allowing users to disable the branch visualization for overlapping experiences and render a flat timeline instead.

Key Changes

  • Settings UI: Added new toggle switch in public/index.html for timeline branching control (enabled by default)
  • Admin Panel: Updated public/shared/admin.js to load and save the timeline branching setting via API
  • Timeline Rendering: Modified public/shared/scripts.js to conditionally apply branch computation based on the setting:
    • When enabled (default): Uses existing computeTimelineBranches() for branched visualization
    • When disabled: Renders a flat timeline with all items on track 0
  • Internationalization: Added translation strings for the new setting in 8 languages (EN, DE, ES, FR, IT, NL, PT, ZH)
  • Version Bump: Updated to v1.13.0 and added changelog entry

Implementation Details

  • The timelineBranching global variable defaults to true to maintain backward compatibility
  • The setting is loaded from the API with a fallback default of true
  • When branching is disabled, timeline segments are created with track: 0 and branchGroup: null, resulting in a linear layout
  • The feature integrates seamlessly with existing timeline rendering logic without breaking changes

https://claude.ai/code/session_019Tpjg627uvP5Rqeh9jbyEU

Add a new setting in Settings > Advanced (below Timeline: Years Only)
that allows users to disable timeline branching. When disabled, overlapping
experiences are rendered in a flat alternating layout instead of using
fork/merge branch curves. The setting is enabled by default.

https://claude.ai/code/session_019Tpjg627uvP5Rqeh9jbyEU
@vincentmakes vincentmakes merged commit 8e90eb6 into main Mar 3, 2026
3 checks passed
@vincentmakes vincentmakes deleted the claude/disable-timeline-branching-JT589 branch March 3, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants