Skip to content

fix: remove Recently Opened Databases from database switcher (#671)#673

Merged
datlechin merged 2 commits intomainfrom
fix/remove-recent-databases
Apr 11, 2026
Merged

fix: remove Recently Opened Databases from database switcher (#671)#673
datlechin merged 2 commits intomainfrom
fix/remove-recent-databases

Conversation

@datlechin
Copy link
Copy Markdown
Collaborator

Summary

Remove the "RECENT" section from the database switcher. It auto-selected recent databases by default, interfering with workflow.

Closes #671

Changes

  • Delete UserDefaults+RecentDatabases.swift (tracking infrastructure)
  • Remove recentDatabases, recentDatabaseMetadata, allDatabases, trackAccess from DatabaseSwitcherViewModel
  • Replace RECENT + ALL two-section layout with single flat filteredDatabases list
  • Remove trackAccess call on database open

Test plan

  • Open database switcher: shows flat alphabetical list, no "RECENT" section
  • Search filters correctly
  • Arrow key navigation works without jumping to a "recent" entry
  • Selecting a database works as before

Remove the RECENT section from the database switcher sheet. The feature
auto-selected recent databases by default, interfering with keyboard
navigation. The flat alphabetical list is cleaner and more predictable.

- Delete UserDefaults+RecentDatabases.swift
- Remove recentDatabases, recentDatabaseMetadata, allDatabases, trackAccess from ViewModel
- Replace RECENT + ALL sections with single flat filteredDatabases list
@datlechin datlechin merged commit a397461 into main Apr 11, 2026
2 checks passed
@datlechin datlechin deleted the fix/remove-recent-databases branch April 11, 2026 10:27
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.

Add settings to disable "Recently Opened Databases" when “Open database”

1 participant