@andrioid/paseo-attention-span 0.8.2 → 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 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.8.2/docs/screenshots/desktop-dark-doing.png)
13
+ ![Doing](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.8.3/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.8.2/docs/screenshots/desktop-dark-doing-sheet.png)
17
+ ![An item's actions](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.8.3/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.8.2/docs/screenshots/desktop-dark-waiting.png)
27
+ ![Waiting](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.8.3/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.8.2/docs/screenshots/desktop-dark-next-up.png)
35
+ ![Next up](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.8.3/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.8.2/docs/screenshots/desktop-dark-history.png)
43
+ ![History](https://cdn.jsdelivr.net/npm/@andrioid/paseo-attention-span@0.8.3/docs/screenshots/desktop-dark-history.png)
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/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
- const HINT_DELAY_MS = REST_MS;
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
- }, HINT_DELAY_MS);
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrioid/paseo-attention-span",
3
- "version": "0.8.2",
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": {