I'll add a percentage-to-grade converter and a "Quick Marks" calculator that takes marks across subjects plus a total and outputs both percentage and GPA. Let me explore the current files quickly and plan the changes.
Good. Now I'll add (1) a percentage-to-grade converter with 3 standard scale presets, (2) a "Quick Marks" calculator that takes multiple subjects with marks + total and returns both percentage and GPA, and (3) enhance the existing course row to support a percentage input that auto-converts to a letter grade.
Now let me create the new components: QuickMarks (multi-subject marks calculator) and enhance the SemesterCard so the course row can optionally take marks directly.
Now let me also extend the existing SemesterCard so each course row can accept a percentage that auto-fills the letter grade. I'll add a small mode toggle on each row.
Expected — I need to wire the scale through App and add a third tab. Let me also add a scale selector near the top.
Now let me add the third tab, the scale selector, and pass the scale down to SemesterCard.
Stale cache — let me build to get the fresh errors.
Build is clean. The fresh tab uses QuickMarks and setScale (via the new scale selector), and PERCENTAGE_SCALES powers both the selector and the quick-marks internal scale. Let me also bump the page title to mention the new feature.
Build succeeds. Here's what I added:
1. Percentage → Grade converter (percentageToGrade in gradeLogic.ts)
- Three standard presets, switchable anywhere in the app:
- US Standard — full A+/A/A− through F, mapped to 4.0 down to 0.0
- Indian Universities — O/A+/A/B+/B/C/P/F (10-point system)
- Simple 4-band — quick A/B/C/D/F
- A global scale selector sits in the tab bar and drives the conversion everywhere it appears.
2. Per-course percentage shortcut in My Ledger
- Every course row now has a
%? button next to the grade selector. Click it to swap the letter-grade dropdown for a percentage input — type any number (e.g. 87) and the letter grade auto-fills based on the active scale.
3. New "📝 Quick Marks" tab (QuickMarks component)
- A dedicated multi-subject marks calculator: list subjects with name, obtained marks, total marks, and credits.
- Live per-subject percentage, letter grade and a colored bar.
- A mini visual scale ruler at the top showing where each letter band starts.
- Two big result cards:
- Overall Percentage (with letter grade equivalent)
- Overall GPA (weighted by credits) (with the same honors classification used in the ledger)
- A full subject breakdown table at the bottom for review.
The percentage/GPA figures are computed in real time as you type, and the existing My Ledger, What-If Mode, stat strip and CGPA gauge all continue to work as before. Want me to also add a "send these quick-marks into My Ledger" button so percentage entries can be promoted into proper credit-bearing courses?
Files built: src/gradeLogic.ts, src/components/QuickMarks.tsx, src/components/SemesterCard.tsx, src/App.tsx, index.html