Skip to content

refactor(i18n): reactive translate in task page and automations - #39406

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/i18n-reactive-translate-task-page-automations
Nov 8, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/i18n-reactive-translate-task-page-automations

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This is a batch of the reactive-translate rollout from #39353. It applies pnpm i18n:reactive-translate --helpers to task page and automations:

  • components/task-page
  • components/automations

Codemod result: Rewrote 725 call(s), threaded 86 helper(s) into 77 render call site(s), in 142 file(s); left 26 for manual review. Total diff: 148 files, including helper files outside the directory that gain a defaulted t / intlLocale parameter.

This is a mechanical rewrite and behavior is unchanged with React Compiler off:

  • t from useTranslate() delegates to translate(), so every string is identical. Only its identity changes, and only on a language or resource change, when the tree already re-renders.
  • A threaded helper defaults its new parameter (t: Translate = translate), so callers that don't pass it are unchanged.
  • useMemo deps gain t only where they already include a useUiLanguageRevision() value.

Left for manual work because the rewrite would push these files over the max-lines budget. They stay untouched until someone splits them:

  • src/renderer/src/components/automations/use-external-automation-actions.ts

Skipped by the codemod (26 call sites, still counted by the ratchet):

  • components/automations/AutomationRunHistory.tsx:75 translate: useMemo without a language dependency (adding one changes when it recomputes)
  • components/automations/use-automations-page-list-state.ts:84 components/automations/automation-list-view.ts#filterAutomationListRows: useMemo without a language dependency (adding one changes when it recomputes)
  • components/automations/use-automations-page-list-state.ts:88 components/automations/automation-list-view.ts#filterExternalAutomationListEntries: useMemo without a language dependency (adding one changes when it recomputes)
  • components/automations/use-automations-page-list-state.ts:189 components/automations/external-automation-unchecked-hosts.ts#externalAutomationUncheckedNotice: useMemo without a language dependency (adding one changes when it recomputes)
  • components/automations/use-automations-page-list-state.ts:197 components/automations/automation-list-view.ts#buildAutomationListViewItems: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/linear/IssueDialog.tsx:52 translate: t is already bound here (catalog extraction needs that name)
  • components/task-page/linear/IssueDialog.tsx:64 translate: t is already bound here (catalog extraction needs that name)
  • components/task-page/linear/IssueDialog.tsx:73 translate: t is already bound here (catalog extraction needs that name)
  • components/task-page/linear/IssueDialog.tsx:116 translate: t is already bound here (catalog extraction needs that name)
  • components/task-page/linear/IssueDialog.tsx:124 translate: t is already bound here (catalog extraction needs that name)
  • components/task-page/linear/IssueDialog.tsx:135 translate: t is already bound here (catalog extraction needs that name)
  • components/task-page/linear/IssueDialog.tsx:147 translate: t is already bound here (catalog extraction needs that name)
  • components/task-page/linear/IssueDialog.tsx:160 translate: t is already bound here (catalog extraction needs that name)
  • components/task-page/linear/IssueDialog.tsx:163 translate: t is already bound here (catalog extraction needs that name)
  • components/task-page/linear/use-task-page-linear-board.ts:43 components/task-page/linear/task-page-linear-jira-list-model.tsx#groupLinearIssues: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/linear/use-task-page-linear-list-presentation.ts:56 components/task-page/linear/task-page-linear-jira-list-model.tsx#groupLinearIssues: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/use-task-page-provider-state.ts:81 components/task-page/task-page-empty-state.ts#getRepoBackedTaskEmptyState: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/use-task-page-source-display.ts:47 components/task-page/task-page-source-context.tsx#getGitHubProjectSourceSummary: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/use-task-page-source-display.ts:55 components/task-source-context-summary.ts#getTaskSourceContextSummary: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/use-task-page-source-display.ts:65 components/task-source-context-summary.ts#getTaskSourceContextSummary: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/use-task-page-source-summary.ts:62 components/task-source-context-summary.ts#getTaskSourceAvailabilityNotice: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/use-task-page-source-summary.ts:74 components/task-source-context-summary.ts#getTaskSourceAvailabilityNotice: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/use-task-page-source-summary.ts:86 components/task-source-context-summary.ts#getTaskSourceAvailabilityNotice: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/use-task-page-source-summary.ts:93 components/task-source-context-summary.ts#getTaskSourceAvailabilityNotice: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/use-task-page-source-summary.ts:115 components/task-source-context-summary.ts#getTaskSourceAvailabilityNotice: useMemo without a language dependency (adding one changes when it recomputes)
  • components/task-page/use-task-page-source-summary.ts:137 components/task-page/task-page-empty-state.ts#getRepoBackedTaskEmptyState: useMemo without a language dependency (adding one changes when it recomputes)

The render-path-translate ratchet baseline drops to 3332.

Testing

  • pnpm tc
  • ORCA_CODE_QUALITY_BASE=origin/main pnpm check:changed (lint, ratchets, related unit tests)
Files Added Deleted Net
Test 0 0 0 0
Prod 143 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1782 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1913 $\color{#cf222e}{\Huge{\mathbf{−}}}$​131

@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-status-bar branch from a082b8b to ceb2644 Compare November 7, 2026 10:18
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-task-page-automations branch from 0ee53a4 to 00956b1 Compare November 7, 2026 10:21
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-status-bar branch from ceb2644 to 6d6dc03 Compare November 7, 2026 10:40
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-task-page-automations branch from 00956b1 to 9e92c14 Compare November 7, 2026 10:40
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-status-bar branch from 6d6dc03 to 958e088 Compare November 7, 2026 11:28
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-task-page-automations branch from 9e92c14 to 236d8ab Compare November 7, 2026 11:30
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-status-bar branch from 958e088 to 998033a Compare November 7, 2026 21:05
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-task-page-automations branch from 236d8ab to f99b44b Compare November 7, 2026 21:07
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-status-bar branch from 998033a to 17aa831 Compare November 8, 2026 03:19
@OrcaWin
OrcaWin changed the base branch from OrcaWin/i18n-reactive-translate-status-bar to main November 8, 2026 03:41
…sk page and automations

Applies pnpm i18n:reactive-translate --helpers. Output is unchanged: t delegates
to translate() and helpers default the threaded parameter.
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-task-page-automations branch from f99b44b to 797a847 Compare November 8, 2026 03:43
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

Automation and task-page components now obtain translations through hooks. Formatting and display helpers accept optional translators or locales, and callers pass active values for translated messages and locale-sensitive output. Existing translation keys, fallback text, status selection, and component actions remain unchanged. The render-path translation baseline records fewer calls for the listed automation and task-page components.

Merge Risk: Low · up to 797a8

Some automation messages may remain in the previous language after a language change. This is bounded localization risk that can be addressed before merge or accepted with follow-up.

Pre-merge checks: Passed 3 · Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Description check Inconclusive The description covers the scope, the codemod result, the behavior-preservation reasoning, the skipped call sites, and the testing commands. It follows the required template only in part. The ELI5, Vi… Fill in the template sections that are missing or empty: an ELI5 summary, a What Changed and Why section, the linked issue (or an explanation for the internal maintainer case), a Visual Proof entry (N/A with a reason is acceptable because t…
Docstring Coverage Inconclusive Docstring coverage is 5.17% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the main change: the codemod moves render-path translation calls in the task page and automations components to the reactive useTranslate hook. It is specific and matches the changeset…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the codemod moves render-path translation calls in the task page and automations components to the reactive useTranslate hook. It is specific and matches the changeset. It uses the conventional refactor(i18n) prefix. The description notes that the change is mechanical and keeps behavior unchanged.

Full details: Description check

Explanation

The description covers the scope, the codemod result, the behavior-preservation reasoning, the skipped call sites, and the testing commands. It follows the required template only in part. The ELI5, Visual Proof, Risk level, Linked Issue, and checklist sections are missing or unfilled. The Testing section also has no manual test steps or platform list. The 'Fixes #' issue link is absent, and the baseline count is stated as 3332 in the description but 3389 in the objectives, which needs reconciling.

Resolution

Fill in the template sections that are missing or empty: an ELI5 summary, a What Changed and Why section, the linked issue (or an explanation for the internal maintainer case), a Visual Proof entry (N/A with a reason is acceptable because the change is behavior-neutral), the Risk level and rollback note, and the Testing checkboxes with the platforms tested. Also confirm the render-path-translate ratchet baseline count, since the description says 3332 and the PR objectives say 3389.

Full details: Docstring Coverage

Explanation

Docstring coverage is 5.17% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 58 functions across 50 files. (93 skipped: 1 unsupported, 92 over the file limit.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (3)

Minor · Use the scoped translator for the announced fallback… · AutomationHostFilterNotice.tsx:116-119

src/renderer/src/components/automations/AutomationHostFilterNotice.tsx:116-119
Minor · Functional Correctness · Quick win

Use the scoped translator for the announced fallback message.

The useEffect still calls the module-level translate, while the rest of this component now uses t. Under a TranslationScopeContext that supplies a different t, the screen-reader announcement can differ from the visible message. Use t here and add it to the dependency array.

This line is unchanged, but it is a missed conversion in this file.

Proposed fix

-        ? translate(
+        ? t(
             'auto.components.automations.hostNotice.removed',
             'The selected host is no longer available. Showing all hosts.'
           )
         : ''
     )
-  }, [resolution.announceFallback])
+  }, [resolution.announceFallback, t])
Minor · Convert runCountLabel to the scoped translator. · AutomationRunHistory.tsx:78-83

src/renderer/src/components/automations/AutomationRunHistory.tsx:78-83
Minor · Functional Correctness · Quick win

Convert runCountLabel to the scoped translator.

This useMemo still calls the module-level translate. Every other label in the component now uses t. Under a TranslationScopeContext with a different t, the run-count summary uses the wrong translator. The memo also lacks t and the language revision in its dependencies. The baseline entry for this file (1 call) confirms this call was not converted.

Proposed fix

   const runCountLabel = useMemo(() => {
     const completed = runs.filter((run) => run.status === 'completed').length
-    return translate(
+    return t(
       'auto.components.automations.runHistory.runCountSummary',
       '{{count}} runs · {{completed}} completed',
       { count: runs.length, completed, defaultValue_one: '{{count}} run · {{completed}} completed' }
     )
-  }, [runs])
+  }, [runs, t])
Minor · Convert the remaining translate calls to t. · use-automation-run-page-state.ts:154-158

src/renderer/src/components/automations/use-automation-run-page-state.ts:154-158
Minor · Functional Correctness · Quick win

Convert the remaining translate calls to t.

Both toast.message(translate(...)) calls still use the module-level translate. This hook now uses t for the workspace display. Convert these calls for consistency under a scoped translator. Because this is inside an effect, add t to the dependency array.

Also applies to: 213-217

Nitpick comments: 3

src/renderer/src/components/task-page/jira/use-task-page-jira-favourite-filters.ts: 1

96-96: Trivial · Maintainability & Code Quality · Low value

Incomplete migration: translate still used inside the effect.

Line 138 and Line 159 now use the hook t. Line 96 still calls module-level translate. When a translation scope supplies a scoped t, this fallback message ignores it. The fallback also uses the global translator in the load-failure path. Use t here and add t to the effect dependencies, or keep the global translate on purpose and document that choice. The same pattern exists in use-task-page-jira-quick-filters.ts (Line 65) and use-task-page-jira-saved-filters.ts (Line 104).

src/renderer/src/components/task-page/linear/task-page-linear-issue-model.tsx: 1

126-126: Trivial · Maintainability & Code Quality · Low value

Hook translator is not used in the callback.

LinearStateCell now has t from useTranslate(). The toast fallback messages at Line 126 and Line 140 still call module-level translate. A scoped translator is ignored for these messages. Use t and add it to the useCallback dependencies (Line 149).

Also applies to: 140-140

src/renderer/src/components/task-source-context-summary.ts: 1

118-118: Trivial · Maintainability & Code Quality · Low value

formatHostStatus still uses the global translate.

All other labels in getTaskSourceAvailabilityNotice and getAvailabilityLabel use the injected t. formatHostStatus (in task-source-host-status-labels.ts, Line 91) ignores t. The {{host}} {{status}} text is not locale-sensitive, so the output is the same today. If a scoped translator ever differs from the global one, these labels mix translators. Add an optional t parameter to formatHostStatus and pass it here and in availabilityTitlePart.

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6dec18c3-63a9-4fd5-ab08-b493c9f32497
Commits

Reviewing files that changed from the base of the PR and between d2506d0 and 797a847.

Files selected for processing: 143

  • config/render-path-translate-baseline.txt
  • src/renderer/src/components/automations/AutomationAgentLaunchPicker.tsx
  • src/renderer/src/components/automations/AutomationCustomCronPanel.tsx
  • src/renderer/src/components/automations/AutomationDeleteDialogs.tsx
  • src/renderer/src/components/automations/AutomationDestinationField.tsx
  • src/renderer/src/components/automations/AutomationDetail.tsx
  • src/renderer/src/components/automations/AutomationEditorDialogFooter.tsx
  • src/renderer/src/components/automations/AutomationEditorDialogHeader.tsx
  • src/renderer/src/components/automations/AutomationEditorPromptSection.tsx
  • src/renderer/src/components/automations/AutomationEditorSettingsSidebar.tsx
  • src/renderer/src/components/automations/AutomationExtraAgentArgsField.tsx
  • src/renderer/src/components/automations/AutomationHostBadges.tsx
  • src/renderer/src/components/automations/AutomationHostFilterNotice.tsx
  • src/renderer/src/components/automations/AutomationListEmptyView.tsx
  • src/renderer/src/components/automations/AutomationListExternalRow.tsx
  • src/renderer/src/components/automations/AutomationListFilterMenu.tsx
  • src/renderer/src/components/automations/AutomationListHostGroups.tsx
  • src/renderer/src/components/automations/AutomationListLastRunCell.tsx
  • src/renderer/src/components/automations/AutomationListLocalRow.tsx
  • src/renderer/src/components/automations/AutomationListSearchField.tsx
  • src/renderer/src/components/automations/AutomationListSortHeader.tsx
  • src/renderer/src/components/automations/AutomationListStatusCell.tsx
  • src/renderer/src/components/automations/AutomationListTableHeader.tsx
  • src/renderer/src/components/automations/AutomationListToolbar.tsx
  • src/renderer/src/components/automations/AutomationMissedRunGraceField.tsx
  • src/renderer/src/components/automations/AutomationOwnerConflictNotice.tsx
  • src/renderer/src/components/automations/AutomationPrecheckFields.tsx
  • src/renderer/src/components/automations/AutomationProjectCombobox.tsx
  • src/renderer/src/components/automations/AutomationPromptDisclosure.tsx
  • src/renderer/src/components/automations/AutomationRunDetailsPage.tsx
  • src/renderer/src/components/automations/AutomationRunHistory.tsx
  • src/renderer/src/components/automations/AutomationRunPageFrame.tsx
  • src/renderer/src/components/automations/AutomationRunsDashboard.tsx
  • src/renderer/src/components/automations/AutomationRunsTable.tsx
  • src/renderer/src/components/automations/AutomationSchedulePicker.tsx
  • src/renderer/src/components/automations/AutomationSessionField.tsx
  • src/renderer/src/components/automations/AutomationSetupDecisionField.tsx
  • src/renderer/src/components/automations/AutomationSurfaceField.tsx
  • src/renderer/src/components/automations/AutomationTemplateEmptyState.tsx
  • src/renderer/src/components/automations/AutomationTimeField.tsx
  • src/renderer/src/components/automations/AutomationWorkspaceField.tsx
  • src/renderer/src/components/automations/AutomationsDetailPane.tsx
  • src/renderer/src/components/automations/AutomationsListPanel.tsx
  • src/renderer/src/components/automations/AutomationsPageBreadcrumb.tsx
  • src/renderer/src/components/automations/AutomationsPageSkeleton.tsx
  • src/renderer/src/components/automations/AutomationsPageSurface.tsx
  • src/renderer/src/components/automations/AutomationsPageTopBar.tsx
  • src/renderer/src/components/automations/ExternalAutomationManagers.tsx
  • src/renderer/src/components/automations/WorkspaceCombobox.tsx
  • src/renderer/src/components/automations/automation-captured-owner.ts
  • src/renderer/src/components/automations/automation-host-scope-descriptors.ts
  • src/renderer/src/components/automations/automation-host-status-descriptors.ts
  • src/renderer/src/components/automations/automation-list-empty-state.ts
  • src/renderer/src/components/automations/automation-list-last-run.ts
  • src/renderer/src/components/automations/automation-list-view.ts
  • src/renderer/src/components/automations/automation-orca-save-operations.ts
  • src/renderer/src/components/automations/automation-page-parts.tsx
  • src/renderer/src/components/automations/automation-run-content.ts
  • src/renderer/src/components/automations/automation-run-occurrences.ts
  • src/renderer/src/components/automations/automation-run-workspace-display.ts
  • src/renderer/src/components/automations/automation-schedule-label.ts
  • src/renderer/src/components/automations/automation-source-display.ts
  • src/renderer/src/components/automations/automation-target-availability.ts
  • src/renderer/src/components/automations/automation-usage-model.ts
  • src/renderer/src/components/automations/external-automation-display.ts
  • src/renderer/src/components/automations/external-automation-schedule-display.ts
  • src/renderer/src/components/automations/external-automation-source-availability.ts
  • src/renderer/src/components/automations/external-automation-unchecked-hosts.ts
  • src/renderer/src/components/automations/use-automation-run-page-state.ts
  • src/renderer/src/components/automations/use-automations-page-destination-form.ts
  • src/renderer/src/components/automations/use-automations-page-list-state.ts
  • src/renderer/src/components/automations/use-automations-page-presentation-state.ts
  • src/renderer/src/components/automations/use-full-automation-run.ts
  • src/renderer/src/components/jira-list-columns.ts
  • src/renderer/src/components/project-host-count-label.ts
  • src/renderer/src/components/task-page/Content.tsx
  • src/renderer/src/components/task-page/PaginationBar.tsx
  • src/renderer/src/components/task-page/SourceBar.tsx
  • src/renderer/src/components/task-page/github/AssigneesCell.tsx
  • src/renderer/src/components/task-page/github/ChecksCell.tsx
  • src/renderer/src/components/task-page/github/DuplicatePicker.tsx
  • src/renderer/src/components/task-page/github/Filters.tsx
  • src/renderer/src/components/task-page/github/IssueDialog.tsx
  • src/renderer/src/components/task-page/github/IssueSelectors.tsx
  • src/renderer/src/components/task-page/github/List.tsx
  • src/renderer/src/components/task-page/github/MergeCell.tsx
  • src/renderer/src/components/task-page/github/ModeControls.tsx
  • src/renderer/src/components/task-page/github/ReviewCell.tsx
  • src/renderer/src/components/task-page/github/ReviewerPicker.tsx
  • src/renderer/src/components/task-page/github/Rows.tsx
  • src/renderer/src/components/task-page/github/StatusCell.tsx
  • src/renderer/src/components/task-page/github/task-page-github-work-item-status-badge.tsx
  • src/renderer/src/components/task-page/github/task-page-github-work-item-status.ts
  • src/renderer/src/components/task-page/gitlab/Filters.tsx
  • src/renderer/src/components/task-page/gitlab/ItemList.tsx
  • src/renderer/src/components/task-page/gitlab/TodoList.tsx
  • src/renderer/src/components/task-page/jira/Content.tsx
  • src/renderer/src/components/task-page/jira/Filters.tsx
  • src/renderer/src/components/task-page/jira/IssueAssigneeField.tsx
  • src/renderer/src/components/task-page/jira/IssueDialog.tsx
  • src/renderer/src/components/task-page/jira/IssueTitleField.tsx
  • src/renderer/src/components/task-page/jira/TaskPageJiraFavouriteFilters.tsx
  • src/renderer/src/components/task-page/jira/TaskPageJiraSavedFilters.tsx
  • src/renderer/src/components/task-page/jira/TaskPageJiraStatusFilters.tsx
  • src/renderer/src/components/task-page/jira/task-page-jira-board-move-dialog.tsx
  • src/renderer/src/components/task-page/jira/task-page-jira-board-view.tsx
  • src/renderer/src/components/task-page/jira/task-page-jira-board.tsx
  • src/renderer/src/components/task-page/jira/task-page-jira-issue-cells.tsx
  • src/renderer/src/components/task-page/jira/task-page-jira-issue-list.tsx
  • src/renderer/src/components/task-page/jira/task-page-jira-project-selection.ts
  • src/renderer/src/components/task-page/jira/task-page-jira-sort-controls.tsx
  • src/renderer/src/components/task-page/jira/task-page-jira-text-fallback-notice.tsx
  • src/renderer/src/components/task-page/jira/task-page-jira-view-controls.tsx
  • src/renderer/src/components/task-page/jira/use-task-page-jira-creation-projects.ts
  • src/renderer/src/components/task-page/jira/use-task-page-jira-favourite-filters.ts
  • src/renderer/src/components/task-page/jira/use-task-page-jira-quick-filters.ts
  • src/renderer/src/components/task-page/jira/use-task-page-jira-saved-filters.ts
  • src/renderer/src/components/task-page/linear/ConnectDialog.tsx
  • src/renderer/src/components/task-page/linear/Content.tsx
  • src/renderer/src/components/task-page/linear/CustomViewList.tsx
  • src/renderer/src/components/task-page/linear/CustomViewProjects.tsx
  • src/renderer/src/components/task-page/linear/Filters.tsx
  • src/renderer/src/components/task-page/linear/IssueAttributes.tsx
  • src/renderer/src/components/task-page/linear/IssueBoard.tsx
  • src/renderer/src/components/task-page/linear/IssueBoardColumns.tsx
  • src/renderer/src/components/task-page/linear/IssueList.tsx
  • src/renderer/src/components/task-page/linear/IssueTable.tsx
  • src/renderer/src/components/task-page/linear/IssueToolbar.tsx
  • src/renderer/src/components/task-page/linear/ProjectDialog.tsx
  • src/renderer/src/components/task-page/linear/ProjectFields.tsx
  • src/renderer/src/components/task-page/linear/ProjectList.tsx
  • src/renderer/src/components/task-page/linear/linear-attribute-count-labels.ts
  • src/renderer/src/components/task-page/linear/task-page-linear-issue-model.tsx
  • src/renderer/src/components/task-page/linear/task-page-linear-jira-list-model.tsx
  • src/renderer/src/components/task-page/linear/use-task-page-linear-list-selection.ts
  • src/renderer/src/components/task-page/task-page-checks-pill.ts
  • src/renderer/src/components/task-page/task-page-empty-state.ts
  • src/renderer/src/components/task-page/task-page-pr-delta-summary.ts
  • src/renderer/src/components/task-page/task-page-source-context.tsx
  • src/renderer/src/components/task-source-context-summary.ts
  • src/renderer/src/components/task-source-host-status-labels.ts
  • src/renderer/src/i18n/weekday-names.ts
  • src/renderer/src/lib/linear-read-error.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

/** Name hosts whose probes failed; no answer cannot be presented as an empty external-manager inventory. */

import { translate } from '@/i18n/i18n'
import type { Translate } from '@/i18n/use-translate'

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.

Minor · Functional Correctness · Quick win

Supported by static analysis

Script executed:

#!/bin/bash
rg -nP -B2 -A3 'externalAutomationUncheckedNotice' src/renderer/src/components/automations/use-automations-page-list-state.ts

Repository: stablyai/orca

Length of output: 813


Script executed:

p=src/renderer/src/components/automations/use-automations-page-list-state.ts
h=src/renderer/src/components/automations/external-automation-unchecked-hosts.ts
printf '%s\n' '--- caller ---'
nl -ba "$p" | sed -n '1,240p'
printf '%s\n' '--- helper ---'
nl -ba "$h"
printf '%s\n' '--- translation implementation paths ---'
rg -n -F -e 'useTranslate' -e 'useUiLanguageRevision' -e 'function translate' src/renderer/src/i18n
printf '%s\n' '--- diff ---'
git diff 9df0b139012a7657a0030fa15e5752a08ab79159 797a8471b5c58ef2c2c10cdc23a982c13edfa890 -- "$p" "$h"

Repository: stablyai/orca

Length of output: 17713


Script executed:

printf '%s\n' '--- translator hooks ---'
nl -ba src/renderer/src/i18n/use-translate.ts
nl -ba src/renderer/src/i18n/translation-scope-provider.tsx
nl -ba src/renderer/src/i18n/use-ui-language-revision.ts
printf '%s\n' '--- global translation and revision ---'
nl -ba src/renderer/src/i18n/i18n.ts | sed -n '1,175p'
printf '%s\n' '--- notice consumer ---'
rg -n -F -- 'externalManagersUncheckedNotice' src/renderer/src/components/automations
printf '%s\n' '--- translation scope references ---'
rg -n -F -e 'TranslationScopeProvider' -e 'TranslationScopeContext' src/renderer/src/i18n src/renderer/src/components/automations

Repository: stablyai/orca

Length of output: 14144


Script executed:

printf '%s\n' '--- provider and page bindings ---'
rg -n -F -e '<I18nProvider' -e 'useAutomationsPageListState(' src/renderer/src
nl -ba src/renderer/src/i18n/I18nProvider.tsx | sed -n '45,70p'
nl -ba src/renderer/src/components/automations/AutomationsListPanel.tsx | sed -n '325,345p'
printf '%s\n' '--- notice catalog values ---'
rg -n -F -e 'uncheckedHost' -e 'uncheckedHostCount' src/renderer/src/i18n/locales/en.json src/renderer/src/i18n/locales/es.json src/renderer/src/i18n/locales/ja.json

Repository: stablyai/orca

Length of output: 4084


Update the notice when the translation scope changes.

If the language or active resources change while the host inputs stay the same, the memo can keep the previous notice text. Pass useTranslate() to the helper and include it in the memo dependencies.

Suggested fix

-import { useIntlLocale } from '@/i18n/use-translate'
+import { useIntlLocale, useTranslate } from '@/i18n/use-translate'
   const intlLocale = useIntlLocale()
+  const t = useTranslate()
   const externalManagersUncheckedNotice = useMemo(
-    () => externalAutomationUncheckedNotice(scopedExternal.failures, hostCatalog.entries),
-    [hostCatalog.entries, scopedExternal.failures]
+    () => externalAutomationUncheckedNotice(scopedExternal.failures, hostCatalog.entries, t),
+    [hostCatalog.entries, scopedExternal.failures, t]
   )

@OrcaWin
OrcaWin merged commit dab4c41 into main Nov 8, 2026
48 checks passed
@OrcaWin
OrcaWin deleted the OrcaWin/i18n-reactive-translate-task-page-automations branch November 8, 2026 03:59
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