T11a loading: spinner in six motions, skeletons that breathe, a shimmer cut to its corners, loading buttons and load more

This commit is contained in:
ZacharyZhang-NY committed 2026-09-25 16:58:05 -04:00
1 parent 866335912a
commit d4066661d5
17 files changed
+1184 -28

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
mod loading;
use gpui::{AnyElement, App, IntoElement, ParentElement, Window, div};
use super::Page;
use crate::script::Step;
pub const PAGE: Page = Page {
number: 11,
slug: "motion",
title: "Loading & Motion",
summary: "Waiting, shown honestly, and the motion everything else moves with.",
render,
script: SCRIPT,
};
const SCRIPT: &[Step] = &[
Step::Rest,
Step::Click("save"),
Step::Wait(250),
Step::Shot("loading-button"),
Step::Click("load-more"),
Step::Wait(300),
Step::Shot("load-more-busy"),
Step::Wait(1200),
Step::Shot("load-more-done"),
Step::Click("shimmer-load"),
Step::Wait(500),
Step::Shot("shimmer-loaded"),
Step::Click("shimmer-load"),
Step::Rest,
];
fn render(window: &mut Window, cx: &mut App) -> AnyElement {
div()
.child(loading::spinners(cx))
.child(loading::skeletons(cx))
.child(loading::shimmer(window, cx))
.child(loading::buttons(window, cx))
.child(loading::more(window, cx))
.into_any_element()
}