DWDevWeave
CommunitiesDiscoverHelp ForumFeaturesWhy DevWeaveAI & Verification
Log inGet started
Back to Issue Discovery
Dio77799/ruta-neta #3openJavaScriptJavaScript & TypeScript

Miles as a distance unit

Opened by @Dio77799 · Assignees: None

View on GitHub
enhancementgood first issue

Claim Status & GitHub Signal

Unassigned with 0 comments. Open the workspace to inspect linked PRs before claiming or coding.

AI Issue Assessment · OpenAI Fallback
3.0 / 10 · 3–4 · Beginner

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.

Skill Match Breakdown

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.

Log in to receive your free level-adapted Hint #1 grounded in this repository's files.

Skill-Gap Learning

Gap-Targeted

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.

Browse Boot.dev Catalog

Issue Description

Many drivers work in miles. Today distances are km, and fuel is gallons or liters.

  • Add a unidadDistancia setting (km or mi) 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.js for 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.

Peer Help Forum · Dio77799/ruta-neta #3

Issue Troubleshooting Threads (0)

Ask Peers for Help

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.

Sign In

Contribution Workflow

Track your local progress before opening a pull request on GitHub.

Repository Context

Top Repository Paths

[dir] .github
[dir] .github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE/1-idea.yml
.github/ISSUE_TEMPLATE/2-bug.yml
.github/ISSUE_TEMPLATE/config.yml
.github/PULL_REQUEST_TEMPLATE.md
[dir] .github/workflows
.github/workflows/android.yml
.gitignore
CONTRIBUTING.md
GUIA_PUBLICACION.md
LICENSE
README.md
[dir] css
css/app.css
[dir] icons
icons/icon-192.png
icons/icon-512.png
icons/icon.svg
icons/maskable-512.png
icons/maskable.svg
index.html
iniciar.bat
iniciar.sh

CONTRIBUTING.md Excerpt

Contributing

Thanks for helping. A few rules keep the app small and easy to review:

  1. 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.
  2. Nothing leaves the device. No accounts, no servers, no analytics. Data stays in the browser or the phone.
  3. Math goes in js/calc.js and is tested in pruebas/calc.test.js. Every fix comes with a test that fails without it. Run node pruebas/calc.test.js and node pruebas/pdf.test.js before sending a pull request.
  4. When you change files the offline mode caches, bump VERSION in sw.js.
  5. Small pull requests, one change each. Say how you tested it (browser, phone or APK).

How to take an issue

  1. Pick one from the pinned Roadmap issue or the good first issue label.
  2. Comment that you want it. We assign it to you so two people don't do the same work.
  3. If you go quiet for two weeks, the issue opens up again.
  4. 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.