Miles as a distance unit
Opened by @Dio77799 · Assignees: None
Claim Status & GitHub Signal
Unassigned with 0 comments. Open the workspace to inspect linked PRs before claiming or coding.
The task involves adding a new setting and updating existing functionality, which requires basic understanding of JavaScript and the repository's structure. It is labeled as a good first issue, indicating it is suitable for beginners.
What It's About
The issue is about adding a distance unit setting (miles or kilometers) to the application and ensuring that the internal data remains consistent while updating the user interface accordingly.
Why It Matters
This enhancement will improve user experience by allowing drivers who work in miles to use the application more effectively, thereby increasing its usability and appeal.
Expected Outcome
The application should allow users to select between kilometers and miles, display the correct units in various contexts, and maintain data integrity with proper conversion where necessary.
Log in to compare this issue's requirements against your profile skills. Required concepts: JavaScript, User Interface, Data Conversion, Testing, Configuration Management.
Progressive AI Hints
Hint #1 is always free and calibrated to your experience level. Extra hints unlock with coins without spoiling the full solution.
Skill-Gap Learning
No Boot.dev course directly matches your missing JavaScript gaps (JavaScript, User Interface, Data Conversion, Testing), so DevWeave won't pad with an unrelated language course.
Issue Description
Many drivers work in miles. Today distances are km, and fuel is gallons or liters.
- Add a
unidadDistanciasetting (kmormi) in Más → Ajustes. - Store km internally and convert only when showing and entering data, so old data and backups keep working.
- Update the labels (km/h, per km, km per gallon) in charts, reports, PDF and CSV.
- Add tests in
pruebas/calc.test.jsfor the conversion.
Linked Pull Requests (0)
No linked or cross-referenced pull requests detected via GitHub timeline. Check comments below for informal claims before starting.
GitHub Comments (0)
No comments on this issue yet.
Issue Troubleshooting Threads (0)
No troubleshooting threads opened for this issue yet. If you hit a test, build, or navigation blocker, post what you've tried so fellow contributors can help.
PR Verification & Rewards
Sign in and link GitHub to verify your PR against this issue and earn XP + coins.
Contribution Workflow
Track your local progress before opening a pull request on GitHub.
Repository Context
Top Repository Paths
CONTRIBUTING.md Excerpt
Contributing
Thanks for helping. A few rules keep the app small and easy to review:
- No dependencies and no build step for the web app. Plain HTML, CSS and JavaScript. The only packages live in
movil/and are used to build the Android APK. - Nothing leaves the device. No accounts, no servers, no analytics. Data stays in the browser or the phone.
- Math goes in
js/calc.jsand is tested inpruebas/calc.test.js. Every fix comes with a test that fails without it. Runnode pruebas/calc.test.jsandnode pruebas/pdf.test.jsbefore sending a pull request. - When you change files the offline mode caches, bump
VERSIONinsw.js. - Small pull requests, one change each. Say how you tested it (browser, phone or APK).
How to take an issue
- Pick one from the pinned Roadmap issue or the
good first issuelabel. - Comment that you want it. We assign it to you so two people don't do the same work.
- If you go quiet for two weeks, the issue opens up again.
- For a new idea, open a proposal with the template first.
Ideas to start with
- English version of the app (see the open translation issue).
- More currencies and fuel units.
- Scheduled task reminders in the Android app while it is closed.
Advisory PR Assistant
Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.