Skip to content

Feat/undraw asset library#65

Merged
daniellemccool merged 6 commits into
mainfrom
feat/undraw-asset-library
Jun 12, 2026
Merged

Feat/undraw asset library#65
daniellemccool merged 6 commits into
mainfrom
feat/undraw-asset-library

Conversation

@daniellemccool

Copy link
Copy Markdown
Member

No description provided.

daniellemccool and others added 6 commits June 12, 2026 23:21
320 unDraw illustrations in the three brand accents (80 blue #4272EF,
120 coral #FF5E5E, 120 yellow #FFCF60), extracted from gallery pages
saved by an unDraw supporter with the brand color applied. They live in
assets/images/undraw/ — deliberately separate from the in-use bins
(illustrations/, hub/) — and appear in the CMS Asset Library as a
browsable, searchable image bank (search "undraw" or by name/color).

Each file is named undraw_<title-slug>_<color>.svg. The gallery inlines
SVGs with fill="currentColor" inherited from the page; the chosen hex
is baked into each file so they render correctly standalone. All 320
validate as well-formed XML with no currentColor remnants.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sveltia's Asset Library only lists folders referenced in the config, so
the 320 bank files were lumped into the global assets/images view. Bind
/assets/images/undraw as the media_folder of the five illustration
image fields (the three hub-page heroes, the Prepare a Study journey
steps, and the Networks page sections): the bank gets its own folder in
the Asset Library, leaves the global view, and those fields' image
picker now opens straight into it. Existing pages keep their current
/assets/images/hub/ paths until an editor re-picks an image.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sveltia's image-select dialog only offers the field's folder, the
collection's folder, and Global Assets — binding the bank to specific
fields' media_folder (just reverted) made it unreachable from every
other field, including news images. Global + the undraw_ filename
prefix + search is the working model.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sveltia gained asset collections today (sveltia-cms#301, commit
85500a4): folders declared under a top-level asset_collections key get
their own Asset Library folder AND are offered as a source in every
image field's select dialog — exactly the shared-bank semantics that
field-level media_folder scoping could not provide.

The feature is merged upstream but not yet released (latest v0.166.3
predates it). The current build ignores the unknown key (verified: the
admin still parses to the sign-in screen), and the bank stays reachable
via the global pool until the next release activates the folder — we
load @sveltia/cms unpinned, so no action needed when it ships.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@daniellemccool daniellemccool merged commit d3ce126 into main Jun 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant