@andrioid/paseo-attention-span 0.7.3 → 0.7.4

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.
package/OVERVIEW.md CHANGED
@@ -10,11 +10,11 @@ This is the tab you'll live in. Items are grouped by reason: someone's waiting f
10
10
 
11
11
  At the top is **Wrap up**. It lists merged, closed or handed-off work that still has a Paseo session open. Archive puts the session and its worktree away. It leaves alone worktrees another session still uses, and your own checkout. It also checks for uncommitted or unpushed work first, because there's no Undo.
12
12
 
13
- ![Doing](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.7.3/docs/screenshots/desktop-dark-doing.png)
13
+ ![Doing](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.7.4/docs/screenshots/desktop-dark-doing.png)
14
14
 
15
15
  Every item has one main button that matches why it's there: Reply, Review, Fix CI, Merge. Open the item to see every action, each with a line saying what it'll do. I wanted buttons you can press without wondering what's about to happen to your repo.
16
16
 
17
- ![An item's actions](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.7.3/docs/screenshots/desktop-dark-doing-sheet.png)
17
+ ![An item's actions](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.7.4/docs/screenshots/desktop-dark-doing-sheet.png)
18
18
 
19
19
  Mentions clear when you reply or react. Team mentions don't count, because "@everyone-in-backend" isn't really a question for *me*. If something's just an FYI, dismiss it.
20
20
 
@@ -24,7 +24,7 @@ This is your work where someone else has the next move: a review you asked for,
24
24
 
25
25
  Otherwise there's nothing to do here, and that's kind of the point. It's tracked, so you can stop holding it in your head.
26
26
 
27
- ![Waiting](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.7.3/docs/screenshots/desktop-dark-waiting.png)
27
+ ![Waiting](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.7.4/docs/screenshots/desktop-dark-waiting.png)
28
28
 
29
29
  ## Next up
30
30
 
@@ -32,7 +32,7 @@ For when your plate is clear. It does happen. Issues assigned to you come first,
32
32
 
33
33
  **Start** launches an agent that reads the issue and proposes a plan. **New issue** (also in ⌘K) takes a line or two, and an agent turns that into a proper issue. It checks for duplicates and shows you the result before anything goes to GitHub.
34
34
 
35
- ![Next up](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.7.3/docs/screenshots/desktop-dark-next-up.png)
35
+ ![Next up](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.7.4/docs/screenshots/desktop-dark-next-up.png)
36
36
 
37
37
  ## History
38
38
 
@@ -40,7 +40,7 @@ What you finished in recent weeks, grouped by week. There's a copy button per we
40
40
 
41
41
  Things other people did to your work, like merging your PR or taking an issue over, wait at the top until you've seen them. None of it is a to-do, but it shouldn't happen behind your back either.
42
42
 
43
- ![History](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.7.3/docs/screenshots/desktop-dark-history.png)
43
+ ![History](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.7.4/docs/screenshots/desktop-dark-history.png)
44
44
 
45
45
  ## Agent sessions
46
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrioid/paseo-attention-span",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "For when your attention is spread thin: the GitHub issues and pull requests waiting on you, grouped by why, with one-tap Paseo sessions.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -2,9 +2,10 @@
2
2
  // [ATT-05, ATT-06].
3
3
  import { type ActionId, type AgentSummary, type AttentionView, type Chip, type FailingChecks, isWorking, type Item, looseSessions, ownStack, reviewAgain, SECTIONS, type SubRow, type TabId, type WaitingOn, type WrapItem } from "./attention";
4
4
  import { summarizeRerun } from "./checks";
5
- import type { SessionKind } from "./config";
5
+ import { nextUpSources, type SessionKind } from "./config";
6
6
  import { ago } from "./format";
7
7
  import { sameName } from "./names";
8
+ import { nextUpFilter } from "./next-up-filter";
8
9
  import { ACTION_SESSION } from "./prompts";
9
10
  import { doingCount, finishText } from "./wrap-up";
10
11
 
@@ -211,14 +212,19 @@ export function stackMetaChips(item: Item, targetRow: SubRow | undefined): Chip[
211
212
 
212
213
  // Each tab's count: History's finished work in the weeks it shows [HIS-01], Doing with Wrap up's rows [ATT-09, ATT-22], work
213
214
  // waiting on several people once, and every issue in Next up.
215
+ function nextUpUnclaimed(view: Pick<AttentionView, "unclaimed" | "scopes" | "config" | "sources" | "projects" | "projectFilter">) {
216
+ return nextUpFilter({ unclaimed: view.unclaimed, selected: view.scopes, sources: nextUpSources(view.config), selectedSources: view.sources, projects: view.projects, selectedProjects: view.projectFilter }).shown;
217
+ }
218
+
214
219
  export function tabCounts(
215
- view: Pick<AttentionView, "history" | "count" | "waiting" | "assigned" | "unclaimed">,
220
+ view: Pick<AttentionView, "history" | "count" | "waiting" | "assigned" | "unclaimed" | "scopes" | "config" | "sources" | "projects" | "projectFilter">,
216
221
  wrap: WrapItem[],
217
222
  ): Record<TabId, number> {
218
223
  return {
219
224
  history: view.history.filter((item) => item.section === "done" && !!item.closedAt).length,
220
225
  doing: doingCount(view, wrap),
221
226
  waiting: new Set(view.waiting.flatMap((group) => group.items.map((item) => item.key))).size,
222
- next: view.assigned.length + view.unclaimed.length,
227
+ // Unclaimed as its filter leaves it, so the tab says what the list shows [NXT-03, NXT-09].
228
+ next: view.assigned.length + nextUpUnclaimed(view).length,
223
229
  };
224
230
  }