feat(digests-ui): publication filter + 'מאמר'/source badges for bulletins
משלים את #154 בצד-לקוח: - פילטר "מקור" בדף /digests (כל המקורות / כל יום / עו"ד על נדל"ן) — backend: list_digests + /api/digests מקבלים publication. - DigestCard: תג "מאמר" ל-digest_kind='article', ו-chip מקור לפרסום שאינו 'כל יום'. build (webpack) עובר, lint נקי. digests = hand-written types (אין api:types). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -66,6 +66,8 @@ export type DigestListFilters = {
|
||||
/** undefined = all; true = linked to a ruling; false = unlinked (open gap) */
|
||||
linked?: boolean;
|
||||
search?: string;
|
||||
/** source publication: 'כל יום' (daily) | 'עו"ד על נדל"ן' (monthly bulletin) */
|
||||
publication?: string;
|
||||
limit?: number;
|
||||
offset?: number;
|
||||
};
|
||||
@@ -94,6 +96,7 @@ export function useDigests(filters: DigestListFilters = {}) {
|
||||
if (filters.conceptTag) p.set("concept_tag", filters.conceptTag);
|
||||
if (filters.linked !== undefined) p.set("linked", String(filters.linked));
|
||||
if (filters.search) p.set("search", filters.search);
|
||||
if (filters.publication) p.set("publication", filters.publication);
|
||||
if (filters.limit) p.set("limit", String(filters.limit));
|
||||
if (filters.offset) p.set("offset", String(filters.offset));
|
||||
const qs = p.toString();
|
||||
|
||||
Reference in New Issue
Block a user