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

Add Asset Subtypes to Asset Type Filter using Material UI #59

Closed
invisibleroads opened this issue Dec 10, 2018 · 3 comments
Closed

Add Asset Subtypes to Asset Type Filter using Material UI #59

invisibleroads opened this issue Dec 10, 2018 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@invisibleroads
Copy link
Member

invisibleroads commented Dec 10, 2018

  1. Coordinate with Salah and Roy to identify functionality for Tree React Component.
  2. Isolate tree functionality as a public CrossCompute repository.
@invisibleroads invisibleroads added the enhancement New feature or request label Dec 10, 2018
@invisibleroads invisibleroads added this to the Deploy 0.1 milestone Dec 10, 2018
@invisibleroads
Copy link
Member Author

invisibleroads commented Jan 15, 2019

@poguez thanks for creating a Tree Component prototype in https://gitlab.com/poguez/react-components.

Would it be possible to prototype a similar component but using the Material UI framework?

  • Consider name ListFilter
  • No checkboxes (as Mayra originally wrote it)
  • Use ListItem SELECTED to indicate multiple selected items
  • Accept these input properties (for mapStateToProps): this.props.rows, this.props.selectedIds
  • Register these event hooks (for mapDispatchToProps): this.props.onChange(selectedIds)

Prototype 1

  • Render top level rows only (no children)
  • Use ListItem SELECTED to indicate multiple selected items
  • Accept these input properties (for mapStateToProps): this.props.rows, this.props.selectedIds
  • Register these event hooks (for mapDispatchToProps): this.props.onChange(selectedIds) calls onChange with updated selectedIds

Prototype 2

  • Implement collapsible children
rows = [
  {id: '0', name: 'Station'},
  {id: '1', name: 'Substation', children: [
    {id: '1.1', name: 'Transmission'},
    {id: '1.2', name: 'Distribution'},
    {id: '1.X', name: 'Other'},
  ]},
  {id: '2', name: 'Power Quality', children: [
    {id: '2.1', name: 'Capacitor'},
    {id: '2.2', name: 'Regulator'},
    {id: '2.3', name: 'Booster'},
    {id: '2.X', name: 'Other'},
  ]},
  {id: '3', name: 'Switch', children: [
    {id: '3.1', name: 'Fuse'},
    {id: '3.2', name: 'Breaker'},
    {id: '3.3', name: 'Recloser'},
    {id: '3.4', name: 'Interrupter'},
    {id: '3.5', name: 'Sectionalizer'},
    {id: '3.6', name: 'Relay'},
    {id: '3.X', name: 'Other'},
  ]},
  {id: '4', name: 'Transformer', children: [
    {id: '4.1', name: 'Distribution'},
    {id: '4.X', name: 'Other'},
  ]},
  {id: '5', name: 'Meter', children: [
    {id: '5.1', name: 'Residential'},
    {id: '5.2', name: 'Commercial'},
    {id: '5.3', name: 'Industrial'},
    {id: '5.X', name: 'Other'},
  ]},
  {id: '6', name: 'Line'},
  {id: '7', name: 'Pole'},
  {id: '8', name: 'Busbar'},
  {id: '9', name: 'Control', children: [
    {id: '9.1', name: 'PLC'},
    {id: '9.2', name: 'Microcontroller'},
    {id: '9.X', name: 'Other'},
  ]},
  {id: 'X', name: 'Other'},
]
selectedIds = ['6']

@invisibleroads invisibleroads changed the title Isolate Tree React Component Prototype Tree React Component using Material UI Jan 15, 2019
@invisibleroads
Copy link
Member Author

The Material UI Tree React Component can be an open source repository in your team's account.

@invisibleroads invisibleroads changed the title Prototype Tree React Component using Material UI Prototype Filter React Component using Material UI Jan 15, 2019
@invisibleroads invisibleroads changed the title Prototype Filter React Component using Material UI Prototype Tree React Component using Material UI Jan 15, 2019
@invisibleroads invisibleroads changed the title Prototype Tree React Component using Material UI Add Asset Subtypes to Asset Type Filter using Material UI Apr 22, 2019
@invisibleroads invisibleroads removed this from the Deploy 0.1 milestone Apr 22, 2019
@invisibleroads invisibleroads added this to the Deploy 0.2 milestone Apr 22, 2019
@invisibleroads
Copy link
Member Author

Duplicate of #96

@invisibleroads invisibleroads marked this as a duplicate of #96 Sep 13, 2019
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