pets-oss/pets-front

Create a ViewService for views

Opened this issue · 0 comments

There might be several views in a certain scope to choose from. For example: grid, table, list, diagram.

We need a service for view management:

  • app should remember user selection in certain scope
  • view selection component should be more general and flexible, like drop-in or view wrapper in a certain scope
  • view can be restricted in some responsive screens (like non responsive tables in xs screens)
  • the consumer component should pick proper view config and only use what is available
  • data provider should be in sync with all the possible views for certain scope

Current views:

  • animal list page - animal list
  • animal details page - events list