Skip to content
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

Choose a data card for a konnector #1275

Open
ptbrowne opened this issue Mar 8, 2021 · 0 comments
Open

Choose a data card for a konnector #1275

ptbrowne opened this issue Mar 8, 2021 · 0 comments

Comments

@ptbrowne
Copy link
Contributor

ptbrowne commented Mar 8, 2021

State right now

Right now, the approach to show datacards for a konnector is

  • Check permissions and see if there is a data card for it

Each doctype can be mapped to a doctype in harvest = harvest knows that for io.cozy.timeseries.geojson,
it should be display a GeoDataCard.

Questions

  • What happens when we'll have multiple permissions that have a data card (files and bills) ?
  • Should the developer of the konnector be in control of what data cards are shown for its connector ?

Solutions

  • Choose only the first permission that has a viewer
  • Have a ranking on viewers = if the konnector fetches bills and files, we only show bills (bills > files in our hypothetical ranking)
  • Show all viewers in a tab like interface
  • Manifest of the konnector could express which datacard are to be shown

Even if the manifest of the konnector could express which data card is to be shown, I still think that we should have a default behavior that makes sense without the developer of the konnector knowing about data cards (so that we do not have to go through all the manifests and add this behavior ourselves).

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

No branches or pull requests

1 participant