Skip to content

Add Not Overdue filter #261

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

Merged
merged 4 commits into from
Jun 2, 2025
Merged

Add Not Overdue filter #261

merged 4 commits into from
Jun 2, 2025

Conversation

dangrous
Copy link
Contributor

@dangrous dangrous commented May 31, 2025

Ever wanted to see only your overdue issues? Now you can!

Brought to you primarily by Cursor and vibe coding, which is neat.

$ https://github.com/Expensify/Expensify/issues/507736

@dangrous dangrous self-assigned this May 31, 2025
@dangrous dangrous requested a review from a team May 31, 2025 00:31
@melvin-bot melvin-bot bot requested review from AndrewGable and removed request for a team May 31, 2025 00:31
preparedIssues = _.filter(preparedIssues, (item) => {
const isHeld = item.title.toLowerCase().indexOf('[hold') > -1 ? ' hold' : '';
const isUnderReview = _.find(item.labels, label => label.name.toLowerCase() === 'reviewing');
const isOwnedBySomeoneElse = item.issueHasOwner && !item.currentUserIsOwner;
const isOverdue = _.findWhere(item.labels, {name: 'Overdue'});
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if it matters, but this is slightly different than how we look for the reviewing label (which is case insensitive).

_.find(item.labels, label => label.name.toLowerCase() === 'reviewing');

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yeah, i can update that to be safe! I think there's somewhere else that does it that way too, I'll fix both.

@AndrewGable AndrewGable removed their request for review June 2, 2025 17:35
@AndrewGable
Copy link
Contributor

Going to defer review to @tgolen as he has lots of good comments! I quickly skimmed and it's looking good

@dangrous dangrous requested a review from tgolen June 2, 2025 20:03
@dangrous
Copy link
Contributor Author

dangrous commented Jun 2, 2025

updated! it looks like we use both ways throughout the app for different labels (findWhere and find) - so far I only changed the overdue ones but I can do all the other lables too if you feel like it's more robust? Doesn't seem like it's had an issue yet, but not sure how GH actually stores the labels

@tgolen
Copy link
Contributor

tgolen commented Jun 2, 2025

I think it's probably OK. Thanks for looking!

@tgolen tgolen merged commit 280b209 into main Jun 2, 2025
3 checks passed
@tgolen tgolen deleted the dangrous-updatefilters branch June 2, 2025 21:54
@tgolen
Copy link
Contributor

tgolen commented Jun 2, 2025

You'll need to ask a ring3 person to deploy this

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.

3 participants