Repository navigation
feat(word-editor): detach submission fork sync - #323
Merged
Merged
Conversation
… and EditorActions components
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
/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.src/lib/fork.jsby introducinggetForkStatusandsyncForkRepositoryfunctions, 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:
EditorActionscomponent that provides real-time feedback on fork status, allows users to sync or retry fork readiness, and disables submission until all requirements are met.Submission Logic and Error Handling:
UI/Styling Adjustments:
Related Issue
NA
Screenshots/Screencasts
screen-capture.webm
Notes to Reviewer
NA