Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
0150cb3
feat(app): the keyboard moves only between cards, Tab switches tabs
brunoomariano Nov 10, 2026
dec6084
fix(app): a window that outlived an upgrade asks for a restart
brunoomariano Nov 10, 2026
4012e29
docs: keys on the cards only, Tab, the sources in Settings
brunoomariano Nov 10, 2026
8c67283
fix(scripts): keep a running TasksPending out of the drop-down picture
brunoomariano Nov 10, 2026
ab33aa3
docs: retake the drop-down picture without the Sources button
brunoomariano Nov 10, 2026
622b3a6
fix(app): the focus starts on no widget, and dialogs ring it in the t…
brunoomariano Nov 10, 2026
4d639d7
feat(app): keys for the cards the focus no longer reaches
brunoomariano Nov 10, 2026
a496284
feat(core): change the config file and keep its comments
brunoomariano Nov 10, 2026
4f9bcfc
feat(runtime): read the env file, check and write the config
brunoomariano Nov 10, 2026
a3ed5a5
feat(core): describe what Settings asks of each kind of source
brunoomariano Nov 10, 2026
9d625d0
refactor(app): leave what shows and how often it refreshes to the config
brunoomariano Nov 10, 2026
08d57e3
feat(app): set the sources, their stacks and credentials up in Settings
brunoomariano Nov 10, 2026
87fe90a
docs: set the sources up in Settings, tokens without a restart
brunoomariano Nov 10, 2026
7bb1989
fix(runtime): keep the tokens when the env file cannot be read
brunoomariano Nov 10, 2026
614e686
fix(app): Settings refuses a blank secret and moves a source in its b…
brunoomariano Nov 10, 2026
148af58
fix(app): c brings the Board, and a dialog from the card menu keeps t…
brunoomariano Nov 10, 2026
477bc56
fix(scripts): stop the sandbox when the drop-down picture fails
brunoomariano Nov 10, 2026
cab3a29
chore(release): prepare v0.10.0
brunoomariano Nov 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Use the vocabulary in `crates/pending-core`: `DashboardSnapshot`, `Board` (a fil
- `make up`: run the daemon on `127.0.0.1:61000`.
- `make app`: open the window (over the daemon when it runs, else over the sources).
- `make sandbox`: open the window over deterministic simulated cards, without reading config, credentials, cache, or external sources.
- `make screenshots`: regenerate the README pictures in `docs/assets` from the sandbox window (`tasks-pending sandbox --screenshot <file> --scene activity|light|omarchy|board|sources|settings|snoozed|todo|keys`); run it after a change that alters how the window looks. It needs a display that is drawing frames (not one on DPMS off). Without one, GTK's Broadway backend works headless at 1024×768: `gtk4-broadwayd :5 &` then `GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 make screenshots`.
- `scripts/dropdown-picture.sh <file>`: picture the sandbox dropped down on a live Omarchy desktop, through the sandbox's own `toggle` action over D-Bus. It goes to an empty workspace, pictures the focused monitor with `grim` and comes back. It needs Hyprland, Omarchy's shell with TasksPending's icon on the bar, and a `tasks-pending` with `toggle` (`TASKS_PENDING_BIN` names another), so CI cannot run it. The README's first picture comes from it, with the pointer painted out; `tasks-pending-bar.png` is cropped from that picture, the icon ringed.
- `make screenshots`: regenerate the README pictures in `docs/assets` from the sandbox window (`tasks-pending sandbox --screenshot <file> --scene activity|light|omarchy|board|settings|source|stack|snoozed|todo|keys`); run it after a change that alters how the window looks. It needs a display that is drawing frames (not one on DPMS off). Without one, GTK's Broadway backend works headless at 1024×768: `gtk4-broadwayd :5 &` then `GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 make screenshots`.
- `scripts/dropdown-picture.sh <file>`: picture the sandbox dropped down on a live Omarchy desktop, through the sandbox's own `toggle` action over D-Bus. It goes to an empty workspace, pictures the focused monitor with `grim` and comes back. A TasksPending already running drops down in the same special workspace and would show through the sandbox, so its window waits in another one until the picture is taken. It needs Hyprland, Omarchy's shell with TasksPending's icon on the bar, and a `tasks-pending` with `toggle` (`TASKS_PENDING_BIN` names another), so CI cannot run it. The README's first picture comes from it, with the pointer painted out; `tasks-pending-bar.png` is cropped from that picture, the icon ringed.
- `make changelog-check`: check `CHANGELOG.md`'s sections (and run that check's own harness, `scripts/test-check-changelog.sh`).
- `make install-test` / `make release-installer-test` / `make release-assets-test`: validate the source installer, the public release installer and its stable download aliases without network access or changes to the machine.
- `make dependabot-issues-test`: check `scripts/dependabot-issues.sh` against a stand-in `gh`.
Expand Down Expand Up @@ -52,7 +52,9 @@ Visual style: simple and quiet, described in `crates/pending-app/DESIGN.md` (rea

Omarchy's bar: `crates/pending-app/src/omarchy_bar.rs` carries the shell plugin in `src/omarchy-bar/` (its manifest takes the crate's version) and writes it under `~/.config/omarchy/plugins/` when Settings turns it on (and at startup over a copy already there, so it follows upgrades); `dropdown.rs` decides each `tasks-pending toggle`, each close and each Esc from what Hyprland reports over its socket (a window in `special:tasks-pending` is dropped down) and drives it with Lua dispatches, which it tests against a stand-in socket. The window tells the icon what to show through `tasks-pending-bar.json` right in `$XDG_RUNTIME_DIR` (Quickshell does not see a file appear in a folder that did not exist when it started watching) (`omarchy_bar::signal` and `tell`: a dot while alerts rang with the window away, `alert::Missed`), which the plugin watches with Quickshell's `FileView`; a change to that file's shape changes both. A change to the plugin is checked by `omarchy-plugin-validate` in the tests where Omarchy is installed. The sandbox and `--screenshot` never touch Omarchy's or Hyprland's config.

Keys: `keymap.rs` is the one table of commands, what each is called and its keys, with what each key needs (nothing, a card in focus, or the card itself). The key handler (`ui/keys.rs`, on the window in the capture phase, standing aside while a dialog or a menu is open or the focus is in a text field), the keys dialog, the tooltips and the card menu's hints all read it. Moving between cards is `nav.rs` over the cards the page registers by column as it draws them (`Ctx::cards`). A card's key does what its menu offers (`present::key_action`), so no key reaches an action the menu would not show. Esc and Ctrl+Q keep their own handlers, and the table only lists them. What the window does with a key going down is `keymap::verdict`, a plain function over the keys held (`nav::Held`), tested without a window: held down, only the moves repeat (`Binding::repeats`), a key whose press ran something goes nowhere until it comes up (not into the dialog it opened either), and Esc's repeats go nowhere. Every dialog goes through `dialogs::show_over`, which gives the focus back to the card that had it; a direct `present()` loses that. The card menu names a key only through `keymap::menu_hint`: GTK turns a menu entry's `accel` into a live shortcut while the menu is open, so only the stage moves and Edit are named there, never Enter or Delete (one press would delete).
Keys: `keymap.rs` is the one table of commands, what each is called and its keys, with what each key needs (nothing, a card in focus, or the card itself). The key handler (`ui/keys.rs`, on the window in the capture phase, standing aside while a dialog or a menu is open or the focus is in a text field), the keys dialog, the tooltips and the card menu's hints all read it. Moving between cards is `nav.rs` over the cards the page registers by column as it draws them (`Ctx::cards`). A card's key does what its menu offers (`present::key_action`), so no key reaches an action the menu would not show. Esc and Ctrl+Q keep their own handlers, and the table only lists them. What the window does with a key going down is `keymap::verdict`, a plain function over the keys held (`nav::Held`), tested without a window: held down, only the moves repeat (`Binding::repeats`), a key whose press ran something goes nowhere until it comes up (not into the dialog it opened either), and Esc's repeats go nowhere. On the page only the cards take the keyboard focus: Tab (the tabs) and the arrows (the cards) belong to the handler, and a button, tab or header added to the page is built `focusable(false)`, or the focus and Enter land on it; what such a control shows that the keyboard needs gets a key instead (as **s** lists the snoozed cards, **c** opens the collapsed stacks, and Down past a stack's last card shown opens the rest, from `Slot::opens`). Every dialog goes through `dialogs::show_over`, which gives the focus back to the card that had it; a direct `present()` loses that. The card menu names a key only through `keymap::menu_hint`: GTK turns a menu entry's `accel` into a live shortcut while the menu is open, so only the stage moves and Edit are named there, never Enter or Delete (one press would delete).

Settings: `settings.rs` holds what it does without widgets, and its tests: `ConfigFile` and `EnvEdit` read the files `GET /api/v1/files` names, refuse a file that changed since it was shown, change the config through `pending_core::edit::ConfigDoc` (comments and order kept), load the result with `pending_runtime::config::check` and write it with `write_file` (one step, links followed, the env file 0600), and the forms of a source and a stack turn what a page shows into those changes. `ui/settings.rs` is its main page and `ui/sources.rs` the pages of a source, of the kinds and of a stack, built from `pending_core::schema`. A secret is never read back into an entry. The sandbox edits `src/sandbox.toml` and a made-up env file in memory.

Todos: `todo_store.rs` keeps them in `todos.sqlite3` in the data dir (`pending_runtime::config::data_dir`), through `rusqlite` with SQLite bundled; `session::Todos` writes the whole list on every change, so a save that works makes good one that failed. The file carries an `application_id` and a `user_version`: a schema change is a new entry at the end of `MIGRATIONS`, never an edit to one that shipped, and a file from a newer schema is read and never written. `scripts/install.sh --uninstall` removes only the files it installed from that folder. The sandbox and `--screenshot` keep their todos in memory. Alerts are not saved.

Expand All @@ -65,14 +67,16 @@ The app's tests need no display (CI has none): what they check lives outside the
- a `sources` arm in `pending_runtime::config::plan`;
- a new crate with its stack type (`deny_unknown_fields`);
- `docs/operations.md` (kind table and section);
- its `Kind` in `pending-core/src/schema.rs`, which Settings builds its pages from;
- `config.example.toml`;
- `docs/install.md` (tokens table).
- **Model change (`pending-core` types):** struct literals in `pending-api`, `pending-client` and `pending-app` tests usually need the new field. The API's JSON is the contract the window reads; keep it backwards compatible (`#[serde(default)]`) because a window may talk to an older daemon. The types both sides share (the default address `DEFAULT_LISTEN_ADDR`/`DEFAULT_DAEMON_URL`, `Health`, `VersionReport`, the dashboard header, the refresh cooldown and its 429 body `RefreshWait`) live in `pending-core::api`, not in the daemon or the client. `crates/pending-core/tests/fixtures/snapshot-0.5.0.json` is what a 0.5.0 daemon sends: fields may be added, never renamed or dropped.
- **A stack key or a credential of one kind:** the kind's entry in `pending-core/src/schema.rs`, then `docs/operations.md` and `config.example.toml`. `pending-runtime/tests/schema.rs` fails when a key the provider takes is missing there, a key there does not load, or a variable there is not one its crate reads.
- **Per-stack option for every kind:** `StackConfig` (pending-core), then `SourceSpec` / `SourceReport` if the snapshot needs it.
- **State the user changes from the window (marks, snoozes):** the store in `pending-runtime` (`marks.rs`, `snoozes.rs`, `looks.rs`, all on `store.rs`), the `Dashboard` trait, a route in `pending-api` guarded by the dashboard header, a method in `pending-client`, a `Command` in `pending-app`'s backend, and the snapshot field the window reads. Window-only choices go in `View` instead.
- **New window setting:**
- `View` (pending-app `view.rs`, with its default and validation on load);
- the settings dialog (`ui/dialogs.rs`);
- Settings (`ui/settings.rs`);
- `present.rs` if it changes what is shown;
- `docs/operations.md`.
- **New key:** a `Command` and its entry in `keymap::BINDINGS` (label, section, keys and what they need), its arm in `ui/keys.rs`'s `run`, a lookup test, and the keys paragraph in `docs/operations.md`; a key that acts on a card goes through `present::key_action` like the menu.
Expand Down
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## 0.10.0

Settings sets the sources, their stacks and their tokens up, writing the config file with its comments kept and the env file, and the keyboard moves only between the cards.

### Features

- Settings sets the sources up. **Add a source…** adds one of any kind, and its page changes its name, board, refresh, timeout and icons, moves it within its board, switches it off and removes it; its stacks are set up the same way, on a page built from what their kind reads. **Refresh every** and **Give up on a refresh after** set the global `refresh_seconds` and `timeout_seconds`. Settings writes the config file the dashboard follows, keeping its comments and everything it does not change, and only after checking that the new text loads; it writes nothing over a file that changed since it was shown, and follows a link to where the file is kept, a dotfiles repository for instance.
- Settings sets the credentials too, on each source's page, in the env file, which it keeps readable only by you. A secret is never shown, only whether it is set and under which name.
- The daemon reads the env file again whenever it reads the config, so a changed token needs no restart. `GET /api/v1/files` names the config file and the env file it follows, and Settings needs a daemon of 0.10.0 or newer to change them.

### Changed

- Settings' switches turn sources and stacks on or off in the config (`enabled`), for the daemon too, instead of hiding them from the window. What 0.9 hid shows again after the upgrade: switch it off in Settings. The gear's dot now means only that the board filter shows one board.
- The window no longer asks for refreshes on its own: Auto-refresh is gone, and the daemon refreshes each source every `refresh_seconds` (5 minutes unless the config says otherwise), which Settings sets. The Refresh button works as before.

- The keyboard moves only between the cards. The arrows do what **h**/**j**/**k**/**l** do from anywhere in the window, and the focus no longer lands on the buttons, the tabs, a stack's header, an empty stack or a card's link and menu button; the mouse clicks them as before. **Tab** (or **Shift+Tab**) switches between the Activity and the Board. The card in focus wears a ring in the text colour, as do the controls in dialogs, so it no longer looks like a picked card or the open tab. What the focus no longer reaches has keys: **j** or **↓** on the last card a stack shows opens the rest, **c** opens the collapsed stacks and **s** lists the snoozed cards.
- The sources are at the top of Settings, and the Sources button is gone, its **s** key now listing the snoozed cards: the gear shows the warning icon while a source needs a look.

### Fixed

- A window still running after an upgrade says `· restart to update` under the controls. Until it quits, every launch brings that old window back up, which is why the keys dialog and the card keys of 0.9.0 seemed missing after upgrading from 0.8.

## 0.9.0

The keyboard drives the window, with a dialog that lists every key and finds one by what it does, and todos are kept from one run to the next.
Expand Down
32 changes: 17 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ members = [
resolver = "3"

[workspace.package]
version = "0.9.0"
version = "0.10.0"
edition = "2024"
rust-version = "1.95"
license = "MIT"
Expand All @@ -40,6 +40,7 @@ sha2 = "0.10"
thiserror = "2.0"
tokio = { version = "1.0", features = ["macros", "net", "rt-multi-thread", "signal"] }
toml = "0.9"
toml_edit = "0.25"
tower = { version = "0.5", features = ["util"] }
tower-http = { version = "0.6", features = ["trace"] }
tracing = "0.1"
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ screenshots: ## Regenerate the README pictures from the sandbox window
./target/debug/tasks-pending sandbox --screenshot docs/assets/tasks-pending-sandbox-light.png --scene light
./target/debug/tasks-pending sandbox --screenshot docs/assets/tasks-pending-omarchy.png --scene omarchy
./target/debug/tasks-pending sandbox --screenshot docs/assets/tasks-pending-board.png --scene board
./target/debug/tasks-pending sandbox --screenshot docs/assets/tasks-pending-sources.png --scene sources
./target/debug/tasks-pending sandbox --screenshot docs/assets/tasks-pending-settings.png --scene settings
./target/debug/tasks-pending sandbox --screenshot docs/assets/tasks-pending-source.png --scene source
./target/debug/tasks-pending sandbox --screenshot docs/assets/tasks-pending-stack.png --scene stack
./target/debug/tasks-pending sandbox --screenshot docs/assets/tasks-pending-snoozed.png --scene snoozed
./target/debug/tasks-pending sandbox --screenshot docs/assets/tasks-pending-todo.png --scene todo
./target/debug/tasks-pending sandbox --screenshot docs/assets/tasks-pending-keys.png --scene keys
Expand Down
Loading
Loading