From 73b5dda88690e324eff6e4caf88b48bf7101d64d Mon Sep 17 00:00:00 2001 From: dawn <90008@gaze.systems> Date: Sat, 30 May 2026 19:04:46 +0000 Subject: [PATCH] skeleton loading anim for strings --- src/components/repo.tsx | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/pages/profile.tsx | 4 ++-- src/pages/string.tsx | 8 ++++---- 3 file(s) changed, 71 insertion(s)(+), 6 deletion(s)(-) diff --git a/src/components/repo.tsx b/src/components/repo.tsx --- a/src/components/repo.tsx +++ b/src/components/repo.tsx @@ -1304,6 +1304,71 @@ ); }; +export const StringCardSkeleton: Component = () => ( +
+
+
+ +
+
+ + +
+
+ + +
+
+
+); + +export const StringPageSkeleton: Component = () => ( +
+
+
+
+
+ + + / + +
+
+ +
+
+
+ + +
+
+
+ +
+
+ + +
+
+ + {(_, index) => ( +
+ + +
+ )} +
+
+
+
+); + export const IssueOrPullRow: Component<{ title: string; number: number | string; diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx --- a/src/pages/profile.tsx +++ b/src/pages/profile.tsx @@ -24,7 +24,7 @@ import { For, Show, Switch, Match, createMemo, createSignal, createEffect, type Component } from 'solid-js'; import type { Did } from '@atcute/lexicons/syntax'; import { ErrorState, LoadingState, PlaceholderAvatar, SkeletonBlock, textareaStyles, inputStyles } from '../components/common'; -import { RepoCard, RepoCardSkeleton } from '../components/repo'; +import { RepoCard, RepoCardSkeleton, StringCardSkeleton } from '../components/repo'; import { listFollowRecords, createFollow, @@ -1529,7 +1529,7 @@ fallback={
- {() => } + {() => }
} diff --git a/src/pages/string.tsx b/src/pages/string.tsx --- a/src/pages/string.tsx +++ b/src/pages/string.tsx @@ -2,8 +2,8 @@ import { createQuery, useQueryClient } from '@tanstack/solid-query'; import { Show, Switch, Match, type Component, createSignal, createMemo, createEffect, onCleanup } from 'solid-js'; import type { ResourceUri } from '@atcute/lexicons/syntax'; -import { Avatar, ErrorState, LoadingState, inputStyles, textareaStyles } from '../components/common'; -import { CodeView, CommentComposer, CommentThreadsSection } from '../components/repo'; +import { Avatar, ErrorState, inputStyles, textareaStyles } from '../components/common'; +import { CodeView, CommentComposer, CommentThreadsSection, StringPageSkeleton, RepoFormSkeleton } from '../components/repo'; import { getString, deleteString, @@ -173,7 +173,7 @@ return ( - +
@@ -514,7 +514,7 @@ return ( - +
-- tangled.sh