Skip to main content

Module asset_tags

Module asset_tags 

Source
Expand description

Tags section of the lightbox details pane.

Each tag is a chip: clicking its name searches for that tag, ร— removes it from the asset. โ€œAdd Tagโ€ opens a picker of existing tags that can also create a new one (Immich creates any missing parents for nested Parent/Child tags).

Structsยง

Picker ๐Ÿ”’
State behind the โ€œAdd Tagโ€ popover.
TagContext ๐Ÿ”’
Window and search handler, set once by the lightbox through bind.
TagSection ๐Ÿ”’
โ€œTagsโ€ group (matching the EXIF groups) with an add button and wrapping tag pills. Cheap to clone.

Constantsยง

PICKER_LIMIT ๐Ÿ”’
Most tags listed in the picker at once; typing narrows the list.

Functionsยง

color_dot ๐Ÿ”’
Small filled circle in the tagโ€™s color.
picker_matches ๐Ÿ”’
Server tags matching query (case-insensitive substring) that arenโ€™t applied yet.
split_tag_path ๐Ÿ”’
("Trips", "2024") for Trips/2024; no parent for a top-level tag.
tag_color ๐Ÿ”’
Parse an Immich tag color (#rrggbb); tags without one use the theme accent.
tag_markup ๐Ÿ”’
Tag label with the parent path dimmed and the leaf bold: โ€œTrips/2024โ€.