Files
accounted/lib
Jakob Wennberg e13a450e21 chore: drop dead SPAR-reading code (#350)
We only request CompanyRoles from TIC enrichment (confirmed in
fetchAndStoreEnrichment), so enrichmentData.spar is never populated —
the address pre-fill paths in WelcomeOnboarding and createCompanyFromTicRole
were dead branches. Drop them so future readers don't wonder why code
looks for SPAR when we never request it.

- WelcomeOnboarding: remove the `loadSparAddress` useEffect and the
  isLoading spinner it gated. The server-side onboarding page already
  handles the auth redirect, so the client-side auth check in the
  effect was redundant. Also drops unused imports (useEffect,
  createClient, Loader2) and the `isLoading` state.
- createCompanyFromTicRole: remove the SPAR fallback in address
  resolution. Keep the extension_data row lookup — it's still needed
  for the one-time-use delete after successful provisioning.

If TIC enables SPAR/Address later AND we decide to use it for address
pre-fill, the read code lives in git history and we can restore it
surgically alongside re-adding 'SPAR'/'Address' to the request array.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 16:55:07 +02:00
..
2026-04-15 20:55:29 +02:00
2026-04-15 11:17:39 +02:00
2026-03-21 00:47:54 +01:00
2026-02-24 16:06:36 +01:00
2026-04-09 16:22:51 +02:00
2026-04-21 21:39:57 +02:00
2026-04-20 21:03:23 +02:00
2026-04-15 11:17:39 +02:00
2026-02-24 10:02:13 +01:00
2026-04-09 16:22:51 +02:00