FlowFuse / FlowFuse/flowfuse

Page loader scaffolding

Open
#6,741 0 comments 0 reactions 0 assignees View on GitHub
task
Dominant language
JavaScript
Stars
400
Forks
89
Avg merge
1d 21h
Merged PRs (30d)
146

Description

### Description

Implement a centralized loading state listener within the ff-page component.

When the loading state is active: Render a standardized UI loader overlay or skeleton.
When the loading state is inactive: Render the default component slot (the page content).
Ensure the transition between loading and content is smooth to prevent jarring layout shifts.
The loading state must be toggled via Store Actions (not local component state).
Actions should allow for optional metadata to customize the loader's appearance:
- title: (Optional) A heading to describe what is being prepared.
- description: (Optional) Subtext providing additional context to the user.
```js
// Example Store Action call
uxStore.setPageLoading(true, {
title: "Fetching Devices",
description: "Synchronizing your latest hardware status..."
});
```

NB:
Pages with multiple root elements might pose a problem with transitions

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.