api-platform / admin

A beautiful and fully-featured administration interface builder for hypermedia APIs
https://api-platform.com/docs/admin/
MIT License
481 stars 130 forks source link

Fix default theme and store #575

Closed fzaninotto closed 1 month ago

fzaninotto commented 1 month ago

Problem

The default HydraAdmin differs from react-admin in 2 ways:

  1. The default store is memoryStore instead of localStorageStore. As a consequence, filters and sort preferences aren't persisted between sessions (and aren't auditable in devtools)
  2. The inputs aren't legible in dark theme because they lack a background color

Also, it is not possible to customize the darkTheme.

Solution

Use similar defaults as react-admin

Before After
image image
Q A
Branch? main for features / current stable version branch for bug fixes
Tickets N/A
License MIT
Doc PR N/A