Skip to content

feat: projects keep an icon, chosen from IconMCP's - #440

Merged
kalaspuff merged 2 commits into
mainfrom
fctl/850-project-icons
Nov 7, 2026
Merged

kalaspuff merged 2 commits into
mainfrom
fctl/850-project-icons

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Projects get an icon. Maintainers choose it on the project's page (click the icon beside its name), in its settings, or as they create it, and with fctl projects set --icon store --icon-color yellow --icon-style duotone. It is one of IconMCP's glyphs, an MIT-licensed set drawn on a 16-unit grid, in a workspace color (ink, yellow, pink or blue) and outline, duotone or solid. Everyone in the workspace sees it in the sidebar, on the project's and the workspace's pages and in ⌘K. A project nobody chose one for shows the glyph that fits it best, from the words of its name, then its description's emoji, then its words, in ink lines, so the sidebar has icons from the start.

  • Control plane. Project.icon (ProjectIcon { name, color, style }), kept as JSON in projects.icon (migration 0050). Create and update take it, and an icon with an empty name takes it away. Only a name's shape is checked, so the set can grow with the web app; a name the app doesn't know shows the icon that fits, in the chosen color and style.
  • Web app. About 150 curated glyphs in three styles, fetched from IconMCP's MCP server and drawn as React elements, not inserted markup. They ship in a chunk of their own (26 kB gzipped) that stays cached across releases. The picker keeps a draft until you save, previews the sidebar row and the page's tile, shows each style with the chosen glyph, searches names, labels and tags, and works from the keyboard: type to search, arrows to move, Enter to pick, ⌘Enter to save. Saving updates every list at once and rolls back if refused.

I tested it end to end in cargo xtask demo: icons set through the API as Noor and shown in both themes. Also covered: unit tests for the validation, the CLI's options, the suggestions, the kept sidebar lists and the picker (selection, search, keyboard, saving and reverting). npm run check and the web tests pass.

Screenshots

At 7b2011f, in cargo xtask demo, 1440 px wide.

Today's sidebar (left) and with icons (right):

The sidebar before and after

The project's page, with its icon beside its name (click it to change it):

Shop's page, dark
Shop's page, light

The picker:

The icon picker, dark
The icon picker, light

⌘K and the workspace's projects:

⌘K with project icons
The workspace's projects

Related

The sidebar work comes in four pull requests: this one, the two beside it, and #443, which builds the tree sidebar on all three. Each pair of the three changes some of the same lines, so after one merges, the next needs main merged in first; #443 shows how the conflicts resolve.

Worth confirming

  • Decision: the icon is the workspace's, chosen by the project's maintainers, not a personal preference.
  • Decision: colors are the four workspace colors, not a wider palette; most variety comes from the glyph.
  • Decision: the web app carries a curated ~150 of IconMCP's 6,800 glyphs rather than searching the whole library live, which would send people's searches to iconmcp.com.

fctl session


Note

Medium risk. It adds a column and a field to projects through the API, the CLI and the web app, and changes how every project is drawn in the sidebar and palette, but older clients keep working because the field is optional.

What it does. Projects can now keep an icon chosen from a curated set of IconMCP glyphs, with a color and an outline, duotone or solid style. The control plane stores it (new migration 0050), the API and fctl projects accept it, and the web app gets a picker on the project page and the new-project form, and draws the icon in the sidebar, command palette and workspace page. Projects without a chosen icon show one that fits their name.

Bundled icon data. web/src/lib/project-icon-data.ts ships 148 IconMCP glyphs under the MIT licence, and vite.config.ts now keeps legal comments in the build so the notice stays with them.

fctl review's first look at 5bf257f · 34 files, +1773 −66 · Review agent settings

Maintainers choose a project's icon on its page, in its settings or as
they create it (fctl projects set --icon): an IconMCP glyph in a
workspace color, drawn in outline, duotone or solid. Everyone in the
workspace sees it in the sidebar, on the project's page, on the
workspace's and in search. A project without one shows the glyph that
fits its name and description, in ink lines.

The control plane keeps it as JSON in projects.icon (migration 0050)
and checks only a name's shape, so the set can grow with the web app,
which carries about 150 glyphs in a chunk of their own and draws them as
React elements. The picker keeps a draft until it's saved, searches by
name, label and tags, and works from the keyboard.
@fctl-sh
fctl-sh Bot requested a review from kalaspuff as a code owner November 7, 2026 00:55
@fctl-review

This comment has been minimized.

Comment thread web/src/lib/project-icons.ts Resolved
…nMCP's licence

- ⌘Enter in the icon grid saved twice: the grid's handler saved and let
  the key go on to the picker's, which saved again. The picker saves
  alone now, once until the save settles.
- A color or a style this build doesn't know (a newer control plane's)
  threw while drawing: it draws as ink lines now.
- IconMCP's MIT notice was a // comment, which the minifier dropped: it
  is a legal comment now, which the build keeps (comments.legal).
- docs/api.md names the icon field of projects.
@fctl-sh

fctl-sh Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

On the two findings in the review summary, both fixed in 5bf257f:

  • Licence notice: the header of project-icon-data.ts is now a /*! … */ legal comment. The build also keeps legal comments (comments: { legal: true } in vite.config.ts), since Rolldown dropped even that one before; I checked that the built project-icons-*.js chunk contains the notice. IconMCP's licence says only some of its hand icons follow Phosphor, Tabler or Lucide shapes. None of the 148 glyphs here is a hand icon, and the comment now says so.
  • API docs: docs/api.md now lists icon for GET, POST and PATCH /api/v1/projects: its shape, its defaults, and that {"name": ""} takes it away.

@kalaspuff
kalaspuff merged commit ffa2f38 into main Nov 7, 2026
13 checks passed
@kalaspuff
kalaspuff deleted the fctl/850-project-icons branch November 7, 2026 10:25
kalaspuff pushed a commit that referenced this pull request Nov 7, 2026
…464)

## Summary

Projects can have an icon of their own since #440, and the tree sidebar
(#443) shows one beside every project, but the demo cast had none, so
every Romanesco, milkfloat and punschrulle project showed the gray icon
the app picks for it. Each project of the cast now has one its people
chose, all duotone. Most use the workspace colors; a few have a color of
their own where the thing they show has one: Shop's carrot orange,
sourdough's crust, plantwatch's leaf green, and a violet cloud for Infra
so that no Romanesco project is gray. The seed sets them as it makes the
projects, and `the_cast_holds_together` fails on a glyph, color or style
the web app doesn't draw. The five project descriptions that began with
an emoji lose it, since the icon above them now shows the same thing.

`shoot.mjs` also takes what fctl.sh's redesigned features overview
needs: each page's tile shows a part of one of its shots at the app's
own size (`card`, in CSS pixels, written at twice that), instead of a
small thumbnail of the page's first shot. It also takes four new shots
for pages that showed the same screenshot twice. I ran `cargo xtask
demo` and took every feature page's shots from it, which are in the
fctl-site pull request below, and checked with `cargo test -p xtask`
(with an unknown icon to see the cast test fail), Clippy and rustfmt.

- hyperstructure/fctl-site#111

## Screenshots

The demo's sidebar at 09:10, before (left pair) and after (right pair),
in both themes:

![The sidebar before, with every project's icon in gray lines, and
after, with a carrot for Shop, a blue server stack for Platform, a
yellow van for Driver app, a violet cloud for Infra, a yellow route for
milkfloat, a blue gauge for Benchmarks, a loaf for sourdough, a green
sprout for plantwatch, a pink feather for Website and a pink climber for
Bookings](https://app.fctl.sh/api/v1/published/fJGE3iFqqkJkeInbhwtykGhNowENkEi5Uw0vdbcQSfa/sidebar-before-after.webp)

## Worth confirming

- **Decision:** the icons and colors: carrot (`#ff7a1a`), server stack
(blue), van (yellow), cloud (`#9b7bff`), route (yellow), gauge (blue),
bread (`#e0a458`), sprout (`#4cc76a`), feather (pink) and climbing
(pink), all duotone. Infra's cloud is violet rather than gray because it
was the only gray icon among Romanesco's projects. They're in
`cast.toml` and the demo skill's projects table.
- **Decision:** the emoji are gone from the five descriptions that had
them (🥕 Shop, 📱 Driver app, 🚐 milkfloat, 🍞 sourdough, 🌱 plantwatch).
Without that, the project header shows a carrot icon right above "🥕 The
web shop…".

[fctl session](https://app.fctl.sh/s/ses_01M6VD4JRYFH2CVB3D77Y947NG)

<!-- FCTL_REVIEW_SUMMARY -->
---

> [!NOTE]
> **Low risk.** It only touches the demo tooling in xtask, its cast data
and the demo skill's docs, nothing that ships in the product.
>
> **What it does.** Gives each project in the demo cast an icon, which
the seed sends when it creates the projects, and drops the emoji from
five project descriptions. A cast test checks that every icon's glyph,
color and style are ones the web app draws. `shoot.mjs` now crops each
fctl.sh feature page's tile from a shot at the app's own size, and takes
a few new shots.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M6VF5R71TV90C5GPJF8ZDGXG)'s first
look at
[`c45083b`](c45083b)
· 6 files, +183 −55 · [Review agent
settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub>

<!-- /FCTL_REVIEW_SUMMARY -->

Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant