Public: anyone can read this; the crew can change it.

Revert "The explorer's filter state lives in the URL, so a filtered view can be sent and reloaded" #13247

opened this

Check · Review · Land · Live — It conflicts with its base. Next: builder, it conflicts with its base.

Conflicts with main

revert-13178 → main 1 commit

Review

Sign in to review this change.
7 files changed +19 −199
docs/MCP.md +1 −1
@@ -109,7 +109,7 @@ bytes in `tools/list`. After changing a tool run `bun scripts/mcp-table.ts`;
109109 | `email_verify` | — | Send yourself a new verification link | 126 |
110110 | `estimate` | — | Ask an issue's base rate, or record `event` with `p50`, `p90` (instants) and `basis` | 406 |
111111 | `events` | — | Repository events | 259 |
112 | `explore` | — | The apps, people (and, for an admin, forges) you can see, ranked | 774 |
112 | `explore` | — | The apps, people (and, for an admin, forges) you can see, ranked | 749 |
113113 | `family` | — | The forge that sent this one and, for a site admin, those it sent, with state, version | 205 |
114114 | `features` | — | Apps absorbed as forge features: list, read, absorb or un-absorb, change typed settings | 357 |
115115 | `feed` | — | Your ranked home timeline; `cursor` pages; saved filter applies | 604 |
docs/features/explore.md +1 −6
@@ -44,7 +44,6 @@ What a person filters on `/explore` an agent filters with the same words. Each f
4444 | (type it) at least N forks by people | `forks=3` (0–1000) | `?forks=3` | `{ forks: "3" }` |
4545 | (type it) at least N merges in 30 days | `ships=1` (0–1000) | `?ships=1` | `{ ships: "1" }` |
4646 | (type it) awake in the last 30 days | `live=yes` (`no` is no filter) | `?live=yes` | `{ live: "yes" }` |
47 | Mine (signed in, beside the kind tabs) | `mine=yes` (`no` is no filter) | `?mine=yes` | `{ mine: "yes" }` |
4847 | the search box | `q=words` | `?q=words` | `{ q: "words" }` |
4948
5049 The one line still works everywhere: `?q=kind:app sort:forks garden` and `{ q: "kind:app sort:forks garden" }` read the same as the separate parameters, and old `/explore?q=…` links keep working. When a parameter and the same key in `q` are both given, the parameter wins (`?q=sort:name&sort=forks` sorts by forks). A parameter's value is one word; one the explorer does not take is an unknown word like any typed in `q`, and is refused the same way (below). The terminal's search line takes only the line. It takes `forks:N`, `ships:N` and `live:yes` there too (`screens/dashboard.ts` reads the line with `readExploreLine`): `forks:1 live:no` leaves the rows the page leaves, and `forks:abc` or `live:maybe` is named under `Read as:` as `forks:abc is not a count`, `live:maybe is not an answer`.
@@ -55,10 +54,6 @@ A `forks:` or `ships:` value that is not a whole number from 0 to 1000 (`abc`, `
5554
5655 An unknown filter word is refused the same way everywhere: `400` from the API (`{ "error": "unknown_filter", "message": "sort:bogus is not a sort — use score, forks, …", "suggest"? }`), an `unknown_filter` error from the MCP tool, and `400` on the page, which still draws the note, the did-you-mean link and the results. This replaces the earlier note-only answer (#7595).
5756
58 ## Mine (#13161)
59
60 `mine=yes` (or `mine:yes` in a line) keeps the viewer's own apps and the viewer's own person row: the owner is the viewer's name. Signed out it matches nothing, never everyone. Filters live in the URL, so `/explore?kind=app&mine=yes&sort=fresh` reloads and sends as the same view, and equals choosing Apps, Mine and Fresh by hand, row for row (`test/explore-url-filters.test.ts`). The terminal's search line takes `mine:yes` the same way (`mine:yes` after `/`): a guest sees no rows, the signed-in viewer sees their own (`test/tui-dashboard-explore.test.ts`). A `mine:` value other than yes or no is an unknown word like the others.
61
6257 ## Paging (#11376)
6358
6459 A list holds 60 rows a page. When there are more, `/explore` ends with a full-width **More results** button, a plain link to the same view (kind, sort, since, owner, archived and the words) plus `cursor=…`; the last page has none, and it works without JavaScript. A cursor belongs to one sort: one that is malformed, over 400 characters or made under another sort shows the first page with a one-line note, never an error. `GET /api/v1/explore` returns `next_cursor` and takes `?cursor=`, and the MCP `explore` tool takes and returns the same cursor.
@@ -82,6 +77,6 @@ Under the filters, `/explore` says how much a filter leaves: `66 results`, `2 ap
8277 In the terminal the same sentence sits in the `Read as:` line under the search box (`Read as: kind:app · 2 apps · Esc clears`); Esc clears the line.
8378
8479 ## What a row shows
85 A row shows the app's name, what it does in plain words, and the one signal that explains its place (the other numbers are left off the page; the API and the MCP still carry them all). The filter line is the search box, the kind tabs and, signed in, "Mine"; "Sort and time" opens the sorts, the time windows and "Show archived", and stays open while one of them is set. The ranking order is unchanged.
80 A row shows the app's name, what it does in plain words, and the one signal that explains its place (the other numbers are left off the page; the API and the MCP still carry them all). The filter line is the search box and the kind tabs; "Sort and time" opens the sorts, the time windows and "Show archived", and stays open while one of them is set. The ranking order is unchanged.
8681
8782 The terminal's explore screen deliberately keeps the stacked numbers (forks, ships, likes, use) that the page leaves off: a terminal row has the width for them and no second tap to reach them. The ranking is the same on both.
src/actions/explore.ts +11 −38
@@ -65,8 +65,6 @@ export interface ExploreQuery {
6565 readonly ships?: number;
6666 /** `live:yes` — awake within the signal window (30 days). */
6767 readonly live?: boolean;
68 /** `mine:yes` — only the viewer's own apps and the viewer; nothing when signed out. */
69 readonly mine?: boolean;
7068 }
7169
7270 /** The most a `forks:` or `ships:` word may ask for. */
@@ -116,10 +114,8 @@ export function parseExploreQuery(line: string): ExploreQuery {
116114 return readExploreLine(line).query;
117115 }
118116
119 /**
120 * The filter names a request may carry as separate parameters (`?kind=app&sort=forks`), beside `q`.
121 */
122 export const EXPLORE_PARAMS = ["kind", "sort", "updated", "owner", "archived", "forks", "ships", "live", "mine"] as const;
117 /** The filter names a request may carry as separate parameters (`?kind=app&sort=forks`), beside `q`. */
118 export const EXPLORE_PARAMS = ["kind", "sort", "updated", "owner", "archived", "forks", "ships", "live"] as const;
123119
124120 /**
125121 * The one line a request asks for: `q`, then each separate parameter as its
@@ -154,25 +150,18 @@ export function exploreParams(query: ExploreQuery): string {
154150 if (query.forks !== undefined) p.set("forks", String(query.forks));
155151 if (query.ships !== undefined) p.set("ships", String(query.ships));
156152 if (query.live === true) p.set("live", "yes");
157 if (query.mine === true) p.set("mine", "yes");
158153 if (query.text !== "") p.set("q", query.text);
159154 return p.toString();
160155 }
161156
162 const EXPLORE_KEYS = /(^|\s)(kind|sort|updated|owner|archived|forks|ships|live|mine):/i;
157 const EXPLORE_KEYS = /(^|\s)(kind|sort|updated|owner|archived|forks|ships|live):/i;
163158
164 /**
165 * Whether a line has any word the explorer reads as a key, so every surface takes it as the
166 * explorer's.
167 */
159 /** Whether a line has any word the explorer reads as a key, so every surface takes it as the explorer's. */
168160 export function isExploreLine(line: string): boolean {
169161 return EXPLORE_KEYS.test(line);
170162 }
171163
172 /**
173 * The query and the `kind:`, `sort:`, `updated:`, `archived:` and `owner:` words it did not take,
174 * as typed.
175 */
164 /** The query and the `kind:`, `sort:`, `updated:`, `archived:` and `owner:` words it did not take, as typed. */
176165 export interface ExploreRead {
177166 readonly query: ExploreQuery;
178167 readonly unknown: readonly string[];
@@ -188,7 +177,6 @@ export function readExploreLine(line: string): ExploreRead {
188177 let forks: number | undefined;
189178 let ships: number | undefined;
190179 let live = false;
191 let mine = false;
192180 const words: string[] = [];
193181 for (const word of line
194182 .trim()
@@ -221,9 +209,6 @@ export function readExploreLine(line: string): ExploreRead {
221209 } else if (k === "live" && value !== "") {
222210 if (["yes", "no"].includes(value.toLowerCase())) live = value.toLowerCase() === "yes";
223211 else unknown.push(word);
224 } else if (k === "mine" && value !== "") {
225 if (["yes", "no"].includes(value.toLowerCase())) mine = value.toLowerCase() === "yes";
226 else unknown.push(word);
227212 } else if (k === "q" && value !== "") words.push(value);
228213 else words.push(word);
229214 }
@@ -238,7 +223,6 @@ export function readExploreLine(line: string): ExploreRead {
238223 ...(forks === undefined ? {} : { forks }),
239224 ...(ships === undefined ? {} : { ships }),
240225 ...(live ? { live } : {}),
241 ...(mine ? { mine } : {}),
242226 },
243227 unknown: unknown.slice(0, 5),
244228 };
@@ -258,7 +242,7 @@ export function exploreNote(unknown: readonly string[]): string {
258242 const shown = word.length > 40 ? `${word.slice(0, 39)}…` : word;
259243 if (key === "owner") return `${shown} is not a name`;
260244 if (key === "updated") return `${shown} is not a window — use ${Object.keys(WINDOWS).join(", ")}`;
261 if (key === "archived" || key === "live" || key === "mine") return `${shown} is not an answer — use yes, no`;
245 if (key === "archived" || key === "live") return `${shown} is not an answer — use yes, no`;
262246 if (key === "forks" || key === "ships") return `${shown} is not a count — use a whole number from 0 to ${COUNT_MAX}`;
263247 const sort = key === "sort";
264248 return `${shown} is not a ${sort ? "sort" : "kind"} — use ${(sort ? SORTS : KIND_WORDS).join(", ")}`;
@@ -336,7 +320,6 @@ export function exploreLine(query: ExploreQuery): string {
336320 query.forks === undefined ? "" : `forks:${query.forks}`,
337321 query.ships === undefined ? "" : `ships:${query.ships}`,
338322 query.live === true ? "live:yes" : "",
339 query.mine === true ? "mine:yes" : "",
340323 query.text,
341324 ]
342325 .filter((p) => p !== "")
@@ -397,10 +380,7 @@ export function whyOf(
397380 return best === undefined ? undefined : { signal: best[0], text: text[best[0]] };
398381 }
399382
400 /**
401 * The one fork action an app row offers: the page's button and the MCP row's `action` say these
402 * words.
403 */
383 /** The one fork action an app row offers: the page's button and the MCP row's `action` say these words. */
404384 export const MAKE_IT_YOURS = { do: "make_it_yours", label: "Make it yours" } as const;
405385
406386 export interface ExploreRow {
@@ -454,7 +434,6 @@ export const exploreFiltered = (q: ExploreQuery): boolean =>
454434 q.forks !== undefined ||
455435 q.ships !== undefined ||
456436 q.live === true ||
457 q.mine === true ||
458437 q.sort !== "score";
459438
460439 /**
@@ -497,10 +476,7 @@ export async function explore(
497476 return described(app, rows.slice(0, ROWS), stamp);
498477 }
499478
500 /**
501 * The rows as the API and the MCP send them: each with its `why` line when the ranking has one to
502 * say (omitted otherwise).
503 */
479 /** The rows as the API and the MCP send them: each with its `why` line when the ranking has one to say (omitted otherwise). */
504480 export function rowsWithWhy(app: App, query: ExploreQuery, items: readonly ExploreRow[]): (ExploreRow & { why?: string })[] {
505481 const weights = frontWeights(app.db);
506482 const now = Date.now();
@@ -611,7 +587,7 @@ async function everything(
611587 /** The forges this forge spawned, for a site admin asking for them. */
612588 async function forges(app: App, viewer: User | undefined, query: ExploreQuery): Promise<ExploreRow[]> {
613589 // A spawned forge carries no time, so a window leaves it out.
614 if (query.updated !== "all" || query.owner !== undefined || query.mine === true) return [];
590 if (query.updated !== "all" || query.owner !== undefined) return [];
615591 // Nor does it carry forks, ships or a wake time, so a number asked for leaves it out.
616592 if ((query.forks ?? 0) > 0 || (query.ships ?? 0) > 0 || query.live === true) return [];
617593 if (viewer?.isAdmin !== true || (query.kind !== "all" && query.kind !== "forge")) return [];
@@ -751,8 +727,7 @@ function rank(
751727 });
752728
753729 const text = query.text.toLowerCase();
754 // `mine` is the viewer's own name as an owner; signed out it is a name no row has.
755 const only = (query.mine === true ? (viewer?.username ?? "\0") : query.owner)?.toLowerCase();
730 const only = query.owner?.toLowerCase();
756731 // Kept rows are shared by every request that reads them: none may change.
757732 const freeze = (row: ExploreRow): ExploreRow => {
758733 Object.freeze(row.numbers);
@@ -776,9 +751,7 @@ function rank(
776751 /** What a like adds to the score sort: modest next to forks (3) and ships (2). */
777752 export const LIKE_WEIGHT = 0.5;
778753
779 /**
780 * Likes on posts about each repository; the caller passes only repositories the viewer may read.
781 */
754 /** Likes on posts about each repository; the caller passes only repositories the viewer may read. */
782755 function likesByRepo(db: Database, repoIds: readonly string[]): Map<string, number> {
783756 const out = new Map<string, number>();
784757 if (repoIds.length === 0) return out;
src/web/studio/explore.ts +1 −11
@@ -71,7 +71,7 @@ const shorten = (term: string): string =>
7171 term.length > 24 ? `${term.slice(0, 23)}…` : term;
7272
7373 /** The query with one optional key left out. */
74 function dropped(query: ExploreQuery, key: "forks" | "ships" | "live" | "owner" | "mine"): ExploreQuery {
74 function dropped(query: ExploreQuery, key: "forks" | "ships" | "live" | "owner"): ExploreQuery {
7575 const copy: Record<string, unknown> = { ...query };
7676 delete copy[key];
7777 return copy as unknown as ExploreQuery;
@@ -91,7 +91,6 @@ function terms(query: ExploreQuery): { term: string; without: ExploreQuery }[] {
9191 if (query.forks !== undefined) out.push({ term: `forks:${query.forks}`, without: dropped(query, "forks") });
9292 if (query.ships !== undefined) out.push({ term: `ships:${query.ships}`, without: dropped(query, "ships") });
9393 if (query.live === true) out.push({ term: "live:yes", without: dropped(query, "live") });
94 if (query.mine === true) out.push({ term: "mine:yes", without: dropped(query, "mine") });
9594 const words = query.text.split(/\s+/).filter((w) => w !== "");
9695 words.forEach((word, i) =>
9796 out.push({
@@ -238,15 +237,6 @@ export async function explorePage(ctx: Ctx): Promise<Response> {
238237 })),
239238 "Kind",
240239 )}
241 ${ctx.auth.user === undefined
242 ? html``
243 : seg([
244 {
245 label: "Mine",
246 href: href(query.mine === true ? dropped(query, "mine") : { ...query, mine: true }),
247 current: query.mine === true,
248 },
249 ])}
250240 </div>
251241 ${chipRow(query)}
252242 ${returned ? html`<p class="muted mb" role="status">That page link is not one for this list, so this is the first page.</p>` : html``}
test/explore-budget.test.ts +2 −16
@@ -1,7 +1,4 @@
1 /**
2 * The ranked read behind explore answers under its budget over 200 repositories, and never shares a
3 * private row (#10946).
4 */
1 /** The ranked read behind explore answers under its budget over 200 repositories, and never shares a private row (#10946). */
52 import { afterAll, beforeAll, expect, test } from "bun:test";
63 import { mkdtemp, rm } from "node:fs/promises";
74 import { tmpdir } from "node:os";
@@ -22,10 +19,7 @@ let owner: User;
2219 let stranger: User;
2320 const all = parseExploreQuery("");
2421 const budget = budgetFor("/explore#read")!;
25 /**
26 * The best of a few reads, so one stall on a loaded machine is not a finding; a slow read is slow
27 * every time.
28 */
22 /** The best of a few reads, so one stall on a loaded machine is not a finding; a slow read is slow every time. */
2923 async function best(read: () => Promise<unknown>, runs = 3) {
3024 let low = Infinity;
3125 for (let i = 0; i < runs; i++) {
@@ -80,14 +74,6 @@ test("a read is under the budget for every sort", async () => {
8074 }
8175 });
8276
83 test("mine=yes is under the budget, and shows only the viewer's own", async () => {
84 const q = parseExploreQuery("kind:app mine:yes");
85 expect(await best(() => explore(app, owner, q))).toBeLessThan(budget.p95Ms);
86 expect((await explore(app, owner, q)).every((r) => r.name.startsWith("olive/"))).toBe(true);
87 expect(await explore(app, stranger, q)).toEqual([]);
88 expect(await explore(app, undefined, q)).toEqual([]);
89 });
90
9177 test("a private app is not shown to another viewer after the owner's read is warm", async () => {
9278 await explore(app, owner, all);
9379 const mine = (await explore(app, owner, all)).map((r) => r.name);
test/explore-url-filters.test.ts deleted −107
@@ -1,107 +0,0 @@
1 /**
2 * The explorer's filters (kind, sort, freshness, mine) live in the URL: a link renders what
3 * choosing by hand does (#13161).
4 */
5 import { afterAll, beforeAll, expect, test } from "bun:test";
6 import { mkdtemp, rm } from "node:fs/promises";
7 import { tmpdir } from "node:os";
8 import { join } from "node:path";
9 import { createApp, type App } from "../src/app.ts";
10 import { createRepo } from "../src/actions/repos.ts";
11 import { createApp as insertApp } from "../src/core/apps.ts";
12 import { exploreLineFrom, exploreParams, readExploreLine } from "../src/actions/explore.ts";
13 import { createSession } from "../src/core/sessions.ts";
14 import { createUser } from "../src/core/users.ts";
15 import { serve, type Servers } from "../src/http/server.ts";
16 import { quietLogs } from "./helpers/globals.ts";
17 import { proveAll } from "./helpers/verified.ts";
18 import { promote } from "./helpers/members.ts";
19
20 quietLogs();
21 let dir: string;
22 let app: App;
23 let servers: Servers;
24 let olive = "";
25 let pine = "";
26
27 beforeAll(async () => {
28 dir = await mkdtemp(join(tmpdir(), "forge-explore-filters-"));
29 app = createApp({ dataDir: dir, port: 0 });
30 for (const [owner, names] of [["olive", ["garden", "kiln"]], ["pine", ["loom"]]] as const) {
31 const made = await createUser(app.db, { origin: "seed", username: owner, email: `${owner}@forge.local`, password: "a-good-passphrase", adminIfFirst: false });
32 if (!made.ok) throw new Error(made.error);
33 proveAll(app);
34 promote(app.db, made.value);
35 const cookie = `forge_session=${createSession(app.db, made.value.id).token}`;
36 if (owner === "olive") olive = cookie;
37 else pine = cookie;
38 for (const n of names) {
39 const repo = await createRepo(app, made.value, { name: n, visibility: "public" });
40 if (!repo.ok) throw new Error(String(repo.error));
41 const rec = insertApp(app.db, { repoId: repo.value.id, slug: `${owner}-${n}`, access: "public" });
42 if (!rec.ok) throw new Error(rec.error);
43 }
44 }
45 servers = await serve(app);
46 });
47 afterAll(async () => {
48 await servers.stop();
49 app.db.close();
50 await rm(dir, { recursive: true, force: true });
51 });
52
53 const get = async (path: string, cookie = "") => {
54 const res = await fetch(`${servers.url}${path}`, { headers: cookie === "" ? {} : { cookie } });
55 return { status: res.status, html: await res.text() };
56 };
57 const listed = (html: string): string[] => {
58 const list = /<ul class="list">([\s\S]*?)<\/ul>/.exec(html);
59 return list === null ? [] : [...list[1]!.matchAll(/<li[^>]*>[\s\S]*?<a href="(\/[^"?]*)">/g)].map((m) => m[1]!);
60 };
61 /** The href of the control whose visible text is `label`, as the page wrote it. */
62 const linkTo = (html: string, label: string): string => {
63 const found = new RegExp(`<a[^>]*href="([^"]+)"[^>]*>\\s*${label}\\s*</a>`).exec(html);
64 if (found === null) throw new Error(`no control named ${label}`);
65 return found[1]!.replace(/&amp;/g, "&");
66 };
67
68 test("mine round-trips through the query string and narrows to the viewer's own", async () => {
69 expect(readExploreLine("mine:yes").query.mine).toBe(true);
70 expect(exploreLineFrom((n) => (n === "mine" ? "yes" : null))).toBe("mine:yes");
71 expect(exploreParams(readExploreLine("kind:app mine:yes").query)).toBe("kind=app&mine=yes");
72 expect(listed((await get("/explore?kind=app&mine=yes&sort=name", olive)).html)).toEqual(["/olive/garden", "/olive/kiln"]);
73 expect(listed((await get("/explore?kind=app&mine=yes", pine)).html)).toEqual(["/pine/loom"]);
74 // Signed out, nothing is yours.
75 expect(listed((await get("/explore?kind=app&mine=yes")).html)).toEqual([]);
76 });
77
78 test("the cache is keyed by the filters: mine and not mine never answer for each other", async () => {
79 const all = listed((await get("/explore?kind=app", olive)).html);
80 const mine = listed((await get("/explore?kind=app&mine=yes", olive)).html);
81 expect(all.length).toBe(3);
82 expect(mine.length).toBe(2);
83 expect(listed((await get("/explore?kind=app", olive)).html)).toEqual(all);
84 });
85
86 test("a link with three filters renders the same rows as choosing them by hand", async () => {
87 // The by-hand route reaches sort=fresh; the link names that same sort, and the lists match in
88 // order.
89 const linked = await get("/explore?kind=app&mine=yes&sort=fresh", olive);
90 let page = await get("/explore", olive);
91 for (const label of ["Apps", "Mine", "Fresh"]) page = await get(linkTo(page.html, label), olive);
92 expect(listed(page.html)).toEqual(listed(linked.html));
93 expect(listed(page.html).length).toBe(2);
94 // Signed out there is no Mine control, and the link shows no rows.
95 expect((await get("/explore?kind=app")).html).not.toContain(">Mine<");
96 });
97
98 test("an unknown filter value is ignored with a one-line note, never a 500", async () => {
99 const plain = listed((await get("/explore", olive)).html);
100 for (const qs of ["?mine=maybe", "?kind=zzz", "?sort=zzz", "?since=9y"]) {
101 const res = await get(`/explore${qs}`, olive);
102 expect(res.status).toBe(200);
103 expect(res.html).toContain('role="status"');
104 expect(listed(res.html)).toEqual(plain);
105 }
106 expect((await get("/explore?mine=maybe", olive)).html).toContain("mine:maybe is not an answer — use yes, no");
107 });
test/tui-dashboard-explore.test.ts +3 −20
@@ -1,7 +1,4 @@
1 /**
2 * The launcher's search line with `kind:` or `sort:` is the explorer's, ranked by the page's action
3 * (#7325).
4 */
1 /** The launcher's search line with `kind:` or `sort:` is the explorer's, ranked by the page's action (#7325). */
52 import { afterAll, beforeAll, expect, test } from "bun:test";
63 import { mkdtemp, rm } from "node:fs/promises";
74 import { tmpdir } from "node:os";
@@ -67,8 +64,7 @@ afterAll(async () => {
6764 await rm(dir, { recursive: true, force: true });
6865 });
6966
70 async function typed(line: string, then: string[] = [], who: User | null = alice): Promise<string> {
71 const user = who ?? undefined; // null is a guest; leaving it out is alice
67 async function typed(line: string, then: string[] = [], user: User | undefined = alice): Promise<string> {
7268 const terminal = headlessTerminal(200, 32);
7369 const { app } = createForgeApp(
7470 forge,
@@ -131,24 +127,11 @@ test("enter on an app row opens it", async () => {
131127 test("a guest's explorer rows hold no private repository; its owner's do", async () => {
132128 expect(await typed("kind:app", [], bob)).toContain("bob/vault");
133129 expect(await typed("kind:app", [], alice)).not.toContain("bob/vault");
134 const guest = await typed("kind:app", [], null);
130 const guest = await typed("kind:app", [], undefined);
135131 expect(guest).toContain("alice/zed");
136132 expect(guest).not.toContain("bob/vault");
137133 });
138134
139 test("mine:yes shows the signed-in viewer's own apps and a guest none", async () => {
140 const own = await typed("kind:app mine:yes", [], alice);
141 expect(own).toContain("alice/zed");
142 expect(own).not.toContain("bob/vault");
143 expect(own).toContain("Read as: kind:app mine:yes");
144 const theirs = await typed("kind:app mine:yes", [], bob);
145 expect(theirs).toContain("bob/vault");
146 expect(theirs).not.toContain("alice/zed");
147 const guest = await typed("kind:app mine:yes", [], null);
148 expect(guest).not.toContain("alice/zed");
149 expect(guest).not.toContain("bob/vault");
150 });
151
152135 test("pin, mark and archive on an explorer row say they do not apply", async () => {
153136 const text = await typed("kind:app sort:forks", ["enter", "p"]);
154137 expect(text).toContain("act on your repositories");

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs