Commit Graph
98 Commits
Author SHA1 Message Date
3937109edb feat: Replace percent button with Pi button, update logic and tests
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
98fdddac5d fix: Correct negative zero logic for +/- and update test
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
73cd819e94 fix: Convert scientific notation to decimal for test input
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner abe931d61d style: Improve readability of edge case numbers in tests 2026-06-13 16:13:48 -06:00
0bf1220c62 test: Add extensive edge case tests and expand number generation
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
e32b274e5c fix: Update checkDisplay logic and backspace/trig test assertions
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
2088081bb8 test: Improve output validation by spying on raw display numbers
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
2754d4f52a test: Improve display truncation handling for large numbers
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
04efe1b4d9 fix: Adjust test stringWidth mock to prevent truncation issues
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
728687ab37 fix: Adjust test stringWidth mock for display precision
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
77288c92af fix: Prevent displayOutput from clearing state on Infinity/NaN
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
e8a361210d test: Correct infinity string comparison in checkDisplay
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
255984e52f fix: Apply negation to current number when new number is pressed
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
20ce84ed89 test: Replace static tests with comprehensive programmatic test suite
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
31531ff118 fix: Increase test tolerance for float comparisons
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
37867a095b fix: Improve display comparison for floating point and truncation
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner 83a50fa06a Revert to calc before tests 2026-06-13 16:13:48 -06:00
ab8f7e78b8 fix: Round floats for improved precision in fixFloat
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
6fc30311f3 fix: Correct process mock and use buttonPress for multi-char commands
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
a59b92572b fix: Reset angle mode on AC and parse float for square root
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
2c91af6759 fix: Parse numeric input for scientific ops and expose operators to tests
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner 6ae1b173bd feat: Update logging endpoint and add buzz on success 2026-06-13 16:13:48 -06:00
f94d5c2105 fix: Capture correct display output in g.drawString mock
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
913156ca3c fix: Expose buttonPress function for testing
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
a5adeb379c fix: Mock FontDylex7x13 module in Node.js test runner
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
281187fd91 test: Add full simulation tests for calculator
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner f5abf6eb48 test: Add calculator tests 2026-06-13 16:13:48 -06:00
810e43bcfd feat: Add HTTP POST for calculation logs with error display
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
1c511d3441 fix: Correct expression display on repeated '=' press
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
3b66810ba1 feat: Add send function to log calculation history and result
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
ebb1550fc7 fix: Relax scientific notation display trigger
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner 6b7285a017 refactor: Remove unnecessary number display formatting 2026-06-13 16:13:48 -06:00
85185dbbaa fix: Replace regex with manual thousands separator
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
5cb5ee604b fix: Ensure thousands separators display without premature scientific notation
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner e57e09eb17 style: Use comma as thousands separator 2026-06-13 16:13:48 -06:00
f3fdf4e5ab feat: Dynamically adjust result display width based on font
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner 2106a4298e refactor: Use Dylex7x13 font for calculator UI 2026-06-13 16:13:48 -06:00
ca2265e8aa feat: Add thousands separator to calculator output
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
b86f6720bc fix: Correctly parse leading zeros for decimal input
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
8c7c488967 refactor: Simplify math operations, remove custom precision functions
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
3507d8938e fix: Parse scientific notation in getIntWithPrecision
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
9738c76140 fix: Parse numbers as decimal in getIntWithPrecision
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
f19a77d06f fix: Dynamically calculate precision for scientific notation
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner 739b337135 fix: Adjust precision for scientific notation display 2026-06-13 16:13:48 -06:00
68aa187f71 fix: Prevent extra space in scientific notation exponent
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
b369cb0c3b fix: Fix Math.log10 not found error using Math.log equivalent
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
212cbdb9b7 fix: Implement toExponential polyfill for broader compatibility
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
a714c57b2b fix: Display small and large numbers in scientific notation
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
6ac882699a fix: Correct floating point precision for trig functions
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner 9b48f7342a fix: Set default angle mode to degrees and simplify error messages 2026-06-13 16:13:48 -06:00
8b5ac36284 feat: Add angle mode toggle and apply to trig functions
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
3c18e0326d feat: Add scientific operators page (trig, log, exp)
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
2400ebd145 style: Set button text color to black
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner 22e36c447d Use load() instead of Bangle.load() for calculator
see: https://www.espruino.com/ReferenceBANGLEJS2#l_Bangle_load
2026-06-13 16:13:48 -06:00
37de23ecfe feat: Launch calculator app via menu command
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
2a9f8ce857 feat: Add 1/x inversion function to operators menu
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
a113e10ae5 fix: Prevent leading zero when backspacing a decimal
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner 197d393553 chore: Update square root operator display to 'sqrt' 2026-06-13 16:13:48 -06:00
8fd4b6e45a feat: Add square and square root functions to calculator
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
36120b877f feat: Add backspace button to keypad
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 16:13:48 -06:00
tannerandTanner 69330e03cb feat: Add calculator app 2026-06-13 16:13:48 -06:00
tanner 8275abdb57 Swap stop watch positions 2026-03-12 12:58:52 -06:00
tanner 1c433fc56b Display both feels like and outdoor temperatures 2026-03-12 12:52:51 -06:00
tanner 14bda5c29f Use clearInterval to clear the stopwatch interval 2026-03-10 16:58:57 -06:00
tanner ea58f2101f Increase buzz duration 2026-03-10 16:54:44 -06:00
tannerandaider 07bb582ddd feat: Initialize buzz state for stopwatches
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-03-10 16:22:44 -06:00
tannerandaider 6d965dd016 feat: Add timed buzzing alerts to stopwatches
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-03-10 16:22:18 -06:00
tanner 04511d029c Disable submenu logging 2026-03-09 14:15:18 -06:00
tannerandaider d2d89b361e fix: Load default stopwatch data if file is missing
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-03-09 14:12:12 -06:00
tanner 0b4d8d84c4 refactor: Improve stopwatch management and display 2026-03-09 14:12:06 -06:00
tannerandaider dc44ac9910 fix: Ensure stopwatches display when paused and on app load
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-03-09 13:40:19 -06:00
tannerandaider f96bddf0ba feat: Implement pause and stop functions for stopwatches
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-03-09 13:29:58 -06:00
tanner dda3130c56 Begin writing stop watch 2026-03-09 13:26:41 -06:00
tanner 9091d7a783 Remove old grid code 2026-03-09 12:02:39 -06:00
tanner 4a4be26977 Remove Anton font, unindent 1 level 2026-03-09 11:55:37 -06:00
tanner b4c6f1b0c8 Add UTC time to watch face 2026-02-25 19:44:58 -07:00
tanner 0f343e753f Dont cancel message timeout 2024-09-10 15:42:51 -06:00
tanner 6bd1f2f05b Add pull menu command, token auth to bangle requests 2024-09-09 13:59:01 -06:00
tanner fc8894015a Replace messagegui.app.js with updated app.js 2024-09-09 12:42:52 -06:00
tanner 0ba99a590a Apply my changes to messagegui app:
- skip the entire message display UI, go directly to
  showMessageScroller()
- modify message scroller font and alignment
- remove extra lines and < Back button
- make tapping the header open message settings
2024-09-09 12:38:17 -06:00
tanner 6167de7456 Add new messagegui app.js, indent 2024-09-09 12:16:55 -06:00
tanner eccca550ef Add quad menu, ignore more messages 2024-09-07 11:49:51 -06:00
tanner d5158eee54 Add 2x2 menu 2024-03-03 21:51:30 -07:00
tanner a8e2c2e990 Optimize message display 2023-06-07 11:18:59 -06:00
tanner 87f93e10d1 Make top edge repeat grid selection 2023-06-06 12:09:02 -06:00
tanner 9edab1f230 Move rank to middle, track edge direction 2023-06-06 12:01:00 -06:00
tanner f15fd9cf20 Fetch grid on load 2023-06-05 19:16:29 -06:00
tanner c5b9343c9a Begin prototype of grid 2023-06-05 18:37:47 -06:00
tanner 98dd426e8a Remove message buttons, make font bigger 2023-04-08 18:44:21 -06:00
tanner 0073735647 Filter out !chat commands 2023-03-22 10:58:36 -06:00
tanner f839c18eee Rename files 2023-02-24 15:29:34 -07:00
tanner 13d9596978 Delete all new Timer messages 2023-02-23 18:30:27 -07:00
tanner 443921c30e Delete Timer messages 2023-02-23 18:21:45 -07:00
tanner 7fadeabf33 Fix indentation 2023-02-23 18:06:25 -07:00
tanner 9e45acb78e Import messagegui 2023-02-23 18:05:12 -07:00
tanner 0c7fcabf24 Display outside temperature 2023-01-10 19:17:09 -07:00
tanner 8356481b27 GET status and POST swipes to home controller 2023-01-10 12:06:11 -07:00
tanner 49485c73bc Initial commit 2023-01-10 12:03:25 -07:00