@kitlangton/ghui 0.3.0 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +13 -3
  2. package/bin/ghui.js +6 -1
  3. package/dist/index.js +9456 -0
  4. package/package.json +7 -4
  5. package/src/App.tsx +0 -2779
  6. package/src/appCommands.ts +0 -409
  7. package/src/commands.ts +0 -73
  8. package/src/config.ts +0 -20
  9. package/src/date.ts +0 -20
  10. package/src/domain.ts +0 -149
  11. package/src/errors.ts +0 -10
  12. package/src/index.tsx +0 -50
  13. package/src/keyboard/opentuiAdapter.ts +0 -43
  14. package/src/keymap/all.ts +0 -116
  15. package/src/keymap/changedFilesModal.ts +0 -23
  16. package/src/keymap/closeModal.ts +0 -13
  17. package/src/keymap/commandPalette.ts +0 -16
  18. package/src/keymap/commentModal.ts +0 -73
  19. package/src/keymap/commentThreadModal.ts +0 -24
  20. package/src/keymap/detailView.ts +0 -30
  21. package/src/keymap/diffView.ts +0 -93
  22. package/src/keymap/filterMode.ts +0 -13
  23. package/src/keymap/helpers.ts +0 -24
  24. package/src/keymap/labelModal.ts +0 -16
  25. package/src/keymap/listNav.ts +0 -119
  26. package/src/keymap/mergeModal.ts +0 -23
  27. package/src/keymap/openRepositoryModal.ts +0 -13
  28. package/src/keymap/submitReviewModal.ts +0 -48
  29. package/src/keymap/themeModal.ts +0 -49
  30. package/src/mergeActions.ts +0 -88
  31. package/src/observability.ts +0 -46
  32. package/src/pullRequestCache.ts +0 -19
  33. package/src/pullRequestViews.ts +0 -43
  34. package/src/services/BrowserOpener.ts +0 -22
  35. package/src/services/Clipboard.ts +0 -46
  36. package/src/services/CommandRunner.ts +0 -91
  37. package/src/services/GitHubService.ts +0 -756
  38. package/src/services/MockGitHubService.ts +0 -182
  39. package/src/themeStore.ts +0 -60
  40. package/src/ui/CommandPalette.tsx +0 -176
  41. package/src/ui/DetailsPane.tsx +0 -656
  42. package/src/ui/FooterHints.tsx +0 -90
  43. package/src/ui/LoadingLogo.tsx +0 -75
  44. package/src/ui/PullRequestDiffPane.tsx +0 -249
  45. package/src/ui/PullRequestList.tsx +0 -194
  46. package/src/ui/colors.ts +0 -821
  47. package/src/ui/commentEditor.ts +0 -126
  48. package/src/ui/comments.tsx +0 -143
  49. package/src/ui/diff.ts +0 -650
  50. package/src/ui/diffStats.tsx +0 -25
  51. package/src/ui/modals.tsx +0 -964
  52. package/src/ui/primitives.tsx +0 -350
  53. package/src/ui/pullRequests.ts +0 -106
  54. package/src/ui/singleLineInput.ts +0 -26
  55. package/src/ui/spinner.ts +0 -1
package/README.md CHANGED
@@ -67,10 +67,12 @@ You can also copy `.env.example` to `.env` and edit the values locally.
67
67
  - `esc`: return from expanded details, leave diff/comment mode, or close modal
68
68
  - `r`: refresh
69
69
  - `d`: view stacked diff for all changed files
70
- - `c`: enter or exit diff comment mode while viewing a diff
71
- - `up` / `down` / `pageup` / `pagedown`: move comment target while in diff comment mode
70
+ - `shift-r`: review or approve the selected pull request
71
+ - `up` / `down` / `pageup` / `pagedown`: move comment target while viewing a diff
72
72
  - `enter`: open a commented diff line, or start a comment on an uncommented line
73
- - `a`: add a comment while in diff comment mode
73
+ - `v`: start or clear a multi-line diff comment range
74
+ - `n` / `p`: jump between diff comment threads
75
+ - `f`: open the changed-files navigator while viewing a diff
74
76
  - `left` / `right`: choose the deleted or added side while in split diff comment mode
75
77
  - `[` / `]`: switch files while viewing or commenting on a diff
76
78
  - `s`: toggle draft or ready-for-review state
@@ -81,3 +83,11 @@ You can also copy `.env.example` to `.env` and edit the values locally.
81
83
  - `o`: open PR in browser
82
84
  - `y`: copy PR metadata
83
85
  - `q`: quit
86
+
87
+ Review submission:
88
+
89
+ - Press `shift-r` to open the review modal.
90
+ - Use `j` / `k` or `up` / `down` to choose Comment, Approve, or Request changes.
91
+ - Press `enter` to move to the optional summary area.
92
+ - Press `enter` again to submit, or `shift-enter` to insert a newline.
93
+ - Press `esc` from the summary to return to action selection; press `esc` from action selection to cancel.
package/bin/ghui.js CHANGED
@@ -63,4 +63,9 @@ if (command !== undefined) {
63
63
  process.exit(1)
64
64
  }
65
65
 
66
- await import("../src/index.tsx")
66
+ const sourceEntry = new URL("../src/index.tsx", import.meta.url)
67
+ if (await Bun.file(sourceEntry).exists()) {
68
+ await import(sourceEntry.href)
69
+ } else {
70
+ await import("../dist/index.js")
71
+ }