Cloudflare Git

Repos/herdr-appPublic

main
37 lines · 3.8 KBRaw

mockups

The source of the project's one mockup artifact, a Design canvas: https://claude.ai/artifact/W2ptkfrJT1LW2NuJdx817V. Never create a second artifact. Nothing here is installed into the app.

Files

  • project/canvas.json places the boards on the canvas. boards maps each .dc.html file to its x, y, w, h and title. order lists the boards, and notes holds sticky notes.
  • project/<Name>.dc.html is one board. Its markup is inside <x-dc>, with inline styles only. It fills placeholders like {{quietCount}} and loops over lists with <sc-for list="{{quiet}}" as="q">, and the values come from renderVals() in the <script type="text/x-dc"> block at the bottom.
  • support.js is the Design type's file, served next to the boards. Don't add it here.

Boards

Board Shows
Main.dc.html The kit layout as it is now, at 1440×900: the sidebar open at 268px (agents in one list, most recently changed first, each with a status dot on its tile, Spaces at the bottom above Settings, with a space's hover card open above its column; Rail.dc.html beside it shows it folded), the tab bar with a file tab, the terminal pane, the Files panel (changed names in the change color, a count on folders, a letter on files, right aligned) and the status bar.
Search.dc.html The ⌘S search popup at 640×480: the shown space with its tabs indented on tree branches (an agent tab by its activity line, as the sidebar shows it, a file tab by its name and dimmed folder), then every other space on one row with its agent's activity, last used first, opening on the previous space with a dim "↵ previous" hint on it.
FileTab.dc.html A file opened from the Files panel (files-tabs) as a tab, at 960×600: the file-view pane on its Changes view, with the File toggle and the Wrap toggle (off).
FilePreview.dc.html A Markdown file tab at 960×600 on its Preview (rendered, as TextView.markdown draws it), with the Raw toggle beside it and no Wrap. SVG and image files show as a picture in the same spot.
Rail.dc.html The sidebar folded to its 76px rail, at 340×900: open and search buttons under the traffic lights, each agent as its space's tile with a status badge, then at the bottom the last used 8 spaces as tiles, two to a row, with a "+N" toggle for the rest, above Settings, and the hover cards: an agent's (in its space's color, the status as a pill) and a row of spaces' (past the right column).

Only the current state lives here. Exploration boards are deleted once a direction is picked.

Keeping it current

Whenever a change alters what the window looks like (layout, mods, fonts, sizes, labels, counts), update the matching board in the same session. New ideas get their own board next to the current-state one, and they are removed once a direction is picked.

Mirror the app's real values: the kit-dark colors in themes/kit-dark.json (the focused pane's border is dim), the colors in MARK and PROJECT_COLORS in mods/agents-activity/main.js (each space keeps the one in shared space.colors), its px sizes, and the real space and agent names. A static board shows a resting state, so hover cards and popovers aren't drawn unless a board is made for them.

Publishing

Call Artifact (publish) with:

  • url set to the link above, and root set to this folder's absolute path.
  • file_path set to one changed file, such as project/canvas.json. It is required even when files lists everything.
  • files listing only the changed files, mapped from published path to source path, for example {"project/Main.dc.html": "project/Main.dc.html"}.
  • null for a deleted or renamed board's old path, for example {"project/GoTo.dc.html": null}, or it stays published.

If a publish is refused because the artifact has a newer version, read it first (action: "read"), merge, then publish again.