|
Download docs/feature-tours.md from new-arc/vector: direct link, hf CLI and curl.
- Browser
- Download file 2.13 kB
-
https://huggingface.co/spaces/new-arc/vector/resolve/main/docs/feature-tours.md
- Command line
-
hf download hf://spaces/new-arc/vector/docs/feature-tours.md
-
curl -L -o feature-tours.md https://huggingface.co/spaces/new-arc/vector/resolve/main/docs/feature-tours.md
2.13 kB
Feature tours
Short cards that introduce a new feature to people who already use SupoClip.
Adding a tour
- Add an entry to
FEATURE_TOURSinfrontend/src/lib/feature-tours.ts. Order matters: the first due tour wins. - Put
data-tour="<target>"on what each step points at. - Add the title and body to
frontend/messages/<locale>/tours.jsonin every language. - Mount
<FeatureTourHost>if the page doesn't have it yet. Only the create screen does today. - For a big feature, give the opening announcement
media: a seamless loop rendered in code with Blender (scripts and spare renders inassets/blender/announcement/, see its README), encoded to WebM, MP4 and a WebP poster at 1600×800 infrontend/public/tours/. To compare candidates, setmedia.variantsto avariants.jsonbeside them: previews then show a picker. Remove it once one is chosen. - Check it with
?tour=<id>, which replays it for anyone.
Rules
- Explain the feature, don't just point at it. Say what each thing makes and when you'd use it. A big feature opens with an
introstep that offers "Show me" or "Not now". - Eight steps at most, as few as the feature allows. A test enforces the limit.
- One idea per step, in a sentence or two.
- Work on the real page. A step can set
workflowto select it while it talks about it, and everything is put back at the end. The page stays usable behind the spotlight. - Existing users only.
releasedAtis the day the feature reached users; newer accounts never see the tour. For a gated feature, set it to the day it opens.
Each account and tour gets a row in user_feature_tours when it is shown, with completed_at or dismissed_at and last_step once it ends. That answers whether a tour helps, and deleting a row shows that tour to that person again.
The host handles the rest: once per account, one tour a day at most, never while the user is working, and steps whose target is missing or disabled are skipped. A tour with nothing on the page waits until its feature is open to that account.
Use What's new for news that has nothing to point at.