Open kimlisa opened 5 years ago
Refer: https://github.com/hwsc-org/hwsc-app-gateway-svc/issues/9#issuecomment-433744526
Contains all states related to filters and methods that manipulate these states.
hard coded Used in a dropdown menu to display to users the type of filters that are available and can choose from.
hard coded
Filter types: publishers, call types, ground types, regions, oceans, sensor, sample rates, geographic coordinate, date
retrieved from backend Used to generate a list of selectable, available publishers by their firstName and lastName. Sortable by firstName or lastName.
retrieved from backend
firstName
lastName
interface Publisher { firstName: string; lastName: string; }
retrieved from backend Used to generate a list of selectable, available call types, i.e: Herd, Friend, Feed Point, Dependency Migration.
retrieved from backend Used to generate a list of selectable ground types, i.e: Social Ground, Atlas, Breeding Migrating.
retrieved from backend Used to generate a list of selectable, available regions.
interface Region { city: string; country: string; }
hard coded Used to generate a list of selectable oceans.
Oceans: Pacific, Atlantic, Indian, Southern, and Arctic.
retrieved from backend Used to generate a list of selectable, available sensor by their tag and name. Sortable by tag or name.
tag
name
interface Sensor { tag: string; name: string; }
some state
for whatever you need
some block quote so i can get css
Refer: https://github.com/hwsc-org/hwsc-app-gateway-svc/issues/9#issuecomment-433744526
Filter Store
Contains all states related to filters and methods that manipulate these states.
States
filters: array of hardcoded strings
hard coded
Used in a dropdown menu to display to users the type of filters that are available and can choose from.Filter types: publishers, call types, ground types, regions, oceans, sensor, sample rates, geographic coordinate, date
publishers: array of type Publisher
retrieved from backend
Used to generate a list of selectable, available publishers by their firstName and lastName. Sortable byfirstName
orlastName
.callTypes: array of strings
retrieved from backend
Used to generate a list of selectable, available call types, i.e: Herd, Friend, Feed Point, Dependency Migration.groundTypes: array of strings
retrieved from backend
Used to generate a list of selectable ground types, i.e: Social Ground, Atlas, Breeding Migrating.---- [NEEDS MORE INFO] regions: array of strings || array of type Region
retrieved from backend
Used to generate a list of selectable, available regions.oceans: array of strings
hard coded
Used to generate a list of selectable oceans.Oceans: Pacific, Atlantic, Indian, Southern, and Arctic.
sensors: array of type Sensor
retrieved from backend
Used to generate a list of selectable, available sensor by theirtag
andname
. Sortable bytag
orname
.Getters
Mutations
SET_PUBLISHERS
Actions
Set actions should follow the same pattern below:
some state
is not setfor whatever you need
.some state
Sets
5 hashes
6 hashes