Skip to content

Comments

Improve report generation flow and delivery controls#61

Merged
WZ merged 2 commits intomainfrom
codex/list-show-ticket-ids
Feb 21, 2026
Merged

Improve report generation flow and delivery controls#61
WZ merged 2 commits intomainfrom
codex/list-show-ticket-ids

Conversation

@WZ
Copy link
Owner

@WZ WZ commented Feb 21, 2026

What changed

  • Fixed duplicate ticket ID rendering in generated reports (team and boss) so repeated prefixes are collapsed
  • Added /generate-report and /gen argument parsing for optional private delivery: [team|boss] [private]
  • Removed report_private config/env support in favor of explicit command argument behavior
  • Added manager DM notification after successful member /report submissions
  • Kept report filenames on Friday date (no week-start filename change)

Examples

  • /generate-report team
  • /generate-report boss private
  • /gen private

Tests

  • go test ./...

Copilot AI review requested due to automatic review settings February 21, 2026 00:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves report generation by fixing duplicate ticket ID rendering, standardizing report filenames to use Monday (week-start) dates, adding flexible delivery controls via command arguments, and introducing proactive manager notifications when team members submit reports.

Changes:

  • Fixed duplicate ticket ID prefix rendering in team and boss reports through a new deduplication helper
  • Changed report filename date suffix from Friday to Monday (week-start) for consistency
  • Added argument parsing to /generate-report for mode (team/boss) and delivery (private/channel), replacing the static report_private config

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/report/report_builder.go Added canonicalTicketIDs and stripLeadingTicketPrefixIfSame helpers to deduplicate ticket prefixes; updated formatTeamItem/formatBossItem to use new helpers; changed filename date from Friday to Monday
internal/report/report_builder_test.go Added test for ticket ID deduplication; updated test date variables from friday to weekStart
internal/integrations/slack/slack.go Added notifyManagersOnMemberReport and buildManagerReportNotificationMessage for manager notifications; added parseGenerateReportArgs to parse optional command arguments; replaced cfg.ReportPrivate with per-invocation sendPrivate parameter
internal/integrations/slack/slack_logic_test.go Added comprehensive tests for parseGenerateReportArgs; updated test date variables from friday to weekStart
internal/integrations/slack/functional_slack_github_test.go Added newMockSlackAPIWithManagerNotify mock and two tests validating manager notifications
internal/config/config.go Removed ReportPrivate field and REPORT_PRIVATE env override
config.yaml Removed report_private config option and documentation comment
README.md Updated command documentation to show new argument syntax; removed report_private config documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@WZ WZ merged commit 3150fba into main Feb 21, 2026
1 check passed
@WZ WZ deleted the codex/list-show-ticket-ids branch February 21, 2026 00:32
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.

1 participant