Skip to content

feat(word-editor): detach submission fork sync - #323

Merged
babblebey merged 10 commits into
mainfrom
editor/detach-submission-fork-sync
Nov 19, 2026
Merged

babblebey merged 10 commits into
mainfrom
editor/detach-submission-fork-sync

Conversation

@babblebey

Copy link
Copy Markdown
Member

Description

This pull request introduces a comprehensive fork status check and synchronization workflow for the word editor submission process. It ensures users can only submit contributions when their fork is up-to-date, provides clear UI feedback and controls for fork readiness, and adds robust error handling and status messaging throughout the editor and API. Additionally, the fork management logic is refactored for clarity and reusability, and the UI is updated for a more intuitive submission experience.

Fork Status Management and API Integration:

  • Added new API endpoints (/api/fork) for checking and explicitly syncing the user's fork status, without creating or updating a fork unless requested. This includes robust authentication and error handling.
  • Refactored fork management logic in src/lib/fork.js by introducing getForkStatus and syncForkRepository functions, allowing clear separation of fork checking, creation, and syncing. The main submission API now blocks submissions if the fork is out of date and instructs the user to update.

Word Editor UI/UX Improvements:

  • Replaced the simple submit button with a new EditorActions component that provides real-time feedback on fork status, allows users to sync or retry fork readiness, and disables submission until all requirements are met.
  • Added a utility function to validate submission content, ensuring the user cannot submit without making changes or if required fields are empty.

Submission Logic and Error Handling:

  • Updated the editor's submit handler to check fork status before submitting, handle out-of-date forks, and provide user feedback for various error scenarios (including out-of-date forks and reference conflicts).
  • Added a new store atom to track fork sync status and integrated this status into the UI and submission logic.

UI/Styling Adjustments:

  • Improved responsive layout and styling for the editor and action buttons, ensuring better usability on all devices.

Related Issue

NA

Screenshots/Screencasts

screen-capture.webm

Notes to Reviewer

NA

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
jargons-dev Ready Ready Preview Nov 19, 2026 8:30pm UTC

@babblebey
babblebey merged commit 853caed into main Nov 19, 2026
6 checks passed
@babblebey
babblebey deleted the editor/detach-submission-fork-sync branch November 19, 2026 21:00

This branch was successfully deployed

1 active deployment
Preview — f1836e25 Deployed Nov 19, 2026 by vercel[bot]
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