43 lines
1.4 KiB
Markdown
43 lines
1.4 KiB
Markdown
# Home
|
|
|
|
- **Route:** `/home`
|
|
- **API:** GET /v1/article/
|
|
- **Visual reference:** `source/RenewCMS Screens Back-office.dc.html`, group "Home" (open it in a browser; each state is drawn at desktop and mobile, with a light/dark toggle).
|
|
|
|
The greeting reads "Good morning, {name}", where the name is the display name when the user has saved one and the username otherwise. The counts come from the list, so there's no separate endpoint. The five most recently updated articles link to the editor.
|
|
|
|
## States
|
|
|
|
### Default
|
|
|
|
**Trigger:** The articles loaded.
|
|
|
|
- Breadcrumbs: Home (mobile title "Home")
|
|
- Subtitle: "Here's where things stand on your site."
|
|
- Stats: 6 articles, 4 online, 2 drafts
|
|
- Recent: the 5 most recently updated articles, with status
|
|
|
|
### Loading
|
|
|
|
**Trigger:** The list request is in flight. Skeletons appear after 150 ms.
|
|
|
|
- Breadcrumbs: Home (mobile title "Home")
|
|
- Subtitle: "Here's where things stand on your site."
|
|
- Stats and recent list: skeletons
|
|
|
|
### Empty, first run
|
|
|
|
**Trigger:** Zero articles: a single call to action, and no stats.
|
|
|
|
- Breadcrumbs: Home (mobile title "Home")
|
|
- Subtitle: "Welcome to RenewCMS."
|
|
- First-run empty state instead of stats and recent list
|
|
|
|
### Error
|
|
|
|
**Trigger:** A 500 or network failure on the list request.
|
|
|
|
- Breadcrumbs: Home (mobile title "Home")
|
|
- Subtitle: "Here's where things stand on your site."
|
|
- Error state for the list request
|