diff --git a/README.md b/README.md index 4bb801b..43e894c 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ list, which the interactive UI opens as a full screen with `esc`: "days": 7, "repo": "cwd", "statuses": "all", - "sources": ["cli", "manual"] + "sources": ["cli", "web"] } } ``` @@ -182,7 +182,7 @@ hides sessions that have not moved in that long; `0` means no age cutoff. `repo` list only sessions on the repository your shell is in, or `"any"` for all of them. `statuses` is `"unfinished"` to leave out the sessions that finished, errored, or were stopped, or `"all"` to keep them. `sources` lists only sessions -started those ways (`react`, `manual`, `api`, `cli`, `mention`, `cron`); leave it +started those ways (`react`, `web`, `api`, `cli`, `mention`, `cron`); leave it out for all of them. Every field is optional and the defaults above are what you get with no diff --git a/src/commands/session.tsx b/src/commands/session.tsx index d699774..bd9d12d 100644 --- a/src/commands/session.tsx +++ b/src/commands/session.tsx @@ -333,7 +333,7 @@ export function registerSession(program: Command): void { 'ls', ).addHelpText( 'after', - '\nSources: react, manual, api, cli, mention, cron. ' + + '\nSources: react, web, api, cli, mention, cron. ' + '--since/--until accept ISO 8601 or "today", "yesterday", "N days ago".', ), 'GET /v1/sessions', diff --git a/src/lib/args.ts b/src/lib/args.ts index 398e39a..ae4ac84 100644 --- a/src/lib/args.ts +++ b/src/lib/args.ts @@ -35,7 +35,7 @@ export function toNumber(value: string): number { // fails fast with the full list instead of a server-side 422. export const SESSION_SOURCES = [ 'react', - 'manual', + 'web', 'api', 'cli', 'mention', diff --git a/src/lib/config.ts b/src/lib/config.ts index 0c2ce44..e112050 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -44,7 +44,7 @@ export interface SessionBarConfig { // "unfinished" drops the sessions that completed, errored, or were stopped, // leaving the conversations still going. "all" keeps them. statuses?: 'all' | 'unfinished' - // Only sessions started these ways, e.g. ["cli", "manual"]. An empty list + // Only sessions started these ways, e.g. ["cli", "web"]. An empty list // means every source. Laptop sessions never appear whatever this says: there // is nothing in the cloud to open. sources?: string[] @@ -243,12 +243,12 @@ export const SESSION_BAR_DEFAULTS: Required> & days: 7, repo: 'cwd', statuses: 'all', - sources: ['manual', 'cli', 'mention'], + sources: ['web', 'cli', 'mention'], } export type ResolvedSessionBar = typeof SESSION_BAR_DEFAULTS -const SESSION_SOURCES = ['react', 'manual', 'api', 'cli', 'mention', 'cron'] +const SESSION_SOURCES = ['react', 'web', 'api', 'cli', 'mention', 'cron'] // The session bar's settings, defaults filled in — set them under // `"sessionBar"` in ~/.ellipsis/config.json. A value of the wrong type or diff --git a/src/lib/sessions.ts b/src/lib/sessions.ts index f2247bb..d30e2f9 100644 --- a/src/lib/sessions.ts +++ b/src/lib/sessions.ts @@ -216,7 +216,7 @@ export const SESSION_BAR_FETCH = 50 // The picker header's description of the bar's active filters — the answer to // "where are the rest of my sessions?". Mirrors sessionBarQuery, with one -// exception: the default sources are not named, since "manual/cli/mention" is +// exception: the default sources are not named, since "web/cli/mention" is // what everyone sees and answers no question. null when there is nothing to say. export function sessionBarFilterLabel( bar: { diff --git a/test/args.test.ts b/test/args.test.ts index dcac6a0..847946d 100644 --- a/test/args.test.ts +++ b/test/args.test.ts @@ -60,7 +60,7 @@ describe('collectSource / collectStatus', () => { }) it('reject unknown values listing the valid ones', () => { - expect(() => collectSource('slack', [])).toThrow(/source must be one of: react, manual/) + expect(() => collectSource('slack', [])).toThrow(/source must be one of: react, web/) expect(() => collectStatus('done', [])).toThrow(/status must be one of: scheduled/) }) }) diff --git a/test/config.test.ts b/test/config.test.ts index dc5e643..7b5dca0 100644 --- a/test/config.test.ts +++ b/test/config.test.ts @@ -224,7 +224,7 @@ describe('sessionBar', () => { days: 30, repo: 'any', statuses: 'unfinished', - sources: ['cli', 'manual'], + sources: ['cli', 'web'], }, }) expect(sessionBar()).toEqual({ @@ -232,7 +232,7 @@ describe('sessionBar', () => { days: 30, repo: 'any', statuses: 'unfinished', - sources: ['cli', 'manual'], + sources: ['cli', 'web'], }) }) @@ -262,7 +262,7 @@ describe('sessionBar', () => { it('defaults to the human-started sources when the key is absent', () => { writeConfig({ version: 2, hosts: {}, sessionBar: { days: 3 } }) - expect(sessionBar().sources).toEqual(['manual', 'cli', 'mention']) + expect(sessionBar().sources).toEqual(['web', 'cli', 'mention']) }) it('takes days 0 as "no age cutoff", not as a missing value', () => {