Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

persist and maintain front matter #283

Merged
merged 3 commits into from
Dec 22, 2024
Merged

persist and maintain front matter #283

merged 3 commits into from
Dec 22, 2024

Conversation

cloverich
Copy link
Owner

@cloverich cloverich commented Dec 10, 2024

  • on import, track front matter in staging table if parsed
  • work core Chronicles metadata (tags, title, dates) into front matter
  • maintain front matter in documents (keep existing, merge Chronicles properties)
  • refactor: migrate rest of client.documents to knex
  • refactor: parse and stringify frontmatter tags as valid yaml
  • add micromark front matter libraries and prefer them when parsing / serializing
  • fix: parse and serialize tags as valid yaml array
  • fix: When document not found, display error and fix back button (no-op before)
  • fix: Correctly set default journal on sync, and add an additional fallback
  • fix: CACHE_DIR / DATABSE_URL references

Was originally aiming just to complete #259 but along the way realized fully maintaining would probably be required, and scoped an hour and was mostly completed. Untested when this was opened.

  • Update SQL migration (or let prod just delete and re-create db since its just a cache)

Closes #259
Foundation for #127
Part of #256 (probably)

- on import, track front matter in staging table if parsed
- work core Chronicles metadata (tags, title, dates) into front matter
- maintain front matter in documents (keep existing, merge Chronicles properties)
- refactor: migrate rest of client.documents to knex
- refactor: parse and stringify frontmatter tags as valid yaml
- add micromark front matter libraries and prefer them when parsing / serializing
- migrate internal tracking and updating of title, createdAt, updatedAt, and tags to frontMatter
- heavily refactor import, sync, create, and update interfaces to account the changes
- remove legacy CACHE_DIR key; update DATABSE_URL reference
- fix issue with default journal setting on import
- fix navigate back from loading screen
- track and log documents saves

Future change should be smarter about saving documents, reducing fs writes and alllowing user to leave note view while save runs in background
@cloverich cloverich merged commit 7b7f772 into master Dec 22, 2024
2 checks passed
@cloverich cloverich deleted the importer_updates branch December 22, 2024 15:33
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.

persist and maintain arbitrary front matter on import
1 participant