Pin and unpin
- In an open artifact, select the pin button next to Share: Pin to deck. Select it again to Unpin from deck.
- In the Artifacts library, open a card’s ⋯ menu and choose Pin to deck or Unpin from deck.
The Artifacts menu
Select Artifacts ▾ to open your existing work, not a launcher: kinds are picked in Agent mode. The panel holds the same preview cards as the Artifacts page:- Pinned: a card for each pin, with a live preview, its kind and when it was last updated. Select a card to open it, or the pin on the card to unpin it.
- Recent: cards for your three most recently updated artifacts. Each has Attach, which adds it to your message as context, and Open.
- Open Artifacts: opens the Artifacts library.
Where pins are kept
Pins are saved to your account on your connected runtime, like project icons, so your other devices on the same runtime and account see the same pins. They update when the app comes back into focus. When you’re signed out, or your runtime is too old to keep pins, they’re saved in this browser only.For developers
- Store:
src/lib/artifacts/deck-pins.ts(useDeckPins,pinToDeck,unpinFromDeck,pruneDeckPins). It keeps an ordered list{ id, kind, title }, capped at 8, and broadcastsallternit:deck-pins-changed. - Runtime API:
GET /api/v1/deck-pinsreturns{ "pins": [...] }.PUTtakes and returns{ "pins": [...] }, validated to at most 8 entries with non-emptyid,kindandtitle. It is stored inruntime_settingsunderdeck_pins(allternit-apiruntime_settings_routes.rs) and isn’t cleared by a runtime settings reset. - Fallback: a 404, 401, 403 or network error switches the store to
localStorage['allternit:deck-pins']. - UI:
src/components/composer-deck/DeckArtifactsMenu.tsxis the third trigger inDeckSelectors. It opens a popover ofArtifactPreviewCards, the card shared with the Artifacts tab (views/library/ArtifactPreviewCard.tsx). It opens artifacts withuseArtifacts.getState().open(id).- The pin button is in
components/artifacts/ArtifactWindow.tsx, which also covers panes and phones. - The library card menu is in
views/library/ArtifactsView.tsx.