Skip to content

desktop: version in sidebar footer; demo tour as first-open popup - #24

Merged
adamsiwiec1 merged 1 commit into
mainfrom
ui/version-footer-and-first-open-tour
Oct 26, 2026
Merged

adamsiwiec1 merged 1 commit into
mainfrom
ui/version-footer-and-first-open-tour

Conversation

@adamsiwiec1

Copy link
Copy Markdown
Contributor

What

Two desktop-app UI changes requested by Adam.

1. Sidebar footer shows the app version (not the local path)

The bottom-left footer previously rendered:

Alpha — not production
Authorized assessments only
/Users/adamsiwiec/home/openhat/opensource/phishkit   ← absolute kit path

It now renders a clean version display sourced from Tauri's getVersion() (reads tauri.conf.json/Cargo.toml version — the build's source of truth), with a short authorized-use note and no filesystem path:

phishkit v<version>
Alpha · authorized use only

2. Demo Tour is a first-open popup, not a sidebar button

  • Removed the persistent "Demo tour" button from the bottom-left sidebar footer.
  • The tour already auto-offers on first run via existing plumbing; shouldAutoOfferDemoTour() now returns true whenever the tour has never been completed or skipped (first open), instead of only when there are zero assessments. Persistence is unchanged: it uses the existing phishkit.demoTour localStorage state (+ backend tutorialCompleted flag), so after the user finishes or dismisses it, it does not auto-show again.
  • The empty-state "demo tour" banner on the Assessments home (start-demo-tour-home) is untouched, so users still have a way to replay/start it.

Files

  • apps/desktop/src/App.jsx — add getVersion() fetch + appVersion state; replace footer block; drop sidebar tour button; update auto-offer call site.
  • apps/desktop/src/components/DemoTour.jsx — shouldAutoOfferDemoTour() gates purely on tour state (first-open).
  • apps/desktop/src/App.css — styles for .app-version / .foot-note.

Verification

npm run build (vite) passes.

…popup

Replace the bottom-left footer block (Alpha disclaimer + absolute kit path) with a clean app-version display sourced from Tauri's getVersion(), keeping only a short authorized-use note. Remove the persistent 'Demo tour' sidebar button; the tour now auto-opens once on first open (idle localStorage state) and stops after the user completes or skips it.
@adamsiwiec1
adamsiwiec1 merged commit f5a93de into main Oct 26, 2026
5 checks passed
@adamsiwiec1
adamsiwiec1 deleted the ui/version-footer-and-first-open-tour branch October 26, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant