You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 779c4ad
Browse filesBrowse the repository at this point in the historyBrowse files
feat(resources): logs and files graphics, and settle the set as one collection
Logs is an activity feed — newest run lifted onto its own card, older ones
settling behind it. The relative stamps are the only literal text in any of these
graphics; everything else stays skeleton, so nothing here has to be translated or
kept true.
Files is a folder with sheets standing proud of its front panel. Depth comes from
the surface ramp rather than shadow, which would need separate light and dark
recipes where the ramp inverts on its own. The tab's diagonal is filleted at both
ends and every outer corner shares one radius — mixing radii, or running the
diagonal into square junctions, made the corners fight at this size.
Consistency pass across the set:
- Titles are the resource name alone. "No tables yet" earned nothing the
description does not already say.
- The knowledge mark is mirrored so its bore faces left. Rebuilt on the geometry
rather than flipped, since a flip would have put the shading on the wrong side.
Its contours are thinned and mixed toward `--border-1`: the landing marks are
the focal art of their section, but this one sits beside a ruled grid whose
lines are 1px, and full-weight contours read as ink next to it.
- The logs feed is sized to the same ~148px footprint as the rest. The frame
centres graphic and copy together, so a taller graphic pushes its title out of
line with the others' and the set stops reading as one thing.
- Every empty state carries its create action and a docs link, each running the
same handler as the header's primary chip.
- Fades run whichever way the subject recedes: the tables grid to the
bottom-right, the knowledge set up and right, the logs feed down, the folder
up.
Fixes a duplicate React key in the knowledge mark — the volumes stack along y
now, so keying on `box.x` gave every one of them `0`.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/components/resource/components/resource-empty-state/gallery-preview.tsx
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/components/resource/components/resource-empty-state/knowledge-empty-state.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ export function KnowledgeEmptyState({
20
20
return(
21
21
<EmptyState
22
22
graphic={<KnowledgeIsoMarkheight={148}/>}
23
-
title='No knowledge bases yet'
23
+
title='Knowledge bases'
24
24
description='Upload documents to give your agents a memory they can search.'
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/components/resource/components/resource-empty-state/knowledge-iso.tsx
+36-21Lines changed: 36 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -42,22 +42,37 @@ function boxFaces(box: Box) {
42
42
}
43
43
}
44
44
45
+
/**
46
+
* Thin along y rather than x, so the cover is the face at max y — the one the
47
+
* projection turns to the left. Stacking along y then walks the set left-and-down
48
+
* toward the viewer, so drawing in offset order paints back to front.
0 commit comments