Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

ui: match each loading skeleton to the grid and max-width its page actually renders

[._.]/ Adam Eivyf2ba8449348a
diff --git a/client/src/pages/MediaCollectionDetail.jsx b/client/src/pages/MediaCollectionDetail.jsx
index 6c7f62b3a2..e848f6d35d 100644
--- a/client/src/pages/MediaCollectionDetail.jsx
+++ b/client/src/pages/MediaCollectionDetail.jsx
@@ -295,7 +295,17 @@ export default function MediaCollectionDetail() {
},
});
- if (loading) return <PageSkeleton label="Loading collection" titleWidthClass="w-56" layout="grid" cards={6} />;
+ if (loading) {
+ return (
+ <PageSkeleton
+ label="Loading collection"
+ titleWidthClass="w-56"
+ layout="grid"
+ cards={10}
+ gridColsClass="grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5"
+ />
+ );
+ }
if (!collection) return (
<div className="text-gray-500 text-sm">
<Link to="/media/collections" className="text-port-accent hover:underline">← Back to collections</Link>
diff --git a/client/src/pages/MediaHistory.jsx b/client/src/pages/MediaHistory.jsx
index fd8466c648..f7f0735b4d 100644
--- a/client/src/pages/MediaHistory.jsx
+++ b/client/src/pages/MediaHistory.jsx
@@ -232,7 +232,7 @@ export default function MediaHistory() {
</div>
{loading ? (
- <PageSkeleton header="none" label="Loading media history" layout="grid" cards={6} />
+ <PageSkeleton header="none" label="Loading media history" layout="grid" cards={10} gridColsClass="grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5" />
) : filtered.length === 0 ? (
<div className="bg-port-card border border-port-border rounded-xl p-8 text-center text-gray-500 text-sm">
{query.trim()
diff --git a/client/src/pages/MoodBoardDetail.jsx b/client/src/pages/MoodBoardDetail.jsx
index 78f79b9b64..e58f7d617a 100644
--- a/client/src/pages/MoodBoardDetail.jsx
+++ b/client/src/pages/MoodBoardDetail.jsx
@@ -161,7 +161,17 @@ export default function MoodBoardDetail() {
};
if (loading) {
- return <PageSkeleton label="Loading mood board" titleWidthClass="w-56" layout="grid" cards={6} />;
+ return (
+ <div className="max-w-5xl mx-auto">
+ <PageSkeleton
+ label="Loading mood board"
+ titleWidthClass="w-56"
+ layout="grid"
+ cards={8}
+ gridColsClass="grid-cols-2 md:grid-cols-3 lg:grid-cols-4"
+ />
+ </div>
+ );
}
if (!board) {
return (
diff --git a/client/src/pages/Sprites.jsx b/client/src/pages/Sprites.jsx
index 393822edbc..c701f8c1ae 100644
--- a/client/src/pages/Sprites.jsx
+++ b/client/src/pages/Sprites.jsx
@@ -440,7 +440,13 @@ export default function Sprites() {
{!id ? (
// The bare /sprites route IS the Library catalog now.
records === null ? (
- <PageSkeleton header="none" label="Loading sprite library" layout="grid" cards={6} />
+ <PageSkeleton
+ header="none"
+ label="Loading sprite library"
+ layout="grid"
+ cards={10}
+ gridColsClass="grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5"
+ />
) : records.length === 0 ? (
<p className="text-sm text-gray-500">
No sprites yet. Import a production set from a sprite-pipeline checkout to get started.
diff --git a/client/src/pages/StoryBuilder.jsx b/client/src/pages/StoryBuilder.jsx
index 9ec8edef86..1ed7f74926 100644
--- a/client/src/pages/StoryBuilder.jsx
+++ b/client/src/pages/StoryBuilder.jsx
@@ -1308,7 +1308,15 @@ function StoryBuilderDetail({ storyId, stepParam }) {
toast.success('Re-baselined to this machine');
};
- if (loading) return <PageSkeleton label="Loading story session" padded fullHeight titleWidthClass="w-64" cards={3} sidebar={false} />;
+ if (loading) {
+ return (
+ <div className="h-full overflow-y-auto p-4 md:p-6">
+ <div className="max-w-5xl mx-auto">
+ <PageSkeleton label="Loading story session" titleWidthClass="w-64" cards={3} sidebar={false} />
+ </div>
+ </div>
+ );
+ }
if (!session) return <div className="p-6 text-gray-400">Session not found. <Link to="/story-builder" className="text-port-accent">Back to Story Builder</Link></div>;
return (
diff --git a/client/src/pages/ThreejsModelDetail.jsx b/client/src/pages/ThreejsModelDetail.jsx
index 702fe91a7c..668f83158a 100644
--- a/client/src/pages/ThreejsModelDetail.jsx
+++ b/client/src/pages/ThreejsModelDetail.jsx
@@ -121,7 +121,13 @@ export default function ThreejsModelDetail() {
if (ok) navigate('/media/threejs');
};
- if (loading) return <PageSkeleton label="Loading model" titleWidthClass="w-56" cards={2} sidebar={false} />;
+ if (loading) {
+ return (
+ <div className="mx-auto max-w-7xl">
+ <PageSkeleton label="Loading model" titleWidthClass="w-56" cards={2} sidebar={false} />
+ </div>
+ );
+ }
if (notFound || !record) {
return (
<div className="py-12 text-center">
diff --git a/client/src/pages/ThreejsModels.jsx b/client/src/pages/ThreejsModels.jsx
index e0a0174b87..bc6804c2c8 100644
--- a/client/src/pages/ThreejsModels.jsx
+++ b/client/src/pages/ThreejsModels.jsx
@@ -192,7 +192,7 @@ export default function ThreejsModels() {
<section>
<h2 className="mb-2 text-xs font-medium uppercase tracking-wide text-gray-400">Model workspaces</h2>
{loading ? (
- <PageSkeleton header="none" label="Loading model workspaces" layout="grid" cards={3} />
+ <PageSkeleton header="none" label="Loading model workspaces" layout="grid" cards={3} gridColsClass="sm:grid-cols-2 lg:grid-cols-3" />
) : models.length === 0 ? (
<div className="rounded-xl border border-dashed border-port-border py-10 text-center text-sm text-gray-500">
No procedural models yet.
diff --git a/client/src/pages/VideoTimeline.jsx b/client/src/pages/VideoTimeline.jsx
index 55cad966cc..24424e76df 100644
--- a/client/src/pages/VideoTimeline.jsx
+++ b/client/src/pages/VideoTimeline.jsx
@@ -87,7 +87,7 @@ export default function VideoTimeline() {
</button>
</form>
- {loading && <PageSkeleton header="none" label="Loading timeline projects" layout="grid" cards={3} />}
+ {loading && <PageSkeleton header="none" label="Loading timeline projects" layout="grid" cards={3} gridColsClass="sm:grid-cols-2 lg:grid-cols-3" />}
{!loading && projects.length === 0 && (
<div className="text-center py-12 text-gray-500">