Enhanced Monthly chart to display cumulative and monthly data via UI toggle. Addresses issue #5.#7
Conversation
…toggle (code and screenshots)
…/antamy/wheeler into feature/add-chart-monthly-toggle
|
● Pull Request #7 Evaluation Title: Enhanced Monthly chart to display cumulative and monthly data via UI toggle Status: OPEN | Author: antamy (aroby) Summary: Adds a cumulative/monthly toggle to the Monthly page chart, allowing users to switch between viewing cumulative gains over time and monthly gains. Changes Overview Files Modified:
Code Quality Assessment Strengths:
Technical Implementation:
Minor Concerns:
Recommendation: APPROVE with minor suggestions This is a well-executed enhancement that:
Optional improvements for follow-up:
The PR is ready to merge as-is, with the minor improvements being nice-to-haves rather than blockers. |
|
I appreciate this new feature! Seeing results by monthly and cumulative over time is a nice improvement. Thanks for contributing! I'm heading out of town on PTO tomorrow. Mind if we merge when I get back? |
Sure, that's fine. I'll look at the follow-ups in the meantime. This is the first time I've used git, Go and Claude plus my development experience was many years ago and more backend than frontend, so I'm quickly getting up to speed! Enjoy your time off. |
|
Hi, when can we merge my contribution? I’m not entirely sure what I need to do …
From: MarkT1065 ***@***.***>
Sent: Monday, October 13, 2025 1:31 AM
To: MarkT1065/wheeler ***@***.***>
Cc: Anthony R. Roby ***@***.***>; Author ***@***.***>
Subject: Re: [MarkT1065/wheeler] Enhanced Monthly chart to display cumulative and monthly data via UI toggle. Addresses issue #5. (PR #7)
[https://avatars.githubusercontent.com/u/228252352?s=20&v=4]MarkT1065 left a comment (MarkT1065/wheeler#7)<#7 (comment)>
I appreciate this new feature! Seeing results by monthly and cumulative over time is a nice improvement. Thanks for contributing! I'm heading out of town on PTO tomorrow. Mind if we merge when I get back?
—
Reply to this email directly, view it on GitHub<#7 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABUGFTTPTOYZ4VZ4W22TMKD3XNBJNAVCNFSM6AAAAACI56X4XKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOJWGA2DIMRSGU>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
|
On the way back home … I’ll be available in a day or two
…On Thu, Oct 23, 2025 at 5:56 PM aroby ***@***.***> wrote:
*antamy* left a comment (MarkT1065/wheeler#7)
<#7 (comment)>
Hi, when can we merge my contribution? I’m not entirely sure what I need
to do …
From: MarkT1065 ***@***.***>
Sent: Monday, October 13, 2025 1:31 AM
To: MarkT1065/wheeler ***@***.***>
Cc: Anthony R. Roby ***@***.***>; Author ***@***.***>
Subject: Re: [MarkT1065/wheeler] Enhanced Monthly chart to display
cumulative and monthly data via UI toggle. Addresses issue #5. (PR #7)
[https://avatars.githubusercontent.com/u/228252352?s=20&v=4]MarkT1065
left a comment (MarkT1065/wheeler#7)<
#7 (comment)>
I appreciate this new feature! Seeing results by monthly and cumulative
over time is a nice improvement. Thanks for contributing! I'm heading out
of town on PTO tomorrow. Mind if we merge when I get back?
—
Reply to this email directly, view it on GitHub<
#7 (comment)>, or
unsubscribe<
https://github.com/notifications/unsubscribe-auth/ABUGFTTPTOYZ4VZ4W22TMKD3XNBJNAVCNFSM6AAAAACI56X4XKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOJWGA2DIMRSGU>.
You are receiving this because you authored the thread.Message ID:
***@***.******@***.***>>
—
Reply to this email directly, view it on GitHub
<#7 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BWNNVQBTI64OWYBQELWCO4L3ZD3EVAVCNFSM6AAAAACI56X4XKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMZXG44TQMJWHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
@antamy the code LGTM. Thanks for the contribution! I left 2 comments above (fixing a 404 on the readme and reverting the db). I can merge after those two fixes. |
There was a problem hiding this comment.
were any changes were made to this or was this the result of test runs?
we probably don't need to check in changes to this database instance except for schema changes. i don't really have this written in any contributors guide because this project has been single author to date. I really appreciate your Pull Request!
There was a problem hiding this comment.
No changes, not sure why this was included. I figured out how to remove it.
There was a problem hiding this comment.
New screenshots look good. The link on the README is to the old screenshot, so it would 404 now.
Claude didn't find that in review. I noticed it looking at your branch in github. so much for the AI overlords? :P
There was a problem hiding this comment.
Good catch. I decided to remove the two screenshots and just have one, since both of them didn't really add anything to the README. I did update the README to address a spelling mistake.
|
LGTM. squashing and merging. |
|
@antamy thank you for this contribution! |
…toggle. Addresses issue MarkT1065#5. (MarkT1065#7) * Enhanced Monthly chart to display cumulative and monthly data via UI toggle * Enhanced Monthly chart to display cumulative and monthly data via UI toggle (code and screenshots) * Added screenshots * Update README.md, remove previous screenshots and add new screenshot * Remove test database from tracking and add to .gitignore
The original implementation displayed a cumulative gains chart by month. This enhancement adds a cumulative / monthly button group to the UI so that the chart either displays cumulative gains or gains by month. Graph and axis titles have been updated accordingly.
In addition, code that deals with the Totals pane at the top of the page has been refactored. It was originally embedded within the code to create the cumulatvive chart and has now been extracted as a separate
updateTotalsPanelValues()function that's called from the chart creation function.Variables have been renamed for clarity:
cumulativeGainsChart→gainsOverTimeChartInstancecumulativeGainsCtx→gainsOverTimeCtxFunction renamed to
createGainsOverTimeChart()cumulativePutsMonthData→putsMonthlyData(now represents the raw monthly amounts)putsCumulativeDatastays as is (represents the running totals)Similar changes for calls, cap gains, and dividends
Cleaner logic flow:
Load monthly data first
Calculate cumulative from monthly
Choose which dataset to display based on view mode
Update totals panel with final running totals