## Summary - standardize Filament table defaults across resources, relation managers, widgets, custom pages, and picker tables - add shared pagination profiles, calm default column visibility, explicit empty states, and session persistence on designated critical resource lists - complete Spec 125 artifacts, regression tests, and dashboard widget follow-up for lazy loading, sortable columns, and toggleable detail columns ## Verification - `docker exec tenantatlas-laravel.test-1 php artisan test --compact --filter=BaselineCompareNow` - `docker exec tenantatlas-laravel.test-1 php artisan test --compact --filter=TableStandardsBaseline` - `docker exec tenantatlas-laravel.test-1 php artisan test --compact --filter=TableDetailVisibility` - `docker exec tenantatlas-laravel.test-1 php artisan test --compact --filter=FilamentTableRiskExceptions` - full suite run completed: `2017 passed, 10 failed, 8 skipped` - manual browser QA completed on the tenant dashboard for lazy loading, sortable widget columns, toggleable hidden status columns, badges, and pagination ## Known Failures The full suite still has 10 pre-existing failures unrelated to this branch: - `Tests\\Unit\\OpsUx\\SummaryCountsNormalizerTest` - `Tests\\Feature\\BackupWithAssignmentsConsistencyTest` (2 tests) - `Tests\\Feature\\BaselineDriftEngine\\CaptureBaselineContentTest` - `Tests\\Feature\\BaselineDriftEngine\\CompareContentEvidenceTest` - `Tests\\Feature\\BaselineDriftEngine\\ResolverTest` - `Tests\\Feature\\Filament\\TenantDashboardDbOnlyTest` - `Tests\\Feature\\Operations\\ReconcileAdapterRunsJobTrackingTest` - `Tests\\Feature\\ReviewPack\\ReviewPackRbacTest` - `Tests\\Feature\\Verification\\VerificationReportRedactionTest` Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #152
3.3 KiB
3.3 KiB
Quickstart: Filament Table UX Standardization & List Consistency
Goal
Standardize production Filament list surfaces so they are calmer by default, sortable where users expect it, persistent on key resource lists, and consistent in empty states, pagination, and detail visibility.
Foundation Steps
- Document the repo table standard and review checklist in the feature artifacts.
- Confirm the audited table inventory and classify each surface by type: resource, relation manager, widget, custom page, or picker.
- Define the pagination profiles that will apply across those surface types.
- Confirm that resource-list search, sort, and filter persistence will use native Filament session persistence methods.
- Identify first-wave critical tables and mark any known query-risk columns before changing sort or search behavior.
First-Wave Implementation Steps
- Update the critical resource tables first: tenant, policy, backup set, backup schedule, provider connection, finding, and other designated high-value list surfaces.
- For each critical table, assign columns to Primary, Context, and Detail tiers and reduce default visibility to a calm working set.
- Add or refine explicit default sort behavior and searchable primary identifiers.
- Hide technical IDs and secondary timestamps by default where practical, while keeping them accessible on demand.
- Add or refine domain-specific empty states and align page-size options with the chosen pagination profile.
- Enable native persistence for search, sort, and filters on resource lists.
- Preserve existing action surfaces, badge semantics, tenancy boundaries, and authorization behavior.
Broad Rollout Steps
- Apply the same standard to remaining resources, relation managers, widgets, custom pages, and picker tables.
- Record documented exceptions for tables where relation-backed or computed columns should not become sortable or searchable.
- Revisit tables with wide layouts and move lower-value columns into detail before considering any cosmetic workaround.
- Finish with a pass that normalizes timestamp, placeholder, and ID rendering across remaining outliers.
Verification
Automated
vendor/bin/sail up -d
vendor/bin/sail artisan test --compact tests/Feature/Filament
vendor/bin/sail artisan test --compact tests/Feature/Rbac
vendor/bin/sail bin pint --dirty --format agent
Manual
- Open each first-wave critical table and verify that the default visible columns feel calmer and remain informative.
- Search, sort, and filter a resource list, refresh the page, and confirm the same state is preserved.
- Verify that empty tables or zero-result states show clear domain-specific copy and only authorized next steps.
- Confirm that long IDs and timestamps remain accessible without causing layout breakage.
- Review system pages and cross-tenant views to ensure enough visible context remains to avoid ambiguity.
- Re-check any relation-backed or computed columns that were left as documented exceptions.
Rollback
- Revert the affected table definitions and any tiny shared pagination helper introduced during the rollout.
- Remove or narrow any standardization changes that create unacceptable query cost, keeping documented exceptions in place.
- No database rollback is required unless a later implementation phase introduces unrelated schema changes, which this spec does not plan.