@andrioid/paseo-attention-span 0.8.1 → 0.8.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.
- package/OVERVIEW.md +5 -5
- package/client/attention-screen.tsx +3 -3
- package/client/icons.ts +2 -0
- package/client/item-row.tsx +3 -1
- package/client/mark.ts +6 -2
- package/client/next-up.tsx +1 -1
- package/client/ui.tsx +5 -4
- package/docs/architecture.md +1 -1
- package/docs/screenshots/desktop-dark-doing-clear.png +0 -0
- package/docs/screenshots/desktop-dark-doing.png +0 -0
- package/docs/screenshots/desktop-dark-history-filtered.png +0 -0
- package/docs/screenshots/desktop-dark-history-groups.png +0 -0
- package/docs/screenshots/desktop-dark-history.png +0 -0
- package/docs/screenshots/desktop-dark-next-up.png +0 -0
- package/docs/screenshots/desktop-dark-settings.png +0 -0
- package/docs/screenshots/desktop-dark-waiting.png +0 -0
- package/docs/screenshots/phone-dark-doing.png +0 -0
- package/docs/screenshots/phone-dark-history.png +0 -0
- package/docs/screenshots/phone-light-next-up-filtered.png +0 -0
- package/package.json +1 -1
- package/server/changes.ts +1 -1
- package/server/classify.ts +1 -1
- package/server/fixture.ts +2 -0
- package/server/view.ts +1 -1
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
|
-

|
|
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
|
-

|
|
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
|
-

|
|
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
|
-

|
|
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
|
-

|
|
44
44
|
|
|
45
45
|
## Agent sessions
|
|
46
46
|
|
|
@@ -28,7 +28,7 @@ import { History } from "./history";
|
|
|
28
28
|
import { WrapUp } from "./wrap-up";
|
|
29
29
|
import { SetupChecklist } from "./setup";
|
|
30
30
|
import { UpdateNotice } from "./update";
|
|
31
|
-
import { Avatar, Button, Hint, Loading, SectionHeader, SpinningIcon, StylesProvider, TablerIcon, tint, useCopy, useStyles } from "./ui";
|
|
31
|
+
import { Avatar, Button, BUTTON_HINT_DELAY_MS, Hint, Loading, SectionHeader, SpinningIcon, StylesProvider, TablerIcon, tint, useCopy, useStyles } from "./ui";
|
|
32
32
|
|
|
33
33
|
const SECTION_ICONS: Record<SectionId, IconName> = {
|
|
34
34
|
reply: "reply",
|
|
@@ -164,7 +164,7 @@ function AttentionList({
|
|
|
164
164
|
))}
|
|
165
165
|
</View>
|
|
166
166
|
<View style={[styles.row, { gap: 16 }]}>
|
|
167
|
-
<Hint text="Refresh now" inline>
|
|
167
|
+
<Hint text="Refresh now" inline delayMs={BUTTON_HINT_DELAY_MS}>
|
|
168
168
|
<Pressable
|
|
169
169
|
accessibilityRole="button"
|
|
170
170
|
accessibilityLabel="Refresh now"
|
|
@@ -178,7 +178,7 @@ function AttentionList({
|
|
|
178
178
|
</Pressable>
|
|
179
179
|
</Hint>
|
|
180
180
|
{openSettings ? (
|
|
181
|
-
<Hint text="Settings" inline>
|
|
181
|
+
<Hint text="Settings" inline delayMs={BUTTON_HINT_DELAY_MS}>
|
|
182
182
|
{/* Padding, not hitSlop: native only reaches as far as the hint's wrapper, which hugs the icon. */}
|
|
183
183
|
<Pressable accessibilityRole="button" accessibilityLabel="Attention Span settings" onPress={openSettings} style={{ padding: 8, margin: -8 }}>
|
|
184
184
|
<TablerIcon name="settings" size={16} />
|
package/client/icons.ts
CHANGED
|
@@ -33,6 +33,8 @@ export const ICONS = {
|
|
|
33
33
|
clock: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0\"/><path d=\"M12 7v5l3 3\"/></g></svg>" },
|
|
34
34
|
history: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M12 8v4l2 2\"/><path d=\"M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5\"/></g></svg>" },
|
|
35
35
|
issueClosed: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0\"/><path d=\"m9 12l2 2l4-4\"/></g></svg>" },
|
|
36
|
+
// Tabler forbid: an issue closed as not planned, like GitHub's mark [HIS-03, HIS-07, NXT-11].
|
|
37
|
+
notPlanned: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0\"/><path d=\"m9 9l6 6\"/></g></svg>" },
|
|
36
38
|
thumbUp: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 11v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h3a4 4 0 0 0 4-4V6a2 2 0 0 1 4 0v5h3a2 2 0 0 1 2 2l-1 5a2 3 0 0 1-2 2h-7a3 3 0 0 1-3-3\"/></svg>" },
|
|
37
39
|
star: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 17.75l-6.172 3.245l1.179-6.873l-5-4.867l6.9-1l3.086-6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z\"/></svg>" },
|
|
38
40
|
settings: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37c1 .608 2.296.07 2.572-1.065\"/><path d=\"M9 12a3 3 0 1 0 6 0a3 3 0 0 0-6 0\"/></g></svg>" },
|
package/client/item-row.tsx
CHANGED
|
@@ -233,7 +233,9 @@ function ItemSheet({ item, waitChips, sessions, actions, ...handlers }: { item:
|
|
|
233
233
|
const elsewhere = !!targetUrl(item);
|
|
234
234
|
// The row of the PR its actions apply to, where it's in the stack line: marked there instead of named on top.
|
|
235
235
|
const targetRow = elsewhere ? item.children.find((child) => child.url === item.target.url) : undefined;
|
|
236
|
-
|
|
236
|
+
// How it finished, as its card says it ("closed 1d ago by bob as not planned"), so the sheet keeps the close reason [HIS-07].
|
|
237
|
+
const when = cardWhen(item);
|
|
238
|
+
const meta = [...(when ? [when] : []), ...(elsewhere && !targetRow ? [`actions apply to PR #${item.target.number}`] : [])];
|
|
237
239
|
// PRs already in the stack line link from there; list only the rest, like someone else's PR closing the same issue.
|
|
238
240
|
const shown = new Set(item.children.map((child) => child.url));
|
|
239
241
|
const extra = details.data && { ...details.data, linked: details.data.linked.filter((link) => !shown.has(link.url)) };
|
package/client/mark.ts
CHANGED
|
@@ -16,6 +16,10 @@ export function stackMark(row: Pick<SubRow, "state" | "draft" | "mergedAt">): Ca
|
|
|
16
16
|
return prStateMark(row.state ?? (row.mergedAt ? "MERGED" : row.draft ? "DRAFT" : "OPEN"));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
// An issue closed as completed is done like a merged PR, in GitHub's purple; one closed as not planned was set aside.
|
|
20
|
+
const issueClosedMark = (notPlanned: boolean): CardProps["mark"] =>
|
|
21
|
+
notPlanned ? { icon: "notPlanned", tone: "neutral" } : { icon: "issueClosed", tone: "good", color: "PURPLE" };
|
|
22
|
+
|
|
19
23
|
// What the card is: open, draft, merged or closed. Urgency stays in the chips and section headers.
|
|
20
24
|
// A note on what someone else did shows what happened instead; its words say it too, so color isn't the only sign [HIS-07].
|
|
21
25
|
export function stateMark(item: Item): CardProps["mark"] {
|
|
@@ -24,12 +28,12 @@ export function stateMark(item: Item): CardProps["mark"] {
|
|
|
24
28
|
const kind = item.change.kind;
|
|
25
29
|
if (kind === "merged") return prStateMark("MERGED");
|
|
26
30
|
if (kind === "closed") return prStateMark("CLOSED");
|
|
27
|
-
if (kind === "issue_closed") return item.change.reason === "not_planned"
|
|
31
|
+
if (kind === "issue_closed") return issueClosedMark(item.change.reason === "not_planned");
|
|
28
32
|
if (kind === "reopened") return { icon: "pr", tone: "warn" };
|
|
29
33
|
return { icon: kind === "unassigned" ? "userMinus" : "userShare", tone: "warn" };
|
|
30
34
|
}
|
|
31
35
|
if (item.kind === "pr" && item.closedUnmerged) return prStateMark("CLOSED");
|
|
32
|
-
if (item.closedAt) return item.kind === "pr" ? prStateMark("MERGED") :
|
|
36
|
+
if (item.closedAt) return item.kind === "pr" ? prStateMark("MERGED") : issueClosedMark(!!item.notPlanned);
|
|
33
37
|
if (item.kind === "issue") return { icon: "issue", tone: "good" };
|
|
34
38
|
return prStateMark(item.draft ? "DRAFT" : "OPEN");
|
|
35
39
|
}
|
package/client/next-up.tsx
CHANGED
|
@@ -231,7 +231,7 @@ export function IssueRow({ issue, claim, first, agents, login, busy, fetchDetail
|
|
|
231
231
|
comment: true,
|
|
232
232
|
choices: [
|
|
233
233
|
{ label: "Completed", icon: "issueClosed", solid: true, onConfirm: close("completed") },
|
|
234
|
-
{ label: "Not planned", icon: "
|
|
234
|
+
{ label: "Not planned", icon: "notPlanned", onConfirm: close("not_planned") },
|
|
235
235
|
],
|
|
236
236
|
onCancel: () => setClosing(false),
|
|
237
237
|
}
|
package/client/ui.tsx
CHANGED
|
@@ -207,12 +207,13 @@ export function HintArea({ style, children }: { style?: StyleProp<ViewStyle>; ch
|
|
|
207
207
|
|
|
208
208
|
// Resting the pointer this long shows a hint, or fetches a card's details ahead; passing over does neither.
|
|
209
209
|
export const REST_MS = 300;
|
|
210
|
-
|
|
210
|
+
// A button's hint waits longer: the pointer rests on a button to press it, and the words would cover what's beside it.
|
|
211
|
+
export const BUTTON_HINT_DELAY_MS = 1000;
|
|
211
212
|
|
|
212
213
|
// What something means, in words: on hover after a moment, and always to screen readers. It floats over the layout rather
|
|
213
214
|
// than in it, so showing it moves nothing, and it's sized to the room left in its HintArea: beside the content, wrapping
|
|
214
215
|
// upward, or above it where there's too little room beside. Touch has no hover, so there the label is all [ATT-19, ATT-11].
|
|
215
|
-
export function Hint({ text, inline, children }: { text: string; inline?: boolean; children: ReactNode }) {
|
|
216
|
+
export function Hint({ text, inline, delayMs = REST_MS, children }: { text: string; inline?: boolean; delayMs?: number; children: ReactNode }) {
|
|
216
217
|
const styles = useStyles();
|
|
217
218
|
const bounds = useContext(HintBounds);
|
|
218
219
|
const self = useRef<View>(null);
|
|
@@ -227,7 +228,7 @@ export function Hint({ text, inline, children }: { text: string; inline?: boolea
|
|
|
227
228
|
if (bounds?.current) bounds.current.measureInWindow((left, _top, boundsWidth) => place(left, left + boundsWidth));
|
|
228
229
|
else place(HINT_GAP, Dimensions.get("window").width - HINT_GAP);
|
|
229
230
|
});
|
|
230
|
-
},
|
|
231
|
+
}, delayMs);
|
|
231
232
|
};
|
|
232
233
|
const hide = () => {
|
|
233
234
|
clearTimeout(timer.current);
|
|
@@ -348,7 +349,7 @@ export function Button({
|
|
|
348
349
|
</Pressable>
|
|
349
350
|
);
|
|
350
351
|
return tip ? (
|
|
351
|
-
<Hint text={tip} inline>
|
|
352
|
+
<Hint text={tip} inline delayMs={BUTTON_HINT_DELAY_MS}>
|
|
352
353
|
{button}
|
|
353
354
|
</Hint>
|
|
354
355
|
) : (
|
package/docs/architecture.md
CHANGED
|
@@ -49,7 +49,7 @@ The tabs tell the story of my work, left to right: what I finished, what needs m
|
|
|
49
49
|
|
|
50
50
|
| Tab | Shows |
|
|
51
51
|
|---|---|
|
|
52
|
-
| History | The last `historyWeeks` (default 4) by week, newest first, in the device's time zone [HIS-01]; which items each week shows and copies is `shared/history-report.ts`, drawn by `client/history.tsx`. Above the weeks, **Changed by others** lists the unread notes, newest first: my PR merged or closed unmerged by someone else, an issue assigned to me closed by someone else as completed or not planned, a PR of mine reopened by someone else after Attention Span saw it closed, my PR or issue taken over or handed on, or me unassigned from an issue. Each is a row in the same words ("merged by dave 2h ago", "closed by alice 6h ago as completed", "reopened by bob 1h ago", "phil took over", "bob unassigned you 8d ago"), its tile showing what happened [HIS-07]. **Got it**, an icon-only check in the main action's style, clears one (Undo brings it back); with two or more, a ghost **✓ Mark all as read** clears the notes on screen, one Undo bringing them all back, and the two wait for each other in `shared/got-it.ts`. A note about work already in Doing's Wrap up waits there instead, because archiving it is the acknowledgement; unread notes expire after `mentionDays` (default 30). They never count in Doing's count, the sidebar's or the horizon, and the History tab shows a green dot and says "unread changes" to screen readers while any is unread. **Filter** between the notes and the weeks opens a sheet, *Show in each week*: Finished (always, disabled), Reviewed and Changed by others, both off at first and remembered in `state.json`; the button reads "Filter · n" in green when on. With Reviewed on, each week shows a labelled **Reviewed** list of others' merged PRs I reviewed [HIS-02]; with Changed by others on, a labelled list of its cleared notes that aren't already finished work, like a PR closed unmerged, a handover or a reopen [HIS-06, HIS-07]. These replace the old collapsed disclosures. Each week's count is its finished items. A PR of mine someone else merged says so: "merged 2h ago by dave", with its copied line unchanged; under the issue it closed, its row in the sheet says "merged by dave" [HIS-05]. An issue someone else closed says "closed 6h ago by alice" too. A merge or issue close the live refresh sees fills its week at once, before History's daily fetch; when the fetch catches up, its richer card takes the live one's place [HIS-07]. A PR of mine the live refresh sees merged that History doesn't list, merged on GitHub say, has History fetched once its search has caught up (`SETTLE_MS` later), once per PR, so a search slow to show it doesn't fetch on every refresh [FRESH-03]. A PR that left my hands isn't listed as done even once its new owner merges it; a handover cleared into a week stays there if the work comes back to me, but doesn't hide what I later finish [HIS-06]. The copy icon on a week's heading copies what's shown as Markdown lists of links, per kind: Finished, plus Reviewed when shown, separated by `## Finished` and `## Reviewed` headings; never Changed by others; an issue and the PRs that closed it are one line, linking the issue; an issue closed as not planned isn't copied, and PRs that referred to it are listed on their own [HIS-03]. Each card has a plain chip (bug, feature or task) for what kind of work it was, and each copied line leads with its emoji: 🐞, 🚀 or 🔧; a PR of none of those leads with 🔀 and has no chip, an issue of none leads with nothing [HIS-04]. The first of these that names a kind decides: the issue type, the labels (bug beats feature beats task), a Conventional Commit title prefix (`fix:` bug, `feat:` feature, `chore:`, `refactor:`, `docs:`, `build:`, `ci:`, `test:`, `perf:`, `style:` task). Types and labels match only as whole names, ignoring case, emoji and wrappers like `type:` or `kind/`, so "bug", "Type: Bug 🐞" and "kind/bug" count but "not a bug" and "bug bash" don't. Until History is fetched again, what I just finished uses the issue type and title only. |
|
|
52
|
+
| History | The last `historyWeeks` (default 4) by week, newest first, in the device's time zone [HIS-01]; which items each week shows and copies is `shared/history-report.ts`, drawn by `client/history.tsx`. Above the weeks, **Changed by others** lists the unread notes, newest first: my PR merged or closed unmerged by someone else, an issue assigned to me closed by someone else as completed or not planned, a PR of mine reopened by someone else after Attention Span saw it closed, my PR or issue taken over or handed on, or me unassigned from an issue. Each is a row in the same words ("merged by dave 2h ago", "closed by alice 6h ago as completed", "reopened by bob 1h ago", "phil took over", "bob unassigned you 8d ago"), its tile showing what happened [HIS-07]. **Got it**, an icon-only check in the main action's style, clears one (Undo brings it back); with two or more, a ghost **✓ Mark all as read** clears the notes on screen, one Undo bringing them all back, and the two wait for each other in `shared/got-it.ts`. A note about work already in Doing's Wrap up waits there instead, because archiving it is the acknowledgement; unread notes expire after `mentionDays` (default 30). They never count in Doing's count, the sidebar's or the horizon, and the History tab shows a green dot and says "unread changes" to screen readers while any is unread. **Filter** between the notes and the weeks opens a sheet, *Show in each week*: Finished (always, disabled), Reviewed and Changed by others, both off at first and remembered in `state.json`; the button reads "Filter · n" in green when on. With Reviewed on, each week shows a labelled **Reviewed** list of others' merged PRs I reviewed [HIS-02]; with Changed by others on, a labelled list of its cleared notes that aren't already finished work, like a PR closed unmerged, a handover or a reopen [HIS-06, HIS-07]. These replace the old collapsed disclosures. Each week's count is its finished items. A PR of mine someone else merged says so: "merged 2h ago by dave", with its copied line unchanged; under the issue it closed, its row in the sheet says "merged by dave" [HIS-05]. An issue someone else closed says "closed 6h ago by alice" too. A closed issue's tile is the closed-issue check in GitHub's purple, like a merged PR, when completed, and a grey circle-slash when not planned, both in the weeks and in the notes; one closed as not planned says so once, in its line ("closed 1d ago by bob as not planned"), and Next up's Not planned button wears the same circle-slash. A merge or issue close the live refresh sees fills its week at once, before History's daily fetch; when the fetch catches up, its richer card takes the live one's place [HIS-07]. A PR of mine the live refresh sees merged that History doesn't list, merged on GitHub say, has History fetched once its search has caught up (`SETTLE_MS` later), once per PR, so a search slow to show it doesn't fetch on every refresh [FRESH-03]. A PR that left my hands isn't listed as done even once its new owner merges it; a handover cleared into a week stays there if the work comes back to me, but doesn't hide what I later finish [HIS-06]. The copy icon on a week's heading copies what's shown as Markdown lists of links, per kind: Finished, plus Reviewed when shown, separated by `## Finished` and `## Reviewed` headings; never Changed by others; an issue and the PRs that closed it are one line, linking the issue; an issue closed as not planned isn't copied, and PRs that referred to it are listed on their own [HIS-03]. Each card has a plain chip (bug, feature or task) for what kind of work it was, and each copied line leads with its emoji: 🐞, 🚀 or 🔧; a PR of none of those leads with 🔀 and has no chip, an issue of none leads with nothing [HIS-04]. The first of these that names a kind decides: the issue type, the labels (bug beats feature beats task), a Conventional Commit title prefix (`fix:` bug, `feat:` feature, `chore:`, `refactor:`, `docs:`, `build:`, `ci:`, `test:`, `perf:`, `style:` task). Types and labels match only as whole names, ignoring case, emoji and wrappers like `type:` or `kind/`, so "bug", "Type: Bug 🐞" and "kind/bug" count but "not a bug" and "bug bash" don't. Until History is fetched again, what I just finished uses the issue type and title only. |
|
|
53
53
|
| Doing | The sections below |
|
|
54
54
|
| Waiting | My work where someone else has the next move [WAI-01]: *Waiting for review* (while GitHub records a review as owed: a pending request, or an approval or requested changes; or approved but blocked by a repo rule [PRS-13]), *Waiting for the reviewer* (after I replied or pushed), *CI running*, *Questions I asked* (threads where my words are the last from a person, bots don't count, and my words since someone else last spoke tag someone or ask something: a question mark outside quotes, code and links, read from GitHub's rendered comments (`bodyHTML`) so code and links count however they were written. On an issue I opened, its opening is my first words, when the fetched comments reach back to it. With `onlyQuestionsWait` on (Settings → Waiting → Only questions wait, off by default) a statement waits on nobody, tagged or not; with it off, a tagged statement waits on whom it tags. An untagged statement isn't listed): on my own issues however old, on others' only while my comment is within `mentionDays` [ATT-11]. Each shows who it waits on, never a guess [WAI-02]: on a PR, the reviewers currently requested and, after I replied, whoever requested changes, but nobody when a repo rule blocks it; on a question or tag, the people and teams my words since the last answer tag, read from GitHub's rendered comments (`bodyHTML`), where only real accounts and teams I can see are linked, never in code; bots aren't tags: GitHub links no app (`@github-actions`), links some to an organization (`@dependabot`), which is nobody to nudge, and `@renovate[bot]` to a user followed by `[bot]`, and all of those are skipped; tags in quotes don't count, and only the last 10 comments are read. Waiting groups it all by who it waits on, not by those reasons [WAI-01]: one group per person or team (a person tagged with other capitals is one), whoever blocks the most items first, ties by whose oldest item has waited longest, then requested bots, who can't be nudged, and last *Not on a person* for work nobody is on record for. In each group, work with a session that needs me leads, then one that's working, then the rest, oldest first; a finished session I've seen doesn't lift it. Work waiting on several is under each, saying "also waiting on" the rest, and counts once in the tab. Each card says why it waits (review, re-review, question or tagged; nothing where its chips say, like approved, blocked by repo rules, or CI running) and since when. A group's **Copy list** copies its items oldest first as a Markdown list, each line led by why and how long ("- Review 2h: [title](url)"), for a nudge; a requested bot gets none [WAI-03]. My PRs in Doing that wait on people or teams I asked, approved or not, are listed here too, under each of them [PRS-15]. Once something has waited `waitingTooLongDays` (default 3), its age turns amber with ⌛ and says so on hover, but only where a nudge is fair: not while CI fails or runs, nor with conflicts, changes to make or a reply I owe (`nudgeable` in `server/rules.ts`) [ATT-11]. In Doing, one person shows by name, several by picture, named on hover and in the sheet. |
|
|
55
55
|
| Next up | *Assigned to you* [NXT-06], then *Unclaimed* [NXT-01] |
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andrioid/paseo-attention-span",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
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": {
|
package/server/changes.ts
CHANGED
|
@@ -322,7 +322,7 @@ export function changeItems(ledger: ChangeLedger, now: Date, windowDays: number,
|
|
|
322
322
|
change: undefined,
|
|
323
323
|
...(change.kind === "merged" && change.actor ? { mergedBy: change.actor } : {}),
|
|
324
324
|
...(change.kind === "issue_closed" && change.actor ? { closedBy: change.actor } : {}),
|
|
325
|
-
...(change.reason === "not_planned" ? { notPlanned: true as const
|
|
325
|
+
...(change.reason === "not_planned" ? { notPlanned: true as const } : {}),
|
|
326
326
|
}),
|
|
327
327
|
);
|
|
328
328
|
return { notes, history, finished };
|
package/server/classify.ts
CHANGED
|
@@ -482,7 +482,7 @@ export function classifyHistory(data: HistoryResult): Item[] {
|
|
|
482
482
|
// Who closed it, when it wasn't me [HIS-07].
|
|
483
483
|
const closer = issue.timelineItems?.nodes.at(-1)?.actor?.login;
|
|
484
484
|
const closedBy = closer && me && closer.toLowerCase() !== me ? { closedBy: closer } : {};
|
|
485
|
-
const item = kinded({ ...plain(issue, "issue", "done"), closedAt: issue.closedAt, chips:
|
|
485
|
+
const item = kinded({ ...plain(issue, "issue", "done"), closedAt: issue.closedAt, chips: [], ...closedBy, ...(notPlanned ? { notPlanned: true as const } : {}) }, issue);
|
|
486
486
|
// Not planned issues get no PRs under them: the PRs were still done, so they're listed on their own [HIS-03].
|
|
487
487
|
if (!notPlanned) closed.set(prKey(issue), item);
|
|
488
488
|
items.push(item);
|
package/server/fixture.ts
CHANGED
|
@@ -374,6 +374,8 @@ export function fixtureChanges(now: Date): OthersChange[] {
|
|
|
374
374
|
event("took_over", "pr", 186, "Split the invoice PDF job", 5, "phil", "phil"),
|
|
375
375
|
{ ...event("issue_closed", "issue", 188, "Export fails on empty months", 6, "alice"), reason: "completed" as const },
|
|
376
376
|
event("closed", "pr", 169, "Cache exchange rates", 26, "alice"),
|
|
377
|
+
// Closed as not planned, so History shows both closed-issue marks side by side [HIS-07].
|
|
378
|
+
{ ...event("issue_closed", "issue", 187, "Import contacts from the old CRM", 30, "bob"), reason: "not_planned" as const },
|
|
377
379
|
event("handed", "pr", 179, "Move invoices to the new queue", 96, "dave", "carol"),
|
|
378
380
|
event("unassigned", "issue", 160, "Refunds skip the ledger", 192, "bob"),
|
|
379
381
|
event("closed", "pr", 170, "Drop the legacy CSV import", 216, "bob"),
|
package/server/view.ts
CHANGED
|
@@ -64,7 +64,7 @@ export function doneItem(source: Item | NextUpIssue, closedAt: string, notPlanne
|
|
|
64
64
|
return {
|
|
65
65
|
...base,
|
|
66
66
|
target: { ...base.target, ...head },
|
|
67
|
-
chips:
|
|
67
|
+
chips: work ? [workChip(work)] : [],
|
|
68
68
|
...(work ? { work } : {}),
|
|
69
69
|
...(notPlanned ? { notPlanned: true as const } : {}),
|
|
70
70
|
// Not planned issues list their PRs on their own, as classifyHistory does [HIS-03].
|