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
feat(goal-display): Implement Sum Goal Display on Master Category #2986
Conversation
CSS is definitely up for debate here. |
There was a problem hiding this 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
Migrated to existing feature in 685d285 |
src/extension/features/feature.ts
Outdated
@@ -48,7 +48,7 @@ export class Feature { | |||
/* stubbed listener function */ | |||
} | |||
|
|||
onRouteChanged(): void { | |||
onRouteChanged(route: any): void { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)) { |
There was a problem hiding this comment.
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
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.