Skip to content

Commit eda9f42

Browse files
committed
build: add maplibre-gl dependency and update design docs
Add maplibre-gl v5.24.0 to project dependencies, and overhaul the agent-html TASTE.md documentation to refine design judgment guidelines, add new boundary and posture sections, and update review checklists for consistent artifact creation.
1 parent 082ee5e commit eda9f42

3 files changed

Lines changed: 295 additions & 12 deletions

File tree

agent-html/TASTE.md

Lines changed: 64 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,48 @@
22

33
This file owns portable Canvas artifact design judgment inside distributed `agent-html`.
44

5-
It is not a hard-rule file, API surface, primitive catalog, or host architecture guide. `AGENTS.md` owns executable rules. Component and style routes own source selection. `TASTE.md` owns the visual and compositional judgment agents need when an artifact must feel like a coherent work surface instead of a component inventory.
5+
It is not a hard-rule file, style preset, API surface, primitive catalog, or
6+
host architecture guide. `AGENTS.md` owns executable rules. Component and style
7+
routes own source selection. Theme and design documents own the current subject.
8+
`TASTE.md` owns the portable judgment agents need when an artifact must feel
9+
like a coherent work surface instead of a component inventory.
610

7-
## Artifact Judgment
11+
Taste should make the next design decision cheaper, not make the final design
12+
more predictable.
813

9-
- Treat artifact content as a scene before treating it as a component list.
10-
- Let the primary media, object, or workflow establish the stage before adding UI containers.
11-
- Make one visual or object lead each major block.
12-
- Use UI as annotation, orientation, and control around the work; do not let UI containers become the work.
13-
- Prefer existing Canvas primitives and public content classes before inventing new component families.
14+
## Boundary
15+
16+
- Use taste as a judgment route, not a layout recipe.
17+
- Reuse the judgment from prior artifacts, not their shape.
18+
- Treat prior artifacts as evidence, not policy.
19+
- Let the subject choose the form before applying a known pattern.
20+
- Do not turn one successful artifact into the default artifact voice.
21+
22+
## Subject Before Pattern
23+
24+
- Find the artifact's primary object before choosing components: scene,
25+
workflow, console, route, archive, instrument, simulation, dashboard, game,
26+
or another subject-native form.
27+
- Ask whether the artifact is meant to be watched, operated, compared,
28+
inspected, played, or read.
29+
- Let the primary media, object, data, or workflow establish the stage before
30+
adding UI containers.
31+
- Use UI as annotation, orientation, and control around the work; do not let UI
32+
containers become the work.
33+
- If two unrelated subjects start producing the same block structure, stop and
34+
re-find the subject.
35+
36+
## Artifact Posture
37+
38+
- Treat artifact content as a subject-native work surface before treating it as
39+
a component list.
40+
- Give each major block one leading object, workflow, evidence, or decision.
41+
- A block does not need a hero image when a map, timeline, table, console,
42+
canvas, or interaction is the real lead.
43+
- Prefer existing Canvas primitives and public content classes before inventing
44+
new component families.
45+
- Add a local pattern only when it reduces repeated behavior or clarifies a
46+
repeated arrangement.
1447

1548
## Layout Judgment
1649

@@ -19,6 +52,8 @@ It is not a hard-rule file, API surface, primitive catalog, or host architecture
1952
- Do not wrap every image, caption, source link, and note in separate bordered surfaces.
2053
- Avoid card-inside-card depth unless each layer has a distinct object identity.
2154
- Let image-heavy artifacts use images as layout structure, not only as content inside cards.
55+
- If the layout starts reading as stacked containers, remove hierarchy before
56+
adding more hierarchy.
2257

2358
## Media Judgment
2459

@@ -27,22 +62,41 @@ It is not a hard-rule file, API surface, primitive catalog, or host architecture
2762
- Replace visually similar supporting images when they repeat the same idea.
2863
- Keep credits and sources traceable without interrupting the narrative rhythm.
2964
- Use inline image credits near media and collect long source lists in a final source area when repeated links would break the story.
65+
- Do not let available media redefine the subject. Use media to prove the
66+
current design claim.
3067

31-
## Component Judgment
68+
## Component Judgment and Variety
3269

3370
- Use `components/ui` primitives for ordinary actions, labels, display, disclosure, overlays, and navigation.
3471
- Use existing rich components only when their behavior matches the task.
3572
- Reuse `Timeline` for chronological or route structure before making a custom route component.
3673
- Do not create a new rich component for a one-off artifact arrangement.
37-
- Promote a local pattern only when repeated behavior or a reusable arrangement appears.
74+
- Repeated components are acceptable only when the cognitive task repeats.
75+
- If several blocks use the same component shape, check whether the artifact is
76+
expressing content or repeating a template.
77+
- Choose components by information job: control, comparison, annotation,
78+
sequence, evidence, disclosure, navigation, or status.
79+
80+
## Creativity Boundary
81+
82+
- Taste should remove low-value defaults, not remove surprise.
83+
- A taste rule is suspect when it makes different subjects sound the same.
84+
- Avoid converting review feedback into universal form rules.
85+
- Preserve room for subject-specific structures that contradict prior examples.
86+
- When taste and subject conflict, re-check the subject before copying the
87+
taste.
3888

3989
## Review Checklist
4090

4191
- The first viewport identifies the artifact subject without reading the file name.
42-
- Each major block has one leading visual, object, or workflow.
92+
- Did the subject choose the structure?
93+
- Are we copying a previous artifact's shape?
94+
- Each major block has one leading object, workflow, evidence, or decision.
4395
- Borders are not the default hierarchy mechanism.
4496
- Panels mark meaningful boundaries instead of routine spacing.
4597
- Source links and credits are traceable without dominating the page.
4698
- Repeated images in the same block say different things.
99+
- Repeated components repeat because the task repeats, not because the template repeats.
47100
- Existing primitives are composed before new components are invented.
48101
- The artifact reads as a coherent scene or workflow, not a pile of containers.
102+
- The next design decision is cheaper after reading this file.

0 commit comments

Comments
 (0)