mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-25 22:27:32 +00:00
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:
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user