makes readme.md nicer
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
Helder is the dark workbench for reviewing the code Claude Code writes: a native macOS app in Swift, SwiftUI and AppKit. See [docs/index.md](docs/index.md) for the architecture, the design tokens and the behaviour spec.
|
Helder is the dark workbench for reviewing the code Claude Code writes: a native macOS app in Swift, SwiftUI and AppKit. See [docs/index.md](docs/index.md) for the architecture, the design tokens and the behaviour spec.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Build, test, run
|
## Build, test, run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -24,6 +26,30 @@ One project per window, three columns, and a full-screen Git view over them:
|
|||||||
|
|
||||||
Plus ⌘F search (this file, the project, file names), recent files and recent projects, and a watcher that keeps git, the tree and open files in step with what the agent writes.
|
Plus ⌘F search (this file, the project, file names), recent files and recent projects, and a watcher that keeps git, the tree and open files in step with what the agent writes.
|
||||||
|
|
||||||
|
### Git view
|
||||||
|
|
||||||
|
Staged, changed, new and deleted files, each with an inline side-by-side diff.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### Markdown preview
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### Search
|
||||||
|
|
||||||
|
One query searches the open file, the whole project and the file names.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Fork it with AI
|
||||||
|
|
||||||
|
[prompt.md](prompt.md) is a complete rebuild handoff for an AI agent such as Claude Code. Give it that one file, name a target language and UI toolkit, and it can rebuild Helder with the same behaviour, look and feel. The file holds every string, colour, size and key, and it lists every test as a plain-English rule.
|
||||||
|
|
||||||
|
## Design
|
||||||
|
|
||||||
|
[design/](design/) holds the v2 design handoff: [design/README.md](design/README.md) describes the full-screen Git view and the design tokens, and `Helder App v2.dc.html` is the HTML prototype (open it in a browser next to `support.js`). The prototype is a reference, not production code. Where it differs from the app, the code wins.
|
||||||
|
|
||||||
## Keyboard
|
## Keyboard
|
||||||
|
|
||||||
| Keys | Action |
|
| Keys | Action |
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
# To do: editor pointer flicker and "Show diff"
|
|
||||||
|
|
||||||
Status on 2026-10-07: items 2 and 3 built and tested (not yet checked in the running app); item 1 open.
|
|
||||||
|
|
||||||
## 1. Pointer flicker on a changed file
|
|
||||||
|
|
||||||
A file with a git change shows its changed lines with a tinted background.
|
|
||||||
|
|
||||||
- [x] Hover over the editor without a menu: steady pointer. Fixed: the line-number gutter is cut out of the I-beam rect (`visibleRectWithoutScrollers` in `Components/PointerPolicy.swift`).
|
|
||||||
- [ ] With the right-click menu open on a changed file, moving the mouse still flickers a bit between arrow and I-beam. Expected: a steady arrow over the menu and over every column behind it.
|
|
||||||
- Suspects: `CodeTextView`'s mouseMoved tracking area, NSTextView's own `mouseEntered` → `_mouseInside:` (already re-routed in `PointerBoundTextView`), the I-beam cursor rects of the `CodeScrollView` clip view, row-background redraws that reset cursor rects, and SwiftUI updates of the editor while the file changes on disk.
|
|
||||||
- Find the setter at runtime with a temporary `NSCursor.set` trace, fix it through `PointerPolicy`, then remove the trace.
|
|
||||||
|
|
||||||
## 2. Show diff from the right-click menu, not from a click
|
|
||||||
|
|
||||||
- [x] A left click on a changed line places the caret like any line, and never opens the Diff. Remove `CodeEditorController.plainClick`, `actions.markedLineClicked`, the call in `CodeTextView.mouseDown` and the wiring in `EditorPane.swift` (`editor.openDiff(atLine:)`).
|
|
||||||
- [x] A right-click on a changed line shows the editor menu with a separator and **Show diff** below Pass on reference / Copy reference. It opens the Diff of that file at that line (`editor.openDiff(atLine:)`).
|
|
||||||
- Every marked line counts, including blank added lines and the area after the last glyph of a line.
|
|
||||||
- Same conditions as the old click: Actual mode, the file has a diff, not a newly added file (`EditorPresentation.opensDiffOnClick`, rename it).
|
|
||||||
- An unchanged line: menu unchanged. The menu in `DiffOverlayView` gets no Show diff.
|
|
||||||
- Plumbing: `ContextActions.entries(for: .editor…)`, `EditorStore.contextMenuRequest`, `WorkspaceModel+ContextActions.execute`, tint and symbol in `ContextMenuOverlay` (same as `.openDiff`).
|
|
||||||
|
|
||||||
## 3. No header on the editor menu
|
|
||||||
|
|
||||||
- [x] The editor right-click menu loses its header line (for example `sample.php:12`), also in the Diff view. `ContextActions.header` returns "" for `.editor`. File, git-row and project-root menus keep theirs.
|
|
||||||
|
|
||||||
## Done in this session (uncommitted)
|
|
||||||
|
|
||||||
- Bouwen item on `ontwikkelingen/<name>` folders.
|
|
||||||
- Arrow instead of the I-beam over the context menu where it covers the editor (`PointerBoundTextView.mouseEntered`).
|
|
||||||
- No header on folder menus.
|
|
||||||
|
|
||||||
## Verify
|
|
||||||
|
|
||||||
- Tests and docs for each item, as in the earlier changes (`docs/guide/right-click-menu.md`, `docs/behaviour.md`).
|
|
||||||
- Check in the running app; drive the mouse only when Jonathan is away from the machine.
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 134 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 324 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 527 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 200 KiB |
@@ -196,7 +196,7 @@ Each section ends with its own full list of doc-vs-code conflicts.
|
|||||||
|
|
||||||
## 1. Visual design system and shared UI components
|
## 1. Visual design system and shared UI components
|
||||||
|
|
||||||
This section defines every visual token (colour, type, geometry, motion), the fonts that ship with the app, every shared UI component, the file-type table (language, label, badge), the mouse-pointer policy, and the app icon. The code is the source of truth; where the design handoff (`docs/design_handoff_helder_app_v2/`) disagrees, the code value is given and the conflict is listed at the end.
|
This section defines every visual token (colour, type, geometry, motion), the fonts that ship with the app, every shared UI component, the file-type table (language, label, badge), the mouse-pointer policy, and the app icon. The code is the source of truth; where the design handoff (`design/`) disagrees, the code value is given and the conflict is listed at the end.
|
||||||
|
|
||||||
Ground rules that hold everywhere:
|
Ground rules that hold everywhere:
|
||||||
|
|
||||||
@@ -833,7 +833,7 @@ These exist because the platform fights the rule in several ways. A re-implement
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 1.10 Design handoff v2 tokens (`docs/design_handoff_helder_app_v2/README.md`, prototype HTML)
|
### 1.10 Design handoff v2 tokens (`design/README.md`, prototype HTML)
|
||||||
|
|
||||||
The handoff describes the design language as a dark (slate) design system: IBM Plex Mono + IBM Plex Sans, flat fields, 2px radii, amber as the only accent, no shadows except menus and modals. Tokens as written there (for reference; code values above win):
|
The handoff describes the design language as a dark (slate) design system: IBM Plex Mono + IBM Plex Sans, flat fields, 2px radii, amber as the only accent, no shadows except menus and modals. Tokens as written there (for reference; code values above win):
|
||||||
|
|
||||||
@@ -10159,7 +10159,7 @@ Settings that affect behavior described above include indentation and editor dis
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Appendix: design handoff v2 README (design source of the Git view)
|
### Appendix: design handoff v2 README (design source of the Git view; files in `design/`)
|
||||||
|
|
||||||
#### Handoff: Helder App v2 — full-screen Git view
|
#### Handoff: Helder App v2 — full-screen Git view
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user