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
+13
-10
@@ -16,7 +16,7 @@ This document is the living implementation plan. It is updated as phases land.
|
||||
| 1 | Foundation: design system, auth, multi-account, biometrics | ✅ Done |
|
||||
| 2 | Core Git experience: home, repos, browsing, commits | ✅ Done |
|
||||
| 3 | Collaboration: issues, PRs, reviews, notifications | ✅ Done (read + write) |
|
||||
| 4 | Code editing: Quick Edit (CodeMirror), VS Code workspace | ⬜ Planned |
|
||||
| 4 | Code editing: Quick Edit, commit flow, editor workspace | ✅ Done (native editor) |
|
||||
| 5 | Advanced: Actions, packages, orgs, wiki, releases, admin | ⬜ Planned |
|
||||
|
||||
Detailed acceptance criteria per phase are in `docs/FEATURE_PARITY.md`.
|
||||
@@ -103,16 +103,19 @@ Architectural decisions are recorded in `docs/ARCHITECTURE.md`.
|
||||
- [ ] Server-side filter UI (label, milestone, assignee) and sorting
|
||||
- [ ] Reactions/subscriptions
|
||||
|
||||
## Phase 4 — Code editing (planned)
|
||||
## Phase 4 — Code editing
|
||||
|
||||
- [ ] Quick Edit: CodeMirror 6 in a dedicated WebView
|
||||
- [ ] Syntax highlighting, line numbers, search/replace, auto-indent
|
||||
- [ ] Unsaved-changes detection, diff preview
|
||||
- [ ] Branch selection/creation, commit message, Contents API commit (base64 + SHA)
|
||||
- [ ] Optional "create pull request" after commit
|
||||
- [ ] Protected-branch awareness and stale-SHA (409) conflict handling
|
||||
- [ ] VS Code workspace: per-instance/repo IDE URL, embedded browser, system-browser fallback
|
||||
- [ ] IDE auth kept separate from Gitea API auth (no token passthrough)
|
||||
- [x] Quick Edit: in-app editor over the file contents (native, monospace)
|
||||
- [x] Commit through the Contents API (base64 content + blob SHA)
|
||||
- [x] Branch selection and **commit to a new branch** (`new_branch`)
|
||||
- [x] Protected-branch awareness (force a new branch when direct push is blocked)
|
||||
- [x] Optional "create pull request" right after committing to a new branch
|
||||
- [x] Stale-SHA (409) conflict handling with a clear message
|
||||
- [x] Unsaved-changes detection + discard
|
||||
- [x] Per-instance editor/IDE URL template ("Open in editor"), system-browser/app fallback
|
||||
- [x] IDE auth stays separate from Gitea API auth (no token in the URL)
|
||||
- [ ] CodeMirror 6 editor in a WebView (syntax highlighting, search/replace)
|
||||
- [ ] Line-level diff preview before committing
|
||||
|
||||
## Phase 5 — Advanced features (planned)
|
||||
|
||||
|
||||
Reference in new issue
Block a user