backstep 0.1.17 → 0.1.19
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/dist/telemetry.js
CHANGED
|
@@ -10,7 +10,7 @@ import { dirname, join } from "node:path";
|
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
|
11
11
|
import { homeDir } from "./store.js";
|
|
12
12
|
// PostHog's project key only lets events be sent, never read, so it's safe to ship.
|
|
13
|
-
const POSTHOG_KEY = "
|
|
13
|
+
const POSTHOG_KEY = "phc_pkRTXHBoWoMxci4QpUqVE9FEj7LcRwBkCLgXGuRWXCXu";
|
|
14
14
|
const POSTHOG_URL = "https://us.i.posthog.com/i/v0/e/";
|
|
15
15
|
const DAY_MS = 24 * 60 * 60 * 1000;
|
|
16
16
|
export function telemetryOn() {
|
|
@@ -175,7 +175,7 @@ test('with nothing to undo the band still holds the key, and a press says there
|
|
|
175
175
|
const ui = await $.ui.mount({ ...BAND, surface: 'terminal' })
|
|
176
176
|
expect((await ui.find({ type: 'Text', text: /nothing to undo yet/ }))).toBeTruthy()
|
|
177
177
|
// The gap after the mark is its own fixed margin, so a long line can't squeeze it away.
|
|
178
|
-
expect((await ui.find({ type: 'Text', text: /nothing to undo yet/ }))?.text).toMatch(/^Backstep is
|
|
178
|
+
expect((await ui.find({ type: 'Text', text: /nothing to undo yet/ }))?.text).toMatch(/^Backstep is running/) // The mark: the front triangle in the terminal's own color, the one behind in the logo's pink.
|
|
179
179
|
expect((await ui.find({ type: 'Text', text: '◀', props: { color: '#ee7bb6' } }))).toBeTruthy()
|
|
180
180
|
await ui.press({ key: 'undo' })
|
|
181
181
|
expect(toasts[0]).toContain('Nothing to undo yet')
|
package/mod/hooks/register.tsx
CHANGED
|
@@ -965,7 +965,7 @@ export const register: Register = (on, options) => {
|
|
|
965
965
|
{mark()}
|
|
966
966
|
{/* One line: a long summary is cut short so the key to press always shows. */}
|
|
967
967
|
<Box flexShrink={1} minWidth={0}>
|
|
968
|
-
<Text dimColor wrap="truncate-end">{target ? `Last turn:${quoted(target, 28)} · ${summary(target)}` : 'Backstep is
|
|
968
|
+
<Text dimColor wrap="truncate-end">{target ? `Last turn:${quoted(target, 28)} · ${summary(target)}` : 'Backstep is running · nothing to undo yet'}</Text>
|
|
969
969
|
</Box>
|
|
970
970
|
<Box flexShrink={0} marginLeft={2}>
|
|
971
971
|
<Button key="undo" action={UNDO_ACTION} plain dimColor onPress={() => void pressUndo($)}>
|