feat(ui): easter egg mag mode for order-of-magnitude display#127
Merged
feat(ui): easter egg mag mode for order-of-magnitude display#127
Conversation
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>
eecce22 to
512b83e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mto toggle mag mode: numeric values display as their order of magnitude (e.g.🠡3for thousands,$ 🠡3on dashboard)cellMoneyandcellDrilldownkinds; text, dates, statuses, notes, IDs are unconditionally skipped to avoid mangling phone numbers, serial numbers, etc.1.2kannotateMoneyHeadersfrom compact-ui for the green$in column headerscloses #125