Files
openhuman/app
Cyrus GrayandGitHub ec6f954356 fix(onboarding): clear all onboarding state on logout so overlay reappears (#167)
* feat(onboarding): calmer onboarding with durable deferral + local AI download snackbar

- Add persisted `onboardingDeferredByUser` state so "Set up later" survives
  across sessions (no more overlay nagging on every launch)
- Add SetupBanner for non-intrusive "Finish setting up" reminder with resume path
- Convert LocalAIStep to fire-and-forget download, advancing immediately
- Add LocalAIDownloadSnackbar (bottom-left, collapsible) for persistent download
  progress that doesn't block the main chrome
- Extract shared helpers (formatBytes, formatEta, progressFromStatus) to localAiHelpers.ts
- Add Vitest tests for overlay gating, banner, and snackbar

Closes #101

* fix(test): remove per-test config mock that overrode global setup exports

The OnboardingOverlay test mocked utils/config with only DEV_FORCE_ONBOARDING,
which shadowed the global mock from setup.ts and dropped IS_DEV — causing
store/index.ts to fail on CI.

* fix(tests): destructure build_agent_with tuple in agent tests

Two tests called .history() and .turn() on the (Agent, TempDir) tuple
instead of destructuring it first, causing compilation errors on CI.

* fix(onboarding): clear all onboarding state on logout so overlay reappears

On logout, `isOnboardedByUser` and `isAnalyticsEnabledByUser` were not
reset in the `_clearToken` reducer, and the workspace `.skip_onboarding`
flag file was never deleted. This caused the onboarding overlay to be
permanently skipped after the first completion — even for new users on
the same machine.

- Clear `isOnboardedByUser` and `isAnalyticsEnabledByUser` in `_clearToken`
- Call `openhumanWorkspaceOnboardingFlagSet(false)` on logout, clear-all,
  and auth recovery paths
- Add 3s timeout fallback in OnboardingOverlay for slow user profile loads
- Add unit test asserting `clearToken` resets all per-user fields

Closes #117

* fix(onboarding): address CodeRabbit review feedback

- Add console.warn in UserProvider catch block for workspace flag clear
- Add inline comment explaining userLoadTimedOut stickiness is harmless

Closes #117
2026-04-01 19:28:31 +05:30
..
2026-04-01 07:28:38 +00:00
2026-03-29 10:30:18 -07:00
2026-03-29 10:30:18 -07:00
2026-04-01 07:28:38 +00:00
2026-03-29 10:30:18 -07:00
2026-03-29 10:30:18 -07:00
2026-03-29 10:30:18 -07:00
2026-03-29 10:30:18 -07:00

Tauri + React + Typescript

This template should help get you started developing with Tauri, React and Typescript in Vite.