Skip to content

Fix Custom Fields Manager tab persistence bug#89

Merged
roncodes merged 1 commit intofleetbase:dev-v0.3.8from
valentinMERCIER:fix/custom-fields-manager-tab-persistence
Oct 30, 2025
Merged

Fix Custom Fields Manager tab persistence bug#89
roncodes merged 1 commit intofleetbase:dev-v0.3.8from
valentinMERCIER:fix/custom-fields-manager-tab-persistence

Conversation

@valentinMERCIER
Copy link
Contributor

Summary

Fixes the issue where custom fields created for tabs other than the first tab (Driver) disappear after navigating
away and returning to the Custom Fields Manager.

Problem

  • Custom fields display correctly for the first tab (Driver)
  • Custom fields vanish for all other tabs (Vehicle, Contact, Vendor, Place, Fleet, Issue, Fuel Report)
  • API calls return correct data but component state management fails
  • TabNavigation enhanced objects couldn't be matched to original subjects

Solution

  • Fix TabNavigation integration with enhanced tab objects
  • Add cache restoration method for navigation persistence
  • Simplify subject matching to use model property only
  • Add force reload parameters for delete operations

Testing

  • ✅ All tabs now load custom fields correctly on first visit
  • ✅ Custom fields persist across navigation
  • ✅ Tab switching works reliably
  • ✅ Create/delete operations work on all tabs

Changes

  • Enhanced #updateSubject method with better object matching
  • Added restoreFromCache() method for cached data restoration
  • Simplified onTabChange action with empty group checking
  • Added force reload for delete operations

Fixes fleetbase/fleetops#173

- Fix TabNavigation integration with enhanced tab objects
- Add cache restoration for navigation persistence
- Simplify #updateSubject method to match by model property only
- Add force reload parameters for delete operations
- Remove complex object identity matching that caused failures

Fixes fleetbase/fleetops#173

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@roncodes roncodes changed the base branch from main to dev-v0.3.8 October 30, 2025 04:29
@roncodes roncodes merged commit e2eff51 into fleetbase:dev-v0.3.8 Oct 30, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Fields Manager only displays fields correctly for the first tab - fields disappear for other tabs after navigation

2 participants