-
Notifications
You must be signed in to change notification settings - Fork 0
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: protected feature API #211
base: main
Are you sure you want to change the base?
Conversation
bf4d257
to
f7607cd
Compare
17767eb
to
2889380
Compare
0416047
to
46b1cfe
Compare
I think there's a possible scenario/user story where I'd select a protector feature, to show all linked, protected features, then click on a protected feature to select that and see more detail. At the moment, that would clear the protected feature query, when the selected feature ID changes. The query results might need to persist, as long as we're interacting with protected features. |
257b5a8
to
a098ae6
Compare
- a new API, `/features/{protector-feature-id}/protected-by`, which returns list of adaptation options, by feature and layer, for all features protected by `protector-feature-id`. - a new recoil selector, which runs the query with the current selected feature ID. - new recoil selectors that filter the results by RCP and protection level.
- new recoil selectors to fetch protected feature data. - a new data loader option: `dataFetcher`. Override the default API call with custom data. - inject protected feature data into asset view layers. - make protected feature layers visible after data is fetched.
A new sidebar control for adaptation options. Set the parameters for protected feature queries. Currently shares state (RCP and protection level) with the adaptation options control.
Filter the new API by RCP and protection level on the backend.
a098ae6
to
ef5f1f1
Compare
/features/{protector-feature-id}/protected-by
, which returns list of adaptation options, by feature and layer, for all features protected byprotector-feature-id
.select()
to generate queries.dataFetcher
option, a function returning a Promise that resolves to a list of feature IDs and values.Here, selecting the airport runway runs a query that returns a list of water infrastructure features, styled by the selected adaptation variable.
720p.Screen.Recording.2024-12-10.at.08.41.28.mov