Sub topic 2
Progressive disclosure: teach when it matters
Assumed prerequisites: you know basic app screens, forms, and buttons, you understand what product analytics events are, and you can read simple TypeScript.
Progressive disclosure
Progressive disclosure shows a feature only when the user needs it. A long tour on first launch overwhelms people. Show one hint when the user first opens a feature. Keep the first session focused on the first-value moment, the point where the user gets a real benefit from the app.
Personalizing with setup questions
Ask one or two setup questions, such as "What will you use this app for?" Use the answer to choose which steps appear. Ask only questions whose answers change the flow. Each extra question adds friction and delays first value.
Choosing an onboarding pattern
| Pattern | Best for | Main risk |
|---|---|---|
| Welcome screen | Stating a clear promise | Users skip it and learn nothing |
| Tour | Highlighting a few controls in order | Users dismiss it early |
| Checklist | Tasks users can finish in any order | Looks like unpaid work if too long |
| Contextual hint | Teaching a feature at the moment of use | Hints can pile up and annoy |
Turning empty states into guidance
An empty state is the screen a user sees before they have any data. Replace "No items" with one sentence explaining what will appear here, one button that starts the first task, and an example.
Asking for permissions at the right moment
Ask for a permission when the user needs the feature, not on first launch. Explain the benefit in your own UI first. Browsers show the system prompt only while permission is still "default," so the explainer protects that one chance.
async function primeThenRequest(
showExplainer: () => Promise<boolean>
): Promise<NotificationPermission> {
if (Notification.permission !== "default") return Notification.permission;
const wantsNotifications = await showExplainer();
if (!wantsNotifications) return "default";
return Notification.requestPermission();
}Exercise
A new user has not yet created any projects. Name the three parts a good empty state should contain.
Show answer
A short explanation of what will appear, one button that starts the first task, and an example of the finished result.