Repository navigation
feat: projects keep an icon, chosen from IconMCP's - #440
Merged
Merged
Conversation
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.
This comment has been minimized.
This comment has been minimized.
…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.
Contributor
Author
|
On the two findings in the review summary, both fixed in 5bf257f:
|
This was referenced Nov 7, 2026
kalaspuff
approved these changes
Nov 7, 2026
This was referenced Nov 7, 2026
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:  ## 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.Project.icon(ProjectIcon { name, color, style }), kept as JSON inprojects.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.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 checkand the web tests pass.Screenshots
At 7b2011f, in
cargo xtask demo, 1440 px wide.Today's sidebar (left) and with icons (right):
The project's page, with its icon beside its name (click it to change it):
The picker:
⌘K and 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
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 andfctl projectsaccept 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.tsships 148 IconMCP glyphs under the MIT licence, andvite.config.tsnow 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