Skip to content

fix: remove benchmark scoring from contributions outside work hours widget (IN-1230) - #2107

Merged
gaspergrom merged 4 commits into
mainfrom
feat/IN-1230
Aug 26, 2026
Merged

fix: remove benchmark scoring from contributions outside work hours widget (IN-1230)#2107
gaspergrom merged 4 commits into
mainfrom
feat/IN-1230

Conversation

@gaspergrom

@gaspergrom gaspergrom commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Keeps the "Contributions outside work hours" widget visible on the Development tab (and its contribution to the Overview Health Score card) — only the pass/fail benchmark verdict is removed, per updated ticket scope confirmed with product (Joana Maia): the widget stays, its benchmark judgment goes.
  • Responds to OpenInfra Foundation feedback that the benchmark unfairly penalizes projects with distributed, across-timezone contribution patterns (e.g. Gerrit-based workflows) — the underlying data/chart is still useful, just not judged pass/fail.
  • Updates the widget's copy per the ticket's confirmed follow-up (Joana + Jonathan sign-off): renamed to "Contribution Time Distribution" with a neutral description, and replaces the "only known timezones" caveat under the chart with a note on the project's globally active contributor base.

Changes

File What changed
frontend/app/components/modules/widget/config/development/contributions-outside-work-hours/contributions-outside-work-hours.config.ts Removed the benchmark config block (39 lines); renamed widget and updated description copy
frontend/app/components/modules/widget/config/development/contributions-outside-work-hours/contributions-outside-work-hours.vue Replaced the "known timezones" caveat text under the chart with the confirmed copy

Removing benchmark (an optional WidgetConfig field) is sufficient on its own: the shared benchmarks-wrap.vue component treats an undefined benchmarkConfig as not-visible, so this suppresses the verdict UI everywhere it renders — inline on the widget and on the Overview Health Score card — with no other code changes needed.

JIRA

IN-1230 — Remove 'Contributions outside work hours' benchmark from UI

Deploy order

No deploy ordering constraints — self-contained to this repo.

DB migrations

No DB migrations.

Test plan

  • pnpm tsc-check passes (no type errors)
  • pnpm test passes (175/175)
  • Development tab still renders the widget with its chart/data, no benchmark verdict shown
  • Overview > Health Score card no longer shows a pass/fail verdict for this metric
  • Widget title/description/caveat text match the copy confirmed in the ticket

Checklist

  • git commit --signoff -S on every commit
  • PR diff well under 1000 lines
  • No unrelated changes bundled
  • Cross-repo impact: none (Insights frontend-only)

…tab IN-1230

Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Copilot AI balanced review requested due to automatic review settings August 25, 2026 09:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes the disputed “Contributions outside work hours” metric from Development insights.

Changes:

  • Removes widget registration, configuration, and UI.
  • Removes its client service, query key, and API endpoint.
  • Leaves stale documentation and breaks existing public embeds.

Reviewed changes

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

Show a summary per file
File Description
frontend/server/api/widget/development/contribution-outside.get.ts Deletes the widget endpoint.
frontend/app/components/shared/types/tanstack.ts Removes its query key.
frontend/app/components/modules/widget/types/widget.ts Removes its widget enum.
frontend/app/components/modules/widget/services/development.api.service.ts Removes client fetching logic.
frontend/app/components/modules/widget/config/widget.config.ts Removes global widget registration.
frontend/app/components/modules/widget/config/widget-area.config.ts Removes it from Development.
frontend/app/components/modules/widget/config/development/contributions-outside-work-hours/contributions-outside-work-hours.vue Deletes the widget UI.
frontend/app/components/modules/widget/config/development/contributions-outside-work-hours/contributions-outside-work-hours.config.ts Deletes widget metadata and capabilities.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Widget.ISSUES_RESOLUTION,
Widget.COMMIT_ACTIVITIES,
Widget.PULL_REQUESTS,
Widget.ACTIVE_DAYS,
[Widget.ISSUES_RESOLUTION]: issuesResolution,
[Widget.COMMIT_ACTIVITIES]: commitActivities,
[Widget.PULL_REQUESTS]: pullRequests,
[Widget.ACTIVE_DAYS]: activeDays,
…-1230

The dedicated API endpoint for this fetcher was already removed in the
prior commit. Nothing else calls it (health-score.helpers.ts reads
these fields from a separate combined pipe), so it and its associated
types/mock/test were dead code.

Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Copilot AI review requested due to automatic review settings August 25, 2026 09:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Suppressed comments (1)

frontend/app/components/modules/widget/config/widget-area.config.ts:48

  • Removing this widget leaves the user-facing Development documentation inconsistent with the UI: frontend/docs/features/community-collections/index.md:82 still lists “Contributions outside work hours,” and frontend/docs/metrics/development/index.md:41-47 still documents it as an available metric. Please remove or revise those sections in this PR so users are not directed to a metric that no longer exists.
      Widget.ACTIVE_DAYS,

Copilot AI review requested due to automatic review settings August 25, 2026 12:25
… benchmark scoring IN-1230

Widget stays visible on the Development tab with original copy; only the
pass/fail benchmark verdict (shown inline and on the Overview Health Score
card) is removed, per updated ticket scope.

Signed-off-by: Gašper Grom <gasper.grom@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@@ -16,45 +16,6 @@ const contributionsOutsideWorkHours: WidgetConfig = {
share: true,
embed: true,
snapshot: true,
@gaspergrom gaspergrom changed the title fix: remove contributions outside work hours widget from development tab (IN-1230) fix: remove benchmark scoring from contributions outside work hours widget (IN-1230) Aug 25, 2026
Rename to 'Contribution Time Distribution' with neutral description,
and replace the known-timezones caveat with a note on globally active
contributor bases, per Jonathan/Joana's confirmed copy in the ticket.

Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Copilot AI review requested due to automatic review settings August 26, 2026 09:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

key: 'contributionsOutsideWorkHours',
availableInCollection: true,
name: 'Contributions outside work hours',
name: 'Contribution Time Distribution',
key: 'contributionsOutsideWorkHours',
availableInCollection: true,
name: 'Contributions outside work hours',
name: 'Contribution Time Distribution',
@gaspergrom
gaspergrom requested a review from joanagmaia August 26, 2026 09:19
@gaspergrom
gaspergrom merged commit 7951d38 into main Aug 26, 2026
12 checks passed
@gaspergrom
gaspergrom deleted the feat/IN-1230 branch August 26, 2026 09:43
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