Schedule tags: a block's own tags, tag tabs, chips, a tag filter and tag slides
A schedule block gets its own tags (content_block_tags, migration 087): a name, a color and whether it's a tab. Entries and sub-items pick them from a checklist. Each tag is a tab after the days, gathering what it's on from every day under the day's name; a tagged entry comes whole and an untagged block brings only its tagged sub-items. Rows show their tags as chips. The presentation can show only one tag's entries and adds a slide per tag after the days. Entries name a tag by a key the admin makes when the tag is added, so a rename keeps them, since the block's rows are rewritten on every save. For that the admin engine gets a function blank (fresh values for every new row and copy, with a `seeded` column that doesn't count as input), `lends` (a row's options for the collections nested in it) and a checklist widget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7885d10249
commit
71d58318b6
12 changed files with 539 additions and 122 deletions
|
|
@ -55,8 +55,13 @@ export type ContentBlock = {
|
|||
/** A video block's WebVTT file, for an uploaded video (066). */
|
||||
captions?: string | null
|
||||
items?: ContentBlockItem[]
|
||||
/** A schedule's own tags (087). */
|
||||
tags?: ScheduleTag[]
|
||||
}
|
||||
|
||||
/** A schedule's tag (087). `tab` is whether it gets a tab of its own. */
|
||||
export type ScheduleTag = { key: string; name: string; color?: string | null; tab: boolean }
|
||||
|
||||
/** A list, link-row or schedule entry. The schedule fields are
|
||||
* empty on the other two (034_schedule_block.sql). */
|
||||
export type ContentBlockItem = {
|
||||
|
|
@ -82,6 +87,8 @@ export type ContentBlockItem = {
|
|||
featured?: boolean
|
||||
/** A block entry's sub-items. */
|
||||
items?: ContentBlockItem[]
|
||||
/** Its block's tags it has, by key (087). */
|
||||
tags?: string[]
|
||||
}
|
||||
|
||||
export type Link = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue