-
Notifications
You must be signed in to change notification settings - Fork 20
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
Filtering branch #21
base: main
Are you sure you want to change the base?
Filtering branch #21
Conversation
alexminden
commented
Jul 10, 2022
- API request to filter the tags added
Missing:
|
Left to do:
|
server/server.jsx
Outdated
data.append('c3', position.c3.toString()); | ||
data.append('c4', position.c4.toString()); | ||
const result = await myMizuClient.post( | ||
"/api/taps/search?api_key=56b13329-6163-4884-afc8-b6839cd3f618&l=en&v=1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexminden could you change this to use config.apiKey?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for noticing this issue, I have updated the url (fbb2c1a)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry there are now some big conflicts with the main branch , but hopefully not too bad to resolve. Main point will be updating the existing endpoints for getting refill spot data, to apply the filters like you do in the added /filters-params
endpoint.
Also, I want to make the filters dialog into a react component!
function menuButtonUi() { | ||
// Button UI | ||
const divButton = document.createElement("div"); | ||
divButton.id = "filter"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to convert this file into a react component (e.g. https://github.com/mymizu/mymizu-web/blob/main/src/components/Metrics.jsx) , and seperate the styling out to a css file if possible!
Please let me know if I can explain how to approach !
@@ -45,6 +46,38 @@ app.get("/get-initial-markers", async (req, res) => { | |||
} | |||
}); | |||
|
|||
app.post("/filters-params", async (req, res) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when this get's merged, we'll need to merge with/resolve conflict with existing get-initial-taps
and get-marker-moving-map
endpoints!