feat(phase4): Quick Edit, Contents API commit flow, editor workspace
- portable UTF-8 base64 helpers (Hermes-safe), used for file round-trips - endpoints: updateFileContents, createFileContents, createPull - hooks: useCommitFile (invalidates repo cache), useCreatePull - FileEdit screen: native monospace editor, dirty/discard, branch picker, commit-to-new-branch, protected-branch handling, post-commit PR creation; stale-SHA 409 surfaces as a conflict message - settings: editor URL template; repo overview 'Open in editor' (no token) - tests: base64 round-trips (accents/emoji), editor URL expansion
This commit is contained in:
1 parent
ddd834b7ac
commit
c9dd49446a
18 files changed
+733
-29
No files matched your search
@@ -102,14 +102,18 @@ roadmap).
|
||||
| i18n (en/nl) | ✅ | device detection + override |
|
||||
| Loading/empty/error states | ✅ | shared components |
|
||||
|
||||
## Code editing (planned)
|
||||
## Code editing
|
||||
|
||||
| Feature | Status | Notes |
|
||||
| --- | --- | --- |
|
||||
| Quick Edit (CodeMirror WebView) | ⬜ | syntax highlight, search/replace |
|
||||
| Commit via Contents API | ⬜ | base64 + SHA, 409 conflict handling |
|
||||
| Create PR after commit | ⬜ | |
|
||||
| VS Code workspace | 🌐 | per-instance IDE URL, no token passthrough |
|
||||
| Quick Edit | ✅ | native monospace editor (CodeMirror/WebView deferred) |
|
||||
| Commit via Contents API | ✅ | base64 + blob SHA; creates the commit |
|
||||
| Commit to a new branch | ✅ | `new_branch`, auto-forced on protected branches |
|
||||
| Protected-branch awareness | ✅ | blocks direct commits when `user_can_push` is false |
|
||||
| Stale-SHA (409) handling | ✅ | mapped to a clear conflict message |
|
||||
| Create PR after commit | ✅ | when committing to a new branch |
|
||||
| VS Code / editor workspace | ✅ | configurable URL template, no token passthrough |
|
||||
| Syntax highlighting / search-replace | ⬜ | planned (CodeMirror 6 in a WebView) |
|
||||
|
||||
## Advanced (planned)
|
||||
|
||||
|
||||
Reference in new issue
Block a user