whisper-money/resources/js/pages/settings
Víctor Falcón 4120e12861
refactor(ai): remove AiConsentSettings feature flag (#619)
## What

Removes the `AiConsentSettings` Laravel Pennant feature flag. The AI
consent management UI — the toggle in **Billing settings** and the
banner in **Transactions** — is now available to all users
automatically, no longer gated behind the flag.

The underlying AI consent functionality (model, controller, routes,
`User` consent methods) is unchanged; only the gate that hid its UI was
removed.

## Changes

- Delete `app/Features/AiConsentSettings.php`.
- `HandleInertiaRequests`: drop the `aiConsentSettings` shared prop and
its resolution.
- Frontend: render `AiConsentSection` and the transactions consent
banner unconditionally; drop the now-unused `aiConsentSettings` type and
`features` destructuring.
- Tests: remove the two flag-specific assertions in
`AiConsentSettingsTest` (consent-state coverage kept), update
`InertiaSharedDataTest`, and switch `FeatureEnableCommandTest` to
`CalculateBalancesOnImport` as its example feature.

## Testing

- `php artisan test` on the affected suites — 13 passed.
- `vendor/bin/pint`, `bun run format`, `bun run lint` — clean.
2026-07-01 09:47:55 +02:00
..
account.tsx feat(auth): show/hide toggle on password fields (#499) 2026-06-06 11:42:20 +02:00
accounts.tsx feat(real-estate): auto-calculate revaluation % and generate historical balances (#253) 2026-04-15 12:18:33 +00:00
appearance.tsx feat(i18n): add localization test and fix missing Spanish translations (#174) 2026-03-01 12:32:39 +00:00
automation-rules.tsx fix(settings): vertically center rows in automation rules and labels tables (#615) 2026-06-30 10:37:20 +00:00
billing.tsx refactor(ai): remove AiConsentSettings feature flag (#619) 2026-07-01 09:47:55 +02:00
categories.tsx feat: parent/child category tree (#474) 2026-06-03 19:30:12 +02:00
connections.test.tsx feat(transactions): release transaction analysis to all users (#579) 2026-06-22 16:09:09 +02:00
connections.tsx feat(banking): add Interactive Brokers sync via Flex Web Service (#581) 2026-06-23 11:39:24 +02:00
delete-account.tsx fix(account): block deletion while subscription or trial is active (#531) 2026-06-14 20:46:44 +02:00
labels.tsx fix(settings): vertically center rows in automation rules and labels tables (#615) 2026-06-30 10:37:20 +00:00
password.tsx feat(auth): show/hide toggle on password fields (#499) 2026-06-06 11:42:20 +02:00
two-factor.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00