TemaDeveloper / TemaDeveloper/personal_planner

feat(notes): live full-editor template preview (read-only real editor)

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
2
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Clicking a template now opens a read-only preview (TemplatePreview) that renders the template's block structure with a lightweight custom renderer. It's fast and structurally accurate, but not pixel-identical to the created page (databases show as labeled placeholders, columns are simplified).

Optionally render the preview by mounting the real NotesEditor in read-only mode so it looks exactly like the resulting page. Trade-off: heavier (mounts BlockNote) and database blocks have no real DB until creation, so they'd need a preview/disabled state.

Files: src/components/notes/template-preview.tsx, src/components/notes/notes-editor.tsx (add a read-only mode).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read src/components/notes/template-preview.tsx and src/components/notes/notes-editor.tsx first. Compare the current lightweight preview with the real editor and determine how read-only rendering and unavailable database blocks should behave. Done means template previews use the real editor where appropriate, remain non-editable, and preserve a usable preview before page creation.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.