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 4851806
Browse filesBrowse the repository at this point in the historyBrowse files
cleanup(resources): fix empty-state flashes and share the iso ramp
Drops the review-only preview route and gallery, which the branch always
meant to delete before merging.
Three ways the zero-data graphic painted over a workspace that has content:
- The gate read the instant URL search term while `rows` is filtered by the
debounced one, so clearing a search that matched nothing showed the full
"you have nothing yet" state for one debounce window.
- Nothing gated on the list still loading. Knowledge and tables hydrate from
a server prefetch that is allowed to seed nothing, and the files list
deliberately seeds nothing above 300 rows — so the emptiest-looking screen
was shown to the fullest workspaces.
- The filters are part of the query key and every list keeps the previous
key's data, so `isLoading` is false across a filter change. Only the
placeholder gate suppresses the graphic during that refetch.
Also folds the re-declared isometric fills and stroke back onto the shared
`iso-illustration-style` source they were copied from, so a change to the iso
ramp reaches this mark too; only the stroke width still diverges. The static
face paths move to module scope, the bore interior becomes a named component
so its note is TSDoc rather than a JSX comment, and the four identical docs
chips become one.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/components/resource/components/resource-empty-state/files-empty-state.tsx
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
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/components/resource/components/resource-empty-state/knowledge-iso.tsx
+76-58Lines changed: 76 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
/**
2
-
* Isometric knowledge-base mark, built on the landing page's iso-illustration
3
-
* recipe: `ISO_STROKE` contours at `ISO_LINE_STROKE_WIDTH`, faces filled from the
4
-
* three-tier surface ramp, round caps and joins throughout.
5
-
*
6
-
* Geometry is authored in a large unit space so the shared 3.2 stroke constant
7
-
* lands as a hairline once the mark is scaled down to empty-state size, exactly
8
-
* as it does on the landingmarks (they draw 3.2 into a ~526-unit viewBox).
0 commit comments