-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Workers AI Model Page & Catalog Fixes #17409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deploying cloudflare-docs with
|
| Latest commit: |
1d1c4e1
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://53b6b6ed.cloudflare-docs-7ou.pages.dev |
| Branch Preview URL: | https://hturan-ai-fixes.cloudflare-docs-7ou.pages.dev |
KimJ15
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved from a non-technical POV. @KianNH - look ok to you?
src/components/ModelCatalog.jsx
Outdated
| </div> | ||
| <div className="flex md:w-3/4 w-full gap-[1%] items-stretch self-start flex-wrap !mt-0"> | ||
| {modelList.length === 0 && ( | ||
| <div className="border bg-gray-50 rounded-md w-full flex-col flex align-middle justify-center text-center py-6"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| {node.subpath[node.subpath.length - 1]} | ||
| </code> | ||
| <li | ||
| class={`py-2 !my-0 !list-none ${root ? "" : "border-l border-l-gray-200 pl-4"}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Appreciate you @KianNH 🧡 One of these days I'll remember to dev in dark mode too! Just pushed up a couple of fixes for those. |
* Implement empty state for model catalog * Clean up model schema design * Dark mode fixes for model empty state


Summary
This PR implements an empty state for the Workers AI model catalog (when a search or filter returns no results), along with some small design tweaks to the model schema viewers (handling
oneOfstates in a nicer fashion and adding vertical alignments).Screenshots (optional)
Documentation checklist