Repository navigation
Editor Guide
github-actions[bot] edited this page Dec 16, 2025
·
1 revision
Use the in-browser Editor to stage song and resource changes before opening a pull request.
- Gate: the Editor requires an author name plus the
VITE_EDITOR_PW(falls back toVITE_ADMIN_PW); unauthenticated users only see the login form. - Tabs: the page opens on the Song Editor by default. URL params can preselect content—
?tab=postsor?tab=resourcesswitches to the Post Editor tab, while?song=:id,?resource=:slug,?newSong=1, or?newResource=1also flip to the relevant tab and prefill the form.
- Staged items persist in
sessionStorage(editor:staged) so reloading the page does not lose pending changes. - The staged table lists each change (kind, action, filename, summary) with controls to remove individual rows or clear everything.
- On load, the Editor checks for
ghTokeninlocalStorage; if absent, it opens the token modal. Saved tokens are validated via the GitHub API (Validateflow) and marked with a check beside the author name. -
Open PR validates prerequisites (staged changes present and author provided) before showing the PR modal. The modal uses repository defaults from GitHub, then
createEditorPrbranches frommain, writes staged files topublic/songs/orpublic/resources/, and opens the created PR in a new tab.
-
Canonicalization:
buildCanonicalrunsconvertToCanonicalChordProandserializeChordProto normalize titles, keys, filenames, and directive formatting. -
Disclaimers:
appendDisclaimerIfMissingensures the copyright notice is included in staged chord charts. -
Instrumentals:
formatInstrumentalrenders structured instrumental specs into preview lines inside the Post Editor helper components.
-
User Guide
-
Editing & Admin
-
Developer Guide
-
Infrastructure
-
Mobile