feat(collections): "want to revisit" status for saved places (#2567)

A fourth status after visited, for a place already seen that the user wants
to go back to. It joins the one-tap cycle, the filters, the pickers, the
assistant cards and the MCP status tool, and counts as visited wherever
visits are counted (isVisitedCollectionStatus), so "visited everywhere"
keeps it. The status pickers go two by two where four would not fit.
This commit is contained in:
Maurice
2026-11-13 09:28:17 +01:00
parent 73ac4b29ad
commit 72e8b1f8d9
56 changed files with 178 additions and 51 deletions
@@ -45,8 +45,15 @@ export const collectionCardListSchema = z.object({
placeCount: cardCountSchema.nullable(),
/** Accepted members besides the owner. */
memberCount: cardCountSchema,
/** Places per status, only where the whole list was read. */
counts: z.object({ idea: cardCountSchema, want: cardCountSchema, visited: cardCountSchema }).nullable(),
/** Places per status, only where the whole list was read. A card saved before 'revisit' existed reads 0 there. */
counts: z
.object({
idea: cardCountSchema,
want: cardCountSchema,
visited: cardCountSchema,
revisit: cardCountSchema.default(0),
})
.nullable(),
});
export type CollectionCardList = z.infer<typeof collectionCardListSchema>;