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

feat(component-gallery): ComponentPicker; ...List; ...ListItem [2h] #19

Open
11 tasks
mesqueeb opened this issue Sep 9, 2020 · 0 comments
Open
11 tasks
Labels
enhancement New feature or request
Milestone

Comments

@mesqueeb
Copy link
Member

mesqueeb commented Sep 9, 2020

ComponentPicker

  • create a new ComponentPicker.vue component
  • extract the logic of ComponentPickerGrid so the "grid" is only the UI that depends on props
  • make ComponentPicker use ComponentPickerGrid based on a prop called "kind" set to kind: 'grid'

ComponentPickerList

the ComponentPickerList should be a way simpler solution than the grid that looks something like this (more on this down below):

image

  • add a new ComponentPickerList.vue component
  • make ComponentPicker use ComponentPickerList based on a prop called "kind" set to kind: 'list'
  • A list should exist out of v-for of the sub component: ComponentPickerListItem.vue (also to be made)

ComponentPickerListItem

  • should receive a single filePath: string prop
  • it should look very simple like the example screenshot above
  • it should have a hover color
  • based on the filePath the list item should retrieve the vue-docgen object (like ApiCards do) and it should extract these fields from that object: (1) the component "name" field, (2) the component "description" field.
  • use the name and description to render the list item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants