AGPL-3.0-only, a source link in the app, and everything on dev since #5 #6

Merged
bvandeusen merged 214 commits from dev into main 2026-10-21 21:40:00 -04:00
2 changed files with 4 additions and 14 deletions
Showing only changes of commit cba428461c - Show all commits
+4
View File
@@ -21,4 +21,8 @@ describe("the board's filter URL", () => {
expect(facets).toEqual({});
expect(facetCount(facets)).toBe(0);
});
it("ignores a shared value it doesn't know", () => {
expect(facetsFromQuery({ shared: "by_me" })).toEqual({});
});
});
-14
View File
@@ -1,7 +1,6 @@
import { describe, expect, it } from "vitest";
import { canEditText, isOwnNote } from "./sharing";
import { facetCount, facetsFromQuery, facetsToQuery } from "./facets";
import type { Note } from "../stores/notes";
const note = (extra: Partial<Note>): Note => ({ ...({} as Note), ...extra });
@@ -21,16 +20,3 @@ describe("how a note is held", () => {
expect(canEditText(note({ permission: "view" }))).toBe(false);
});
});
describe("the Shared with me facet", () => {
it("round-trips through the URL and counts as one filter", () => {
const facets = facetsFromQuery({ shared: "with_me" });
expect(facets).toEqual({ shared: "with_me" });
expect(facetsToQuery(facets)).toEqual({ shared: "with_me" });
expect(facetCount(facets)).toBe(1);
});
it("ignores a value it doesn't know", () => {
expect(facetsFromQuery({ shared: "by_me" })).toEqual({});
});
});