amicode: first-run onboarding wizard — welcome UI that autofills home-page affiliation + logo - #6
Merged
Merged
Conversation
…ion-lookup.ts — shared by the About-You card and the onboarding wizard; card keeps debounce/sequencing/race guards Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… about-you with live institution/logo lookup → profile preview + open chat); saves through POST /amicode/profile so the home page autofills affiliation + logo; shows exactly once (fresh profile, dismiss remembered) + tests Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… the starter chips (Open chat owns 'start something'); PDFs upload via POST /amicode/library into ~/.amico/library (sanitized basename, %PDF- magic check, 30MB cap), GET lists newest-first; 'Discuss latest →' hands the agent the paper path + tests Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…' (upload PDFs between about-you and the finish; ✓-list of uploads, continue-without-papers path; step skipped when upload isn't wired); home Library card stays; shared fileToBase64 util Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…mo udd hit exactly this) + trunk Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… demoted to the quiet secondary — the autofilled home is the payoff shot Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First-run onboarding wizard (Aaron's ask): a dedicated welcome UI that autofills the home page's affiliation + logo.
What it does
POST /amicode/profile— the home page's About-You card autofills instantly (affiliation, torch-grade brand logo, the works). No new server surface.Library — papers that make Amico smarter (added per review)
Also IN the wizard: a fourth step ("Teach Amico your work") between about-you and the finish — upload PDFs during onboarding with a ✓-list and a continue-without-papers path; the step disappears entirely when upload isn't wired. The home Library card remains for ongoing additions.
The "Start something" starter-chips card is replaced by a Library card (Open chat already owns "start something"). Upload PDFs from the home page →
POST /amicode/librarystores them in~/.amico/library(basename-sanitized,%PDF-magic check, 30MB cap); the card shows the count + latest and "Discuss latest →" starts a chat handing the agent the paper's path. Pairs with the amicode-side read grant so the agent can open the files without an ask-prompt.GET /amicode/librarylists newest-first. Tests on save/list/sanitize/reject.Refactor
institution-lookup.ts— the Clearbit/Wikidata/Wikipedia/favicon pipeline extracted from home-cards into a shared pure module; the About-You card and the wizard both use it (card keeps its own debounce/signals).Pairs with
amicode PR (same branch name): the chat's conversational overture now skips its session-zero interview when the wizard already saved identity — no double onboarding.
Verification
ui typecheck + 66 tests green (incl. shouldShowWizard predicate + lookup module); live-tested end-to-end in the dev host: fresh profile → wizard → NYU picked → Wikidata torch logo resolved → saved → home page autofilled → relaunch shows no wizard.
🤖 Generated with Claude Code