Empty state system for every list
Inventory of every empty state in this pack, and one redesigned system with a consistent title, explanation, visual treatment and single primary action for each case. Use this page when you build or change a list. It adds no new list and it changes no field name.
Inventory of every empty state in this pack
Each row states what the pack ships today. The last column names the redesigned treatment in the next section.
| Where | Title as shipped | Icon, explanation and primary action as shipped | Redesigned status |
|---|---|---|---|
| Signed in app shell, loading, public/app/index.html, id app-loading | Campus Answers, text Loading your workspace | No icon. Action Reload the page. | Keep reload action. App views use the four parts below. |
| Signed in app shell, error, id app-error | The app did not load | No icon. Actions Reload the page, Keep viewing this page, Go to the home page. | Keep reload as primary. Keep viewing and home as secondary links. |
| Signed in app shell, offline, id app-offline | No title structure | No icon. Text that the page may stay readable. Action Reload the page. | Keep reload as primary. Add title and explanation in app views. |
| Screen list example in APPKIT.md | Plain string only, for example No cases yet. Open one to get started. | No icon, title, explanation or next action structure for the emptyState helper. | Replace plain string with the four parts below. Do not pass a plain string alone. |
| Sources, Assistants, Ask, Reports, Improve, Team, Governance and Widget screens | No screen files in this site slice | Empty workspace, unanswered queue and search result lists have no implementation in this pack. | Build with the tailored variants below when those screens ship. |
| public/404.html, class empty-state | That page is not here | Compass icon, explanation, and actions Home, Reload the page, Go back, Request a demo, Read guides, Sign in and Check status. | Keep as reference. Multiple exits are allowed on a not found page only. |
| public/site.js, terminology search | No entries match that wording | Search icon, explanation, action Clear search. | Keep. Matches the no search results variant below. |
| public/guides/index.html, id guide-empty | No guides match those filters | Search icon, explanation, action Clear filters, plus suggested guides. | Keep. Matches the no search results variant below. |
| public/guides/index.html, id pc-empty | Plain text Nothing saved yet | No icon, title or next action. Flagged in APPKIT as the inconsistent case. | Fix to four parts. Icon, title, explanation, single primary action. |
| public/answer-library.html, id lib-empty | No entries match that wording | Search icon, count shown, action Clear search, secondary Read the reuse guide. | Keep. Matches the no search results variant below. |
| public/my-answers.html, id ma-empty | No saved answers match, or No saved answers yet | Search icon, count shown, actions Clear search and filters and Save an answer. | Keep one primary. Clear filters is primary for a filtered empty, Save an answer is primary for a new library. |
| public/my-essentials.html, id ess-empty | No saved answers match, No essentials yet, or No saved answers yet | Search icon, count shown, action Clear search and filters, secondary Open My Answers. | Keep. Matches the no saved items variant below. |
| public/my-follows.html, id mf-empty | No followed questions yet | Bookmark icon, explanation, primary Follow a question, secondary Ask and check sources guide. | Keep. Matches the no saved items variant below. |
| public/my-follows.html, id mf-today-empty | No followed question has a change yet | Chat icon, explanation to add a followed question, primary Ask a question to the app root. | Change primary to Follow a question. Hide this empty when the followed list is empty, so only one empty shows. |
| public/knowledge-hub.html | No hubs yet in a new college workspace | Box icon, explanation, three buttons Start with Get started, Build an assistant and Use the website widget. | Fixed in this change. Single primary Start with Get started, secondary link to Build an assistant guide only. |
| public/offline.html, id off-empty | No pack entries yet | Document icon, explanation, primary Save an entry. | Keep. Matches the no saved items variant below. |
| public/offline.html, id off-empty-match | No pack entries match | Search icon, count shown, action Clear search and filters. | Keep. Matches the no search results variant below. |
| public/print-answers.html, id pa-empty | No saved answers yet, or No saved answers match those filters | Bookmark icon, explanation, action Open My Answers, secondary Clear search and filters. | Keep one primary Open My Answers for a new list. Use search icon for a filtered empty. |
| public/search.html, id site-search-empty | No entries match that wording | Search icon, count shown, primary Clear search, secondary Read guides, plus suggested entries. | Keep. Matches the no search results variant below. |
Counts in explanations come from the list on the page. Do not invent counts, dates, names or results. Where a page already shows a count in a status region, that region is the count for the empty state below it.
Redesigned system, four parts in order
Use the emptyState helper and the empty CSS class on every list screen. Do not pass a plain string alone as the empty text.
Icon
Use the closest existing icon in icons.js, in the 44px tile used by the site empty-state pattern from public/site.css, with aria-hidden on the icon so a screen reader reads the title and text only. Use box or workspace icon for an empty workspace, inbox or list icon for unanswered questions, search icon for no search results, bookmark icon for saved items, and document icon for a pack.
Title
One heading in order on the screen, in plain words, naming what is empty. Use No approved sources yet, No assistants yet, No questions yet, No hubs yet, No saved answers yet, No followed questions yet, No pack entries yet, No entries match that wording, or No unanswered questions in this range, matching the list.
Brief explanation
One short sentence stating why the list is empty for this college, assistant, channel and date range where those filters apply, and what the person can do first. Do not invent counts, dates, names or results. For a filtered empty, state the count shown and the total, for example Showing 0 of 12 guides, in the status region beside the list.
Single primary action
One primary button or link that performs the first step, shown only when ctx.can covers that step, plus a secondary link only when it goes to an existing screen or guide. If the person cannot do the first step, the next action is text naming the role that can do it and a link to the relevant guide, not a button that does nothing. Do not show two primaries for two different first steps.
Layout rules
- Show the empty state instead of table headers when the list is empty
- Show one empty state per list, and do not show an empty state and a populated list at the same time
- Keep the page heading and any filter controls visible so the person can change the filter
- Stack the icon above the text on a phone using the existing responsive CSS
- Keep focus visible by keyboard, and announce a filtered empty result with a status region that states the count shown
- Keep the empty state hidden until the list is confirmed empty, so it does not flash before the list loads
Visual treatment
- Use the not-known card from public/site.css, with the empty-row flex layout and the 44px empty-icon tile
- Use the same tile color, radius and icon stroke on every list, from the site pattern
- Use one primary button style for the single primary action, and text link style for a secondary link in the same group
- Do not add a second icon, a second title or a second explanation to one empty state
Tailored variants
Use the variant that matches the list. Keep the four parts and the single primary rule in every variant.
Empty workspace
For a new college workspace with nothing approved or published. Title No approved sources yet, No assistants yet, No questions yet or No hubs yet, matching the screen. Explanation This workspace starts with nothing approved. The first step is to add one source or ask one question, and nothing is published until a source is approved and a handoff office is named. Primary action Add a source on Sources, Create an assistant on Assistants, or Ask a question on Ask, each gated by permission. For a person without that permission, name the college administrator role and link to Get started.
No search results
For guides, terminology and any in app search or filter. Title No entries match that wording, or No guides match those filters, matching the list. Explanation Try a shorter word, or use one word from a title. State the count shown and the total. Primary action Clear search or Clear filters, restoring the full list and clearing the search words from the page address, plus up to three suggested entries where the list already provides suggestions.
No saved items
For My Answers, Saved Essentials, Print answers, Offline pack, My Library and followed questions on this device. Title No saved answers yet, No pack entries yet or No followed questions yet, matching the list. Explanation Save an answer with its sources to create the first entry in this list, or add a question you asked with the form above. Primary action Save an answer, Save an entry or Follow a question, focusing the form on the page. Secondary link only to My Answers or the related guide.
Unanswered questions
For the Improve queue and Reports lists. Title No unanswered questions in this range. Explanation State the college, assistant, channel and date range, and state whether the list is empty because every question in that range was answered or handed off, or because no questions were asked in that range. Show the question count beside the title so the two cases are not confused. Primary action Change the date range or assistant filter, or open Reports to check the next period. Do not use Add a source as the next action when there is no unanswered gap.
Live examples using the site pattern
Each example uses one icon, one title, one explanation and one primary action. Open the linked page to see the same empty state in use.
No hubs yet in a new college workspace
This workspace starts with nothing approved and no hub published. The first step is to approve one source and build one assistant for one job.
No entries match that wording
Showing 0 of 6 sample answers. Try a shorter word, or use one word from a title. Clear search returns to the full list.
No saved answers yet
Save an answer with its sources to create the first entry in this list.
No followed questions yet
Add a question you asked with the form above to create the first entry in this list.
Checks before you ship an empty state
Run each check on phone and desktop, by keyboard and by screen reader.
- Icon, title, explanation and single primary action appear in that order, with aria-hidden on the icon only
- Table headers are hidden when the list is empty, and the page heading and filters stay visible
- A filtered empty states the count shown beside the total in a status region, and Clear search or Clear filters restores the full list
- Only one empty state shows per list, and no empty state shows with a populated list
- The primary action matches the explanation, is gated by permission where it changes data, and names the role that can do the step where the reader cannot
- Focus stays visible on the primary action, the icon stacks above the text on a phone, and the empty state does not flash before the list loads
Use one empty state pattern on the next list you build
Start with the four parts, choose the icon for the variant, and set one primary action that matches the explanation.