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
@@ -153,6 +153,7 @@
|
||||
"notFound": "This repository could not be found.",
|
||||
"noPermission": "You don't have permission to view this repository.",
|
||||
"viewOnInstance": "Open in browser",
|
||||
"openInEditor": "Open in editor",
|
||||
"browse": "Browse",
|
||||
"empty": "This repository is empty",
|
||||
"noReadme": "No README file",
|
||||
@@ -325,6 +326,25 @@
|
||||
"count": "{{count}} checks",
|
||||
"unnamed": "check"
|
||||
},
|
||||
"edit": {
|
||||
"title": "Edit file",
|
||||
"discard": "Discard changes",
|
||||
"branch": "Commit to branch",
|
||||
"loadingBranches": "Loading branches…",
|
||||
"createBranch": "Create a new branch",
|
||||
"newBranchName": "New branch name",
|
||||
"newBranchPlaceholder": "feature/my-change",
|
||||
"protectedBranch": "{{branch}} is protected. Your change will be committed to a new branch.",
|
||||
"commitMessage": "Commit message",
|
||||
"commitMessagePlaceholder": "Describe your change",
|
||||
"openPullRequest": "Open a pull request",
|
||||
"prTitle": "Pull request title",
|
||||
"prTitlePlaceholder": "Title for the pull request",
|
||||
"incomplete": "Add a commit message and a target branch.",
|
||||
"commit": "Commit changes",
|
||||
"commitSuccessTitle": "Committed",
|
||||
"commitSuccessBody": "Your changes were committed."
|
||||
},
|
||||
"inbox": {
|
||||
"title": "Inbox",
|
||||
"filterUnread": "Unread",
|
||||
@@ -359,6 +379,10 @@
|
||||
"pollInterval": "Refresh interval",
|
||||
"pollIntervalManual": "Manual only",
|
||||
"pollIntervalSeconds": "{{count}} seconds",
|
||||
"editor": "Editor",
|
||||
"editorUrlTemplate": "Editor URL template",
|
||||
"editorUrlPlaceholder": "vscode://vscode.git/clone?url={cloneUrl}",
|
||||
"editorUrlHelp": "Leave empty to hide. Placeholders: {owner}, {repo}, {cloneUrl}, {htmlUrl}. Your token is never sent.",
|
||||
"data": "Data",
|
||||
"clearCache": "Clear cached data",
|
||||
"clearCacheTitle": "Clear cached data?",
|
||||
|
||||
Reference in new issue
Block a user