Skip to content

Additional filters #488

@RyanTG

Description

@RyanTG

Design ideas:

Manufacturer:

  • Contains dropdown listing all the manufacturers in our DB. We don't currently store this as a list in the DB, but this data does come with the machines endpoint. Could the list be built from that?
  • If this filter is used, then the "Machine" filter should disappear; If the Machine filter is used, then this one should disappear.
  • The API param for this is manufacturer (not by_manufacturer)

Insider Connected (individual machine):

  • Similar to the "All versions" filter, it should appear if a machine is chosen that contains ic_eligible=true
  • I think this could be a simple "with IC / ALL" buttonGroup.
  • Two API params for this: by_machine_id_ic (for grouped) and by_machine_single_id_ic

Insider Connected (location has at least one):

  • It should filter for Locations that have ic_active=true
  • I think this could be a simple "with IC / ALL" buttonGroup.
  • The API param for this is by_ic_active (boolean)

Machine Type:

  • machine_type field in the machines table. Values are ss, em, and me (mechanical)
  • I think we can have this be an "ALL / EM" buttonGroup
  • The API param for this is by_machine_type (takes em, ss, me)

Machine Year:

  • I can't really see a user wanting to filter by a single specific year, so I think the select for this would have to allow to specify a time span (either pre-determined - decades, eras? - or we let them do a slider to select a span of time).
  • We could either make the list of years ourselves (earlier machine in db to current_year) or construct the list from the machines table)
  • The API param for this is by_machine_year

Needs more design ideas and other work:

Display Type:

  • machine_display field in the machines table
  • Options are: lights, lcd, alphanumeric, cga, dmd, reels
  • I don't see a strong need for this filter. I think it would confuse users.
  • But, I did make an API param for it: by_machine_display

Accessible Adapter:

  • does not currently have a field in the database for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions