feat: show skeleton loaders while ATProto identity resolves

- Show skeleton in PublicNoteView and StackedPublicNote while note
  content is pending author resolution
- Show skeleton h1 in PublicNoteListByDidView while author loads
- Show skeleton in SignInAtproto until auth state is known
- Load cached session from IndexedDB before OAuth restore so the
  homepage resolves immediately without waiting for network
This commit is contained in:
Julien Calixte
2026-03-19 18:12:52 +01:00
parent 52561496b4
commit ddabe5082d
5 changed files with 20 additions and 12 deletions

View File

@@ -17,6 +17,7 @@ import { useRouter } from "vue-router"
import { errorMessage } from "@/utils/notif"
import { useResizeContainer } from "@/hooks/useResizeContainer.hook"
import ThemeSwap from "@/components/ThemeSwap.vue"
import SkeletonLoader from "@/components/SkeletonLoader.vue"
import { useTitle } from "@vueuse/core"
import { displayLanguage } from "@/utils/displayLanguage"
@@ -163,7 +164,8 @@ watch(
>
</div>
<article class="note-display" v-html="content"></article>
<article class="note-display" v-if="content" v-html="content"></article>
<skeleton-loader v-else-if="!noteNotFound" />
</div>
<stacked-public-note
v-for="(stackedNote, index) in stackedNotes"