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
|
|
@ -385,7 +385,15 @@ function Block({
|
|||
|
||||
case 'schedule':
|
||||
if (!block.items?.length) return null
|
||||
return <ScheduleBlock items={block.items} intro={block.text} accent={accent} presentHref={presentHref} />
|
||||
return (
|
||||
<ScheduleBlock
|
||||
items={block.items}
|
||||
tags={block.tags}
|
||||
intro={block.text}
|
||||
accent={accent}
|
||||
presentHref={presentHref}
|
||||
/>
|
||||
)
|
||||
|
||||
case 'people': {
|
||||
const picked = (block.items ?? [])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue