fix(FN-2572): remove dead onboarding modal exports

- Delete obsolete AppModals code that was accidentally left in ModelOnboardingModal.tsx
- Restore the Task type import used by the onboarding modal after dead code cleanup
- Drop the unused SettingsModal.css import tied to removed code paths
- Extend ModelOnboardingModal tests to guard against dead export regressions
This commit is contained in:
Fusion
2026-04-25 20:21:11 -07:00
committed by gsxdsm
parent c644daca77
commit 7555ba61c6
3 changed files with 12 additions and 350 deletions

View File

@@ -173,6 +173,16 @@ afterEach(() => {
localStorage.removeItem("fn.authToken");
});
describe("ModelOnboardingModal module exports", () => {
it("does not export dead AppModals/auth onboarding symbols", async () => {
const moduleExports = await import("../ModelOnboardingModal");
expect("AppModals" in moduleExports).toBe(false);
expect("useAuthOnboarding" in moduleExports).toBe(false);
expect("UseAuthOnboardingOptions" in moduleExports).toBe(false);
});
});
describe("ModelOnboardingModal", () => {
describe("step structure", () => {
it("renders the AI Setup step by default with all three step indicators", async () => {