waveterm/frontend/util
Copilot 95a97ca932
Add Onboarding Flows to Preview Server (#2960)
`FilesPage` was previously previewed through a special path because
`EditBashrcCommand` (Monaco via `CodeEditor`) threw in preview mode.
With preview/global handling now fixed, preview can run the real Files
onboarding flow end-to-end without command overrides.

- **Files preview now uses the real FilesPage path**
  - `OnboardingPreview` renders `FilesPage` directly.
- Removed preview-only command injection/override behavior for Files
onboarding.

- **Reverted FilesPage customization**
  - Dropped optional command renderer plumbing added for preview.
  - Restored FilesPage to its original internal command rotation:
    `EditBashrcCommand -> ViewShortcutsCommand -> ViewLogoCommand`.

- **Result**
  - No Files-specific preview fork remains.
  - Preview and production use the same FilesPage command lifecycle.

```tsx
const commands = [
    (onComplete: () => void) => <EditBashrcCommand onComplete={onComplete} />,
    (onComplete: () => void) => <ViewShortcutsCommand isMac={isMac} onComplete={onComplete} />,
    (onComplete: () => void) => <ViewLogoCommand onComplete={onComplete} />,
];
```

<screenshot>

![Onboarding FilesPage preview using default
commands](https://github.com/user-attachments/assets/c5baf015-6204-41da-b72b-408ef137f32b)

</screenshot>

<!-- START COPILOT CODING AGENT TIPS -->
---

 Let Copilot coding agent [set things up for
you](https://github.com/wavetermdev/waveterm/issues/new?title=+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sawka <2722291+sawka@users.noreply.github.com>
Co-authored-by: sawka <mike@commandline.dev>
2026-03-02 11:06:01 -08:00
..
color-validator.test.ts Make frontend CSS color validation Chromium-only (remove DOM style fallback) (#2946) 2026-02-27 15:48:56 -08:00
color-validator.ts Make frontend CSS color validation Chromium-only (remove DOM style fallback) (#2946) 2026-02-27 15:48:56 -08:00
endpoints.ts Add Onboarding Flows to Preview Server (#2960) 2026-03-02 11:06:01 -08:00
fetchutil.ts Happy new year! (#1684) 2025-01-04 20:56:57 -08:00
focusutil.ts Happy new year! (#1684) 2025-01-04 20:56:57 -08:00
fontutil.ts add tailwind to wave, support shadcn + donut chart as a POC (#1775) 2025-02-04 17:58:36 -08:00
getenv.ts New AIPanel (#2370) 2025-10-07 13:32:10 -07:00
historyutil.ts Happy new year! (#1684) 2025-01-04 20:56:57 -08:00
ijson.ts update eslint to v9 (and fix all eslint errors) (#2923) 2026-02-23 18:42:17 -08:00
isdev.ts Happy new year! (#1684) 2025-01-04 20:56:57 -08:00
keyutil.ts keyboard chord support, split up/down/left/right, and clear block (#1957) 2025-02-14 13:25:25 -08:00
platformutil.ts working on more terminal context (#2444) 2025-10-17 12:19:40 -07:00
previewutil.ts Do not allow large/recursive file transfers (for now), remove s3 and wavefile fs implementations (#2808) 2026-01-28 14:28:31 -08:00
sharedconst.ts keyboard chord support, split up/down/left/right, and clear block (#1957) 2025-02-14 13:25:25 -08:00
util.ts Add Onboarding Flows to Preview Server (#2960) 2026-03-02 11:06:01 -08:00
waveutil.ts Do not allow large/recursive file transfers (for now), remove s3 and wavefile fs implementations (#2808) 2026-01-28 14:28:31 -08:00
wsutil.ts Add license identifiers to missing files (#1806) 2025-01-22 20:06:36 -08:00