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

Multiple fix and improvement, mainly using correct query to get bike goal trips #231

Merged
merged 16 commits into from
Nov 3, 2022

Conversation

JF-Cozy
Copy link
Contributor

@JF-Cozy JF-Cozy commented Nov 3, 2022

Voir le changelog ici, on corrige un multitude de souci

### ✨ Features

* Use correct query to get bike goal trips
* Relies on year in url, not on date from provider
* Filter bike goal trips according to the year selected
* Remove back arrow on desktop for goal editing

### 🐛 Bug Fixes

* Help tooltip placement when editing a recurrence
* Use correct bike mode in query to get commute timeseries
* Redirection from "/" route was not working properly

### 🔧 Tech

* Add ts and tsx file to jest config and lint

@bundlemon
Copy link

bundlemon bot commented Nov 3, 2022

BundleMon

Files updated (2)
Status Path Size Limits
app/coachco2.(hash).js
46.09KB (+122B +0.26%) -
vendors/coachco2.(hash).js
672.63KB (-109B -0.02%) -
Unchanged files (2)
Status Path Size Limits
vendors-coachco2.(hash).(hash).min.css
32.46KB -
app-coachco2.(hash).min.css
354B -

Total files change +13B 0%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

src/queries/queries.js Show resolved Hide resolved
src/locales/fr.json Show resolved Hide resolved
Because of the way couch works, using elemMatch means that we don't rely on the index and so we browse the whole database. This is suboptimal. But it is a necessary discriminant.
Another point, we delete the date selector here. This made sense if we had optimal queries, and then execute a query by year, when the year changes on the front.
Finally, to know the dates to select, we have to go through all the trips anyway.
With Paul we decided to make only one query and then to sort the data on the front.
since we already have it in the parent route
we also relies on year url param and not on date provider
we now rely on url to get the year
isGoalCompleted and countDaysOrDaysToReach
@JF-Cozy JF-Cozy merged commit b92921a into master Nov 3, 2022
@JF-Cozy JF-Cozy deleted the feat/certificate branch November 3, 2022 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants