New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nova Relationship Selector #54

Open
chescos opened this Issue Sep 28, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@chescos

chescos commented Sep 28, 2018

Instead of automatically loading all relationship tables on the details view, relationship names are added to a select menu that enables easy and fast navigation with loading on demand.

Relationships are not automatically loaded when the details view is loaded. Instead, a relationship is only loaded when it is selected through the select menu. Only the currently selected relationship table is displayed.

This package would have two main goals:

  1. Significantly improve the loading time of the details view when the resource has 10+ relationships
  2. Improve navigation through many relationships (avoid so much scrolling)

Example:

example-gif

@dillingham

This comment has been minimized.

Collaborator

dillingham commented Sep 28, 2018

Nice idea! Would need to a table beneath the details as a separate field component

related

Related::make()->types([
    HasMany::make('Comments'),
    BelongsToMany::make('Accounts'),
    MorphMany::make('Activities'),
])

on dropdown change event change a dynamic component

<component :is="selectedComponent" :resourceName="selectedResource"></component>
@chescos

This comment has been minimized.

chescos commented Sep 28, 2018

@dillingham yes, that's exactly what I mean!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment