[codex] fix project update date labels#365
Merged
Merged
Conversation
67dd49b to
e8c2a3a
Compare
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
todayin the Slack project update digest.Projects Starting SoonSlack section.Root Cause
The digest used short weekday labels for every non-overdue project target date, including deadlines that are today. The starting-soon window also included day zero, so projects starting today were still shown as upcoming.
Validation
python -m unittest tests.test_jobs.PostProjectUpdatesTestruff check .python -m unittest discover -s tests -p 'test_*.py'Note
Low Risk
Small presentation and window logic in the scheduled Slack digest; covered by unit tests with no auth or data changes.
Overview
Adjusts the daily Projects Ending Soon / Projects Starting Soon Slack digest in
post_project_updatesso same-day dates read clearly and “starting soon” means upcoming days only.Projects whose target date is today now show
Todayin the line label instead of the short weekday (e.g. Sun). Projects whose start date is today are no longer listed under Projects Starting Soon; that section only includes starts 1–3 days out.Unit tests in
PostProjectUpdatesTestcover an ending-today line and assert starting-today projects are omitted.Reviewed by Cursor Bugbot for commit e8c2a3a. Bugbot is set up for automated code reviews on this repo. Configure here.