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

Content workflow #310

Merged
merged 112 commits into from
Jun 20, 2023
Merged

Content workflow #310

merged 112 commits into from
Jun 20, 2023

Conversation

benmerckx
Copy link
Member

@benmerckx benmerckx commented May 16, 2023

This PR implements content workflow as described in https://github.com/orgs/alineacms/discussions/303
It has a number of big changes under the hood which I'll try to document before merging

Changelog:

  • Replaced the database driver with rado
  • Created a cache that can sync with remote and efficiently scan files locally, only having to do work on changed files
  • Replaced the "Pages" concept with Resolver
  • Remove yjs drafts from the server, replaced Hub with Connection
  • Refactor config, schema, types and fields to leverage TypeScript without getting stuck in conditional/mapped type hell
  • Enable live previews for React Server Components
  • Replace the content tree with react-complex-tree
  • Introduce jotai to manage state in the React dashboard
  • ...

Next steps:

  • Entry edits needs an isDirty state which results in manual conflict management
  • Version workflow
  • Stream updates to RSC components?
  • Resolve linked entries in Resolver
  • Update alinea init output
  • Update cloud backend
  • Media library
  • Re-enable translations interface
  • Status of entries that are being saved/published/archived
  • Saving drafts without actual changes receives no server callback and stays in saving state, compare contentHash before post
  • Write tests for common actions like renaming path to make sure they produce the wanted changeset
  • Workflow assistant that can be embedded in the project to see preview status
  • Configure Yjs providers
  • Virtualize tree? Virtualized feature lukasbach/react-complex-tree#263

@benmerckx benmerckx changed the title [draft] [draft] Content workflow May 16, 2023
@benmerckx benmerckx marked this pull request as draft May 16, 2023 15:16
@benmerckx benmerckx merged commit 8fb2b91 into main Jun 20, 2023
4 checks passed
@benmerckx benmerckx deleted the v1 branch October 9, 2023 07:43
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.

None yet

1 participant