Skip to content

Sanremo-inline-template-edit#49

Merged
SCdF merged 4 commits intomainfrom
sanremo-inline-template-edit
Jan 24, 2026
Merged

Sanremo-inline-template-edit#49
SCdF merged 4 commits intomainfrom
sanremo-inline-template-edit

Conversation

@SCdF
Copy link
Owner

@SCdF SCdF commented Jan 24, 2026

Template.tsx now handles both /template/:templateId and /template/:templateId/from/:repeatableId routes by detecting the optional repeatableId param. When editing from a repeatable context, shows the repeatable's checkbox values in preview and migrates it to the new template version on save.

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

SCdF and others added 4 commits January 24, 2026 14:23
Implement feature to edit templates from within the repeatable view with
automatic migration of checkbox state when template changes.

Key changes:
- Add unique checkbox IDs embedded as HTML comments (<!-- cb:id -->)
- Migrate schema from v1 (positional boolean[]) to v2 (Record<string, boolean>)
- Add InlineTemplateEdit page for editing templates from repeatable context
- Add update/edit buttons to Repeatable page when newer template exists
- Add rehype-raw to parse HTML comments in markdown
- Create Migration feature with MigrationProvider and MigrationScreen
- Update types.ts with CheckboxValue interface and schema versioning

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Template.tsx now handles both /template/:templateId and
/template/:templateId/from/:repeatableId routes by detecting the
optional repeatableId param. When editing from a repeatable context,
shows the repeatable's checkbox values in preview and migrates it
to the new template version on save.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@SCdF SCdF merged commit 882328b into main Jan 24, 2026
2 checks passed
@SCdF SCdF deleted the sanremo-inline-template-edit branch January 24, 2026 17:19
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.

1 participant