Add percentage change dashboard widgets#5581
Open
weezy-git-it wants to merge 1 commit intoportfolio-performance:masterfrom
Open
Add percentage change dashboard widgets#5581weezy-git-it wants to merge 1 commit intoportfolio-performance:masterfrom
weezy-git-it wants to merge 1 commit intoportfolio-performance:masterfrom
Conversation
Add two new dashboard widgets: 1. Percentage Change (Statement of Assets category): Shows the percentage change of total assets for a selectable reporting period, comparing the end value to the start value. 2. Earnings Percentage Change YoY (Earnings category): Shows the year-over-year percentage change of earnings. Supports filtering by earning type (dividends, interest, or both) via context menu. Both widgets integrate with the existing reporting period and data series configuration. Made EarningType and EarningTypeConfig public to allow reuse from WidgetFactory. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
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
Percentage Change widget (Statement of Assets category): Shows the percentage change of total assets for the selected reporting period, comparing end value to start value. Calculation:
(end - start) / start × 100.Earnings Percentage Change YoY widget (Earnings category): Shows the year-over-year percentage change of earnings. Users can filter by earning type (dividends, interest, or both) via the context menu.
Both widgets support the standard reporting period and data series configuration via context menu.
Changes
WidgetFactory.java: AddedPERCENTAGE_CHANGEandEARNINGS_PERCENTAGE_CHANGE_YOYwidget definitions with helper methodsreadEarningType()andsumEarnings()EarningType.java/EarningTypeConfig.java: Changed visibility from package-private to public for reuse fromWidgetFactoryMessages.java,messages.properties,messages_de.properties: Added labels for both widgetsTest plan
🤖 Generated with Claude Code