Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(goal-display): Implement Sum Goal Display on Master Category #2986

Conversation

michaelcmelton
Copy link
Contributor

GitHub Issue (if applicable): #2978

Implements a new feature to display sum goal amounts on the master category row, screenshot below.

This also augments the category filter for both goal and non-goal categories with a goal and -goal keyword.
image

@michaelcmelton
Copy link
Contributor Author

CSS is definitely up for debate here.

Copy link
Member

@joshmadewell joshmadewell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, this should just be part of the show goal amount feature, should appear in the goal column that we inject, and just be a number in the column. there's so much stuff on the budget page, i think adding a lot of text here might be confusing

@michaelcmelton
Copy link
Contributor Author

Migrated to existing feature in 685d285

@@ -48,7 +48,7 @@ export class Feature {
/* stubbed listener function */
}

onRouteChanged(): void {
onRouteChanged(route: any): void {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this type? i think if we're going to add this, it should be string not any.

in general, if we're adding types we should never use any, especially in our own code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll revert. Not sure why I added in the first place.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@@ -87,6 +87,28 @@ export class FilterCategories extends Feature {
return;
}

if (/^goal$/g.test(text)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sneaking this in i see 👀 haha

@joshmadewell joshmadewell merged commit 6892b3b into toolkit-for-ynab:main Nov 20, 2022
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.

[FEATURE REQUEST] Filter categories that do or do not have goals, add sum of goals to category group headers.
2 participants