Model page: Files tab first with a new file list, colored tags, single Hub link
- Files is the default tab: icon/size/LFS/state per file, on-disk summary, unselected files collapsed - Custom tags color-coded by name (editor, library, filter chips and menu) - Header: only the Hugging Face link (top right); README link moved to the end of the model card - App icon; proxy lets /icon.svg through Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5fadd64367
commit
6dc9527682
9 files changed
+263
-119
No files matched your search
@@ -7,6 +7,7 @@ import { useMemo, useState } from "react";
|
||||
import { JobProgress, JobStateBadge } from "@/components/job-progress";
|
||||
import { LocalTime } from "@/components/local-time";
|
||||
import { MODEL_STATUS, ModelStatusBadge } from "@/components/model-status-badge";
|
||||
import { TagBadge, TagDot } from "@/components/tag-badge";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
@@ -122,6 +123,7 @@ export function LibraryView({ rows }: { rows: LibraryRow[] }) {
|
||||
selected={filters[facet]}
|
||||
onChange={(v) => updateFilter(facet, v)}
|
||||
format={facet === "status" ? statusLabel : undefined}
|
||||
marker={facet === "tag" ? (v) => <TagDot name={v} /> : undefined}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
@@ -134,6 +136,7 @@ export function LibraryView({ rows }: { rows: LibraryRow[] }) {
|
||||
{FACETS.flatMap((facet) =>
|
||||
filters[facet].map((v) => (
|
||||
<Badge key={`${facet}:${v}`} variant="secondary" className="gap-1">
|
||||
{facet === "tag" && <TagDot name={v} />}
|
||||
{FACET_LABEL[facet]}: {facet === "status" ? statusLabel(v) : v}
|
||||
<button
|
||||
type="button"
|
||||
@@ -190,7 +193,7 @@ export function LibraryView({ rows }: { rows: LibraryRow[] }) {
|
||||
type="button"
|
||||
onClick={() => !filters.tag.includes(t.name) && updateFilter("tag", [...filters.tag, t.name])}
|
||||
>
|
||||
<Badge variant="outline">{t.name}</Badge>
|
||||
<TagBadge name={t.name} />
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user