Skip to content

feat(ui): easter egg mag mode for order-of-magnitude display#127

Merged
cpcloud merged 6 commits intomainfrom
feat/mag-mode-125
Feb 12, 2026
Merged

feat(ui): easter egg mag mode for order-of-magnitude display#127
cpcloud merged 6 commits intomainfrom
feat/mag-mode-125

Conversation

@cpcloud
Copy link
Copy Markdown
Collaborator

@cpcloud cpcloud commented Feb 12, 2026

Summary

  • Press m to toggle mag mode: numeric values display as their order of magnitude (e.g. 🠡3 for thousands, $ 🠡3 on dashboard)
  • Mag mode applies only to cellMoney and cellDrilldown kinds; text, dates, statuses, notes, IDs are unconditionally skipped to avoid mangling phone numbers, serial numbers, etc.
  • Works in both nav and edit modes; hidden easter egg (not in help overlay)
  • Mag and compact-money transforms are mutually exclusive in table views: mag replaces the compact display when active, since mag can't parse abbreviated values like 1.2k
  • Reuses annotateMoneyHeaders from compact-ui for the green $ in column headers

closes #125

cpcloud and others added 6 commits February 12, 2026 17:52
Press `m` to toggle mag mode: all numbers are replaced with their
order of magnitude (floor of log10). Dollar signs and other units
are preserved, so ,234.23 becomes $🠡 3.

Applies to table cells and dashboard spending/budget figures.

closes #125

Co-authored-by: Cursor <cursoragent@cursor.com>
- Format: `$ 🠡3` (space after unit, number flush with arrow)
- Skip cellReadonly (IDs, ages, counts) -- only transform money
  and drilldown cells

Co-authored-by: Cursor <cursoragent@cursor.com>
Table cells show bare magnitudes (e.g. 🠡3) while money column
headers get a green "$" suffix. Dashboard spending lines retain
the inline "$ 🠡3" since they have no column header.

Co-authored-by: Cursor <cursoragent@cursor.com>
Money columns now always display a green "$" in the header and bare
numbers (no $ prefix) in cell values. FormatCentsBare formats cents
without the dollar sign for table cells; FormatCents (with $) is
still used in forms and the dashboard spending line.

Co-authored-by: Cursor <cursoragent@cursor.com>
cellText covers phone numbers, serial numbers, model numbers, and other
identifiers that happen to look numeric. Previously magFormat would
attempt to parse them and convert e.g. "5551234567" into magnitude
notation. Now only cellMoney and cellDrilldown are transformed.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Remove duplicate annotateMoneyHeaders from mag.go (compact.go has it)
- Remove FormatCentsBare; cells keep $ prefix from FormatCents
- Make compact and mag transforms mutually exclusive in tableView
  (mag can't parse compacted values like "1.2k")
- Update tests to expect $ prefix in cell values

Co-authored-by: Cursor <cursoragent@cursor.com>
@cpcloud cpcloud merged commit 86de481 into main Feb 12, 2026
9 checks passed
@cpcloud cpcloud deleted the feat/mag-mode-125 branch February 12, 2026 23:23
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.

feat(ui): easter egg "mag" mode for magnitude notation

1 participant