← Về thư mục
frontend/src/features/attention/parse.ts
- CardContext · type · L28-L31 — type CardContext = { projects?: readonly ProjectLike[]; now?: number; };
- rec · function · L33-L36 — function rec(value: unknown): Record | null
- isSourceKind · function · L38-L40 — function isSourceKind(value: unknown): value is AttentionSourceKind
- isDock · function · L42-L44 — function isDock(value: unknown): value is AttentionDock
- isSurface · function · L46-L48 — function isSurface(value: unknown): value is AttentionSurface
- isSeverity · function · L50-L52 — function isSeverity(value: unknown): value is AttentionSeverity
- asMs · function · L54-L59 — function asMs(value: unknown): number
- agoFromMs · function · L61-L68 — function agoFromMs(ms: number, now = Date.now()): string
- projectNameFor · function · L70-L77 — function projectNameFor( projectId: string | null, projects: readonly ProjectLike[] | undefined, ): string
- actionLabelFor · function · L79-L86 — function actionLabelFor(hint: string): string
- kindLabelFor · function · L88-L90 — function kindLabelFor(kind: AttentionSourceKind): string
- parseAttentionTarget · function · L92-L107 — function parseAttentionTarget( value: unknown, frameId: string, ): AttentionItem["target"] | null
- parseAttentionItem · function · L109-L148 — function parseAttentionItem(value: unknown): AttentionItem | null
- parseAttentionPage · function · L150-L167 — function parseAttentionPage(value: unknown): AttentionPage
- cardFromItem · function · L169-L193 — function cardFromItem( item: AttentionItem, ctx: CardContext = {}, ): AttentionCardModel | null
- cardsFromItems · function · L200-L218 — function cardsFromItems( items: unknown, ctx: CardContext = {}, ): AttentionCardModel[]