adds a functional design
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
# Notifications
|
||||
|
||||
Helder confirms what it just did with a toast: a small card that appears near the bottom centre of the window and goes away on its own. Toasts never ask for anything and never block your work.
|
||||
|
||||
[Guide index](index.md) · Related: [Window layout](layout.md), [Git](git.md), [Explorer](explorer.md), [Pass on to agent](pass-on-to-agent.md)
|
||||
|
||||
## At a glance
|
||||
|
||||
```text
|
||||
+----------------------------------------------------------------------------+
|
||||
| |
|
||||
| (workspace) |
|
||||
| |
|
||||
| +-------------------------------------------+ |
|
||||
| |# [] Committed 2 files [Fix the login fo..]| (1) |
|
||||
| +-------------------------------------------+ |
|
||||
| |# [] Pushed [main -> main] | |
|
||||
| +-------------------------------------------+ |
|
||||
| ^ ^ ^ ^ |
|
||||
| (2)(3) (4) (5) |
|
||||
| |
|
||||
+----------------------------------------------------------------------------+
|
||||
| status bar |
|
||||
+----------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
1. **Toast stack**: one card per message, newest at the bottom.
|
||||
2. **Amber edge**: a thin amber rule on the left side of the card.
|
||||
3. **Icon**: a small amber icon.
|
||||
4. **Title**: what happened, in bright text.
|
||||
5. **Detail**: the file, reference or message it is about, in a small amber chip.
|
||||
|
||||
## Features
|
||||
|
||||
### What a toast looks like
|
||||
- A dark card with a thin border, a soft shadow and an amber rule on its left edge.
|
||||
- The title says what happened, for example "Saved" or "Push failed".
|
||||
- Most toasts carry a detail in an amber chip: a file path, a reference, a commit subject or a git message.
|
||||
- A long detail is cut in the middle, so you see its start and its end.
|
||||
- A card is never wider than 560 points.
|
||||
|
||||
### Where it appears
|
||||
- Centred at the bottom of the window, 44 points above the bottom edge, just over the status bar.
|
||||
- Several toasts stack on top of each other.
|
||||
- Toasts may sit on top of an open overlay, such as search or the note.
|
||||
|
||||
### How it goes away
|
||||
- Each toast disappears by itself after about 2.3 seconds.
|
||||
- You cannot click a toast. Clicks go through it to whatever is underneath.
|
||||
|
||||
### When toasts appear
|
||||
|
||||
Files and the editor:
|
||||
|
||||
| Title | Detail | When |
|
||||
|---|---|---|
|
||||
| Saved | file path | You saved a file with `Cmd+S` (auto-save does not toast) |
|
||||
| Save failed | file path | A file could not be written |
|
||||
| Created file / Created folder | new path | After New File or New Folder |
|
||||
| Renamed file / Renamed folder | new path | After Rename |
|
||||
| Deleted file / Deleted folder | path | After Delete |
|
||||
| Create failed / Rename failed / Delete failed | path or name | The file action did not work |
|
||||
| Copied reference | the reference | After Copy reference, for example `app/User.php:42` |
|
||||
| Copied | file name | After Copy file name |
|
||||
|
||||
Git:
|
||||
|
||||
| Title | Detail | When |
|
||||
|---|---|---|
|
||||
| Committed 1 file / Committed N files | commit subject (first 34 characters) | A commit succeeded |
|
||||
| Commit failed | git's error | The commit did not work; your message stays in the field |
|
||||
| Pushing… | none | A push started |
|
||||
| Pushed | git's message | The push succeeded |
|
||||
| Push failed | git's message | The push did not work |
|
||||
| Discarded changes | path | After Discard changes |
|
||||
| Discard failed | path | Discard did not work |
|
||||
| Stage failed / Unstage failed | path or git's error | Staging or unstaging did not work |
|
||||
|
||||
The agent and the note:
|
||||
|
||||
| Title | Detail | When |
|
||||
|---|---|---|
|
||||
| Passed to agent | the reference | Text was inserted into the Claude pane |
|
||||
| Note passed to agent | `.notes.txt` | You passed the whole note with `Cmd+P` |
|
||||
| Save failed | `.notes.txt` | The project note could not be saved |
|
||||
|
||||
### Other short messages
|
||||
Two other messages appear for a moment, but they are not toasts:
|
||||
- **Too big.**: an amber word in the middle of the File column, for 1.6 seconds, when a file is too large to open, such as `composer.lock`. See [File view](file-view.md).
|
||||
- **Branch and project card**: when you switch back to a Helder window, a card with the branch and the project name shows in the middle for half a second. See [Window layout](layout.md).
|
||||
|
||||
## Related
|
||||
|
||||
- [Git](git.md): commit, push, stage and discard, which report through toasts.
|
||||
- [Explorer](explorer.md) and [Right-click menu](right-click-menu.md): the file actions behind most file toasts.
|
||||
- [Pass on to agent](pass-on-to-agent.md): the "Passed to agent" toast.
|
||||
- [Notes](notes.md): passing and saving the note.
|
||||
- [Dialogs](dialogs.md): prompts that do ask you something, unlike toasts.
|
||||
Reference in New Issue
Block a user