Skip to content

Add account-backed artifact sharing - #13012

Merged
Jinwoo-H merged 22 commits into
mainfrom
artifacts
Aug 8, 2026
Merged

Jinwoo-H merged 22 commits into
mainfrom
artifacts

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add authenticated artifact share/list/update/delete CLI and runtime APIs
  • add an Artifacts settings toggle, disabled by default, plus the account-backed sidebar page
  • add dedicated Orca Account settings and sign-out flow
  • teach the bundled Orca CLI guide to let agents share HTML and Markdown without exposing edit tokens
  • prevent Grok's hidden XTVERSION query reply from leaking into its input field

Validation

  • fresh full CI passed on the final head, including Node 24/26 test shards
  • TypeScript typecheck, static analysis, full lint/localization, and max-lines/reliability gates passed
  • cross-version wire compatibility passed
  • Windows package/native smoke and macOS/Linux native checks passed
  • signed-in production upload/list/open/delete/sign-out/re-auth lifecycle passed
  • exact-head orca-cloud production deployment and smoke test passed

Cloud service

  • stablyai/orca-cloud#252
  • live at share.onorca.dev, cloud-api.onorca.dev, content.orcausercontent.dev, and login.onorca.dev

Release status

Ready for review. No P0, P1, or P2 findings remain; production service and signed-in desktop lifecycle are verified.

@Jinwoo-H

Jinwoo-H commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Release readiness — PASS

Verdict: no P0, P1, or P2 findings in origin/main...7a99ba9dc09b901ce9d6702dd6fdc463501555dc. No release blocker remains.

Evidence

Compatibility review

  • Artifact RPC methods are additive.
  • Older clients sanitize the unknown activeView: "artifacts" value to Terminal.
  • artifactsEnabled remains a client-local paired-web setting; an older host is not required to understand it.
  • No mobile-facing protocol or persisted mobile state changed.
  • Workspace behavior does not assume a Git worktree; folder and SSH-backed workspaces use the same host runtime boundary.
  • Bundled CLI PATH prepending is scoped to packaged macOS/Windows managed PTYs; Linux keeps its established launcher behavior.

Terminal reliability invariant

The Grok fix suppresses only Grok's hidden XTVERSION query reply. Other agents and query replies are unchanged; focused policy tests are the oracle. No polling, retry loop, subprocess, or unbounded state was added. Accepted gap: there is no separate live SSH/WSL journey for this narrow filter, but the same headless filter path is used.

Visual proof

Artifacts settings and agent-first guidance:

Artifacts settings

Account-owned artifact list:

Artifact list

Centered empty state after deletion:

Empty artifacts

Connected Orca account:

Connected account

Residual risk is limited to not repeating the complete live UI lifecycle on Windows and SSH. CI covers Windows packaging/native behavior and mixed-version wire compatibility.

@Jinwoo-H
Jinwoo-H marked this pull request as ready for review August 7, 2026 08:20
@Jinwoo-H
Jinwoo-H requested a review from brennanb2025 as a code owner August 7, 2026 08:20
@coderabbitai

coderabbitai Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Added cloud artifact listing, sharing, updating, unsharing, and deletion through runtime RPCs and CLI commands. Added authenticated cloud configuration and profile-scoped share metadata storage. Added a desktop Artifacts page with preview, copy, browser-open, refresh, and deletion actions. Added sidebar, settings, account, navigation, localization, and authentication-state support. Added packaged PTY path handling and Grok terminal reply filtering.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes a strong summary and validation details but omits the required Screenshots, AI Review Report, Security Audit, and Notes sections. Add the required Screenshots, AI Review Report, Security Audit, and Notes sections, and map validation results to the Testing checklist.
Docstring Coverage ⚠️ Warning Docstring coverage is 10.26% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the primary change: account-backed artifact sharing.
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.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

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

Comment @coderabbitai help to get the list of available commands.

@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: 4

Caution

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

⚠️ Outside diff range comments (1)
src/renderer/src/store/slices/ui.ts (1)

624-688: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Gate every return to artifacts.

A nested page can retain artifacts as its previous view. If the user disables Artifacts before closing that page, its close action restores the disabled view without calling openArtifactsPage.

Apply the same feature check to every previous-view restore, or centralize return-view resolution. Add a test for artifacts → tasks → settings disable → close settings → close tasks.

Also applies to: 1507-1520, 1543-1554

🧹 Nitpick comments (2)
src/main/ipc/pty.test.ts (1)

4154-4155: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Assert that the inherited PATH remains available.

The current assertion checks only the first entry. It would pass if the implementation replaced PATH with resourcesPath/bin and removed /usr/bin.

Proposed assertion
-          expect(env.PATH.split(delimiter)[0]).toBe(join('/tmp/orca-resources', 'bin'))
+          expect(env.PATH).toBe(
+            [join('/tmp/orca-resources', 'bin'), '/usr/bin'].join(delimiter)
+          )
src/renderer/src/components/settings/ArtifactsSettingsPane.test.tsx (1)

41-42: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use a platform-neutral test path.

'/tmp' is Unix-specific. Build the test user-data path with tmpdir() and join() so this test remains valid on Windows.

As per coding guidelines, use path.join or Node path utilities for file paths and do not assume / or \.

Also applies to: 69-70

Source: Coding guidelines


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0871cfce-0b91-45ec-a0ba-054861e16b49

📥 Commits

Reviewing files that changed from the base of the PR and between f057cbc and 7a99ba9.

📒 Files selected for processing (55)
  • resources/skills/current-manifest.json
  • resources/skills/snapshot-registry.json
  • skill-guides/orca-cli.md
  • skills/orca-cli/SKILL.md
  • src/cli/args.ts
  • src/cli/artifact-format.ts
  • src/cli/bundled-skill-guides.ts
  • src/cli/handler-group-manifest.ts
  • src/cli/handlers/artifacts.test.ts
  • src/cli/handlers/artifacts.ts
  • src/cli/specs/artifacts.ts
  • src/cli/specs/index.ts
  • src/main/artifacts/artifact-cloud-config.test.ts
  • src/main/artifacts/artifact-cloud-config.ts
  • src/main/artifacts/artifact-cloud-service.ts
  • src/main/artifacts/artifact-share-record-store.ts
  • src/main/global-fetch-call-site-audit.test.ts
  • src/main/index.ts
  • src/main/ipc/pty.test.ts
  • src/main/ipc/pty.ts
  • src/main/runtime/headless-terminal-query-reply-policy.test.ts
  • src/main/runtime/headless-terminal-query-reply-policy.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/artifacts.ts
  • src/main/runtime/rpc/methods/client-ui-schemas.ts
  • src/main/runtime/rpc/methods/index.ts
  • src/renderer/src/App.tsx
  • src/renderer/src/components/artifacts/ArtifactListRowActions.tsx
  • src/renderer/src/components/artifacts/ArtifactsPage.test.tsx
  • src/renderer/src/components/artifacts/ArtifactsPage.tsx
  • src/renderer/src/components/orca-profiles/OrcaProfileSignOutConfirmDialog.test.tsx
  • src/renderer/src/components/orca-profiles/OrcaProfileSignOutConfirmDialog.tsx
  • src/renderer/src/components/settings/ArtifactsSettingsPane.test.tsx
  • src/renderer/src/components/settings/ArtifactsSettingsPane.tsx
  • src/renderer/src/components/settings/OrcaAccountSettingsPane.test.tsx
  • src/renderer/src/components/settings/OrcaAccountSettingsPane.tsx
  • src/renderer/src/components/settings/Settings.tsx
  • src/renderer/src/components/settings/artifacts-settings-search.ts
  • src/renderer/src/components/settings/orca-account-settings-search.ts
  • src/renderer/src/components/sidebar/SidebarNav.test.tsx
  • src/renderer/src/components/sidebar/SidebarNav.tsx
  • src/renderer/src/components/sidebar/SidebarToolbar.test.tsx
  • src/renderer/src/components/sidebar/SidebarToolbar.tsx
  • src/renderer/src/hooks/resolve-zoom-target.ts
  • src/renderer/src/hooks/useSettingsNavigationMetadata.test.ts
  • src/renderer/src/hooks/useSettingsNavigationMetadata.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/right-sidebar-visibility.ts
  • src/renderer/src/lib/settings-navigation-types.ts
  • src/renderer/src/store/slices/ui.test.ts
  • src/renderer/src/store/slices/ui.ts
  • src/shared/artifacts.ts
  • src/shared/constants.ts
  • src/shared/top-level-view.ts
  • src/shared/types.ts
💤 Files with no reviewable changes (1)
  • src/renderer/src/components/sidebar/SidebarToolbar.tsx

Comment on lines +7 to +16
return artifacts
.map(({ artifact, shareUrl }) => {
const name = artifact.title || artifact.originalFileName || artifact.slug
return `${name}\n id: ${artifact.slug}\n updated: ${artifact.updatedAt}\n url: ${shareUrl}`
})
.join('\n\n')
}

export function formatArtifactShared(item: ArtifactListItem): string {
return item.shareUrl

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.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Sanitize artifact fields before terminal output.

An artifact title or file name can contain control characters. Listing it can inject terminal sequences or spoof adjacent records. Sanitize all dynamic fields, including shareUrl, before composing text output.

Proposed fix
+function formatTerminalText(value: string): string {
+  return value.replace(/[\u0000-\u001F\u007F]/g, '')
+}
+
 export function formatArtifactList(artifacts: readonly ArtifactListItem[]): string {
@@
-      const name = artifact.title || artifact.originalFileName || artifact.slug
-      return `${name}\n  id: ${artifact.slug}\n  updated: ${artifact.updatedAt}\n  url: ${shareUrl}`
+      const name = formatTerminalText(artifact.title || artifact.originalFileName || artifact.slug)
+      return `${name}\n  id: ${formatTerminalText(artifact.slug)}\n  updated: ${formatTerminalText(artifact.updatedAt)}\n  url: ${formatTerminalText(shareUrl)}`
@@
 export function formatArtifactShared(item: ArtifactListItem): string {
-  return item.shareUrl
+  return formatTerminalText(item.shareUrl)
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
return artifacts
.map(({ artifact, shareUrl }) => {
const name = artifact.title || artifact.originalFileName || artifact.slug
return `${name}\n id: ${artifact.slug}\n updated: ${artifact.updatedAt}\n url: ${shareUrl}`
})
.join('\n\n')
}
export function formatArtifactShared(item: ArtifactListItem): string {
return item.shareUrl
function formatTerminalText(value: string): string {
return value.replace(/[\u0000-\u001F\u007F]/g, '')
}
return artifacts
.map(({ artifact, shareUrl }) => {
const name = formatTerminalText(artifact.title || artifact.originalFileName || artifact.slug)
return `${name}\n id: ${formatTerminalText(artifact.slug)}\n updated: ${formatTerminalText(artifact.updatedAt)}\n url: ${formatTerminalText(shareUrl)}`
})
.join('\n\n')
}
export function formatArtifactShared(item: ArtifactListItem): string {
return formatTerminalText(item.shareUrl)
}

Comment on lines +14 to +18
function formatArtifactDate(value: string): string {
return new Intl.DateTimeFormat(undefined, { dateStyle: 'medium', timeStyle: 'short' }).format(
new Date(value)
)
}

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== locate relevant files =="
fd -a 'ArtifactsPage\.tsx|STYLEGUIDE\.md|.*\.ts$' src renderer docs 2>/dev/null | sed 's#^\./##' | head -200

echo
echo "== ArtifactsPage relevant section =="
if [ -f src/renderer/src/components/artifacts/ArtifactsPage.tsx ]; then
  nl -ba src/renderer/src/components/artifacts/ArtifactsPage.tsx | sed -n '1,80p'
fi

echo
echo "== search intl locale usage =="
rg -n "getIntlLocale|Intl\.DateTimeFormat|DateTimeFormat\(" src/renderer/src docs/STYLEGUIDE.md 2>/dev/null || true

echo
echo "== search Intl locale pattern in renderer tsx =="
rg -n "new Intl\.|Intl\.|DateTimeFormat|toLocale" src/renderer/src --glob '*.tsx' --glob '*.ts' 2>/dev/null | head -200 || true

Repository: stablyai/orca

Length of output: 12824


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== ArtifactsPage.tsx =="
nl -ba src/renderer/src/components/artifacts/ArtifactsPage.tsx | sed -n '1,120p'

echo
echo "== imports/usages in ArtifactsPage.tsx =="
rg -n "import|getIntlLocale|formatArtifactDate|Intl\.DateTimeFormat|DateTimeFormat" src/renderer/src/components/artifacts/ArtifactsPage.tsx || true

echo
echo "== getIntlLocale definitions/usages =="
rg -n "getIntlLocale|getInternationalLocale|intlLocale|Locale" src/renderer/src --glob '*.ts' --glob '*.tsx' 2>/dev/null | head -200 || true

echo
echo "== STYLEGUIDE relevant sections =="
rg -n -C 3 "Intl|intl|locale|DateTime|language|translation|i18n" docs/STYLEGUIDE.md 2>/dev/null || true

echo
echo "== behavioral probe for Intl undefined and explicit locales =="
node - <<'JS'
const host = Intl.DateTimeFormat().resolvedOptions().locale
const undef = Intl.DateTimeFormat(undefined, { dateStyle: 'medium', timeStyle: 'short' }).resolvedOptions().locale
const explicit = Intl.DateTimeFormat('en-US', { dateStyle: 'medium', timeStyle: 'short' }).resolvedOptions().locale
console.log(JSON.stringify({host, undef, explicit}))
console.log(Intl.DateTimeFormat(undefined, { dateStyle: 'medium', timeStyle: 'short' }).format(new Date('2026-08-01T12:30:00Z')))
console.log(Intl.DateTimeFormat('en-US', { dateStyle: 'medium', timeStyle: 'short' }).format(new Date('2026-08-01T12:30:00Z')))
console.log(Intl.DateTimeFormat('de-DE', { dateStyle: 'medium', timeStyle: 'short' }).format(new Date('2026-08-01T12:30:00Z')))
JS

Repository: stablyai/orca

Length of output: 215


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== ArtifactsPage.tsx =="
awk '{printf "%6d\t%s\n", NR, $0}' src/renderer/src/components/artifacts/ArtifactsPage.tsx | sed -n '1,120p'

echo
echo "== imports/usages in ArtifactsPage.tsx =="
rg -n "import|getIntlLocale|formatArtifactDate|Intl\.DateTimeFormat|DateTimeFormat" src/renderer/src/components/artifacts/ArtifactsPage.tsx || true

echo
echo "== getIntlLocale definitions/usages =="
rg -n "getIntlLocale|getInternationalLocale|intlLocale|Locale" src/renderer/src --glob '*.ts' --glob '*.tsx' 2>/dev/null | head -200 || true

echo
echo "== STYLEGUIDE relevant sections =="
rg -n -C 3 "Intl|intl|locale|DateTime|language|translation|i18n" docs/STYLEGUIDE.md 2>/dev/null || true

echo
echo "== behavioral probe for Intl undefined and explicit locales =="
node - <<'JS'
const host = Intl.DateTimeFormat().resolvedOptions().locale
const undef = Intl.DateTimeFormat(undefined, { dateStyle: 'medium', timeStyle: 'short' }).resolvedOptions().locale
const explicit = Intl.DateTimeFormat('en-US', { dateStyle: 'medium', timeStyle: 'short' }).resolvedOptions().locale
console.log(JSON.stringify({host, undef, explicit}))
console.log(Intl.DateTimeFormat(undefined, { dateStyle: 'medium', timeStyle: 'short' }).format(new Date('2026-08-01T12:30:00Z')))
console.log(Intl.DateTimeFormat('en-US', { dateStyle: 'medium', timeStyle: 'short' }).format(new Date('2026-08-01T12:30:00Z')))
console.log(Intl.DateTimeFormat('de-DE', { dateStyle: 'medium', timeStyle: 'short' }).format(new Date('2026-08-01T12:30:00Z')))
JS

Repository: stablyai/orca

Length of output: 27136


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== i18n.ts relevant implementation =="
awk '{printf "%6d\t%s\n", NR, $0}' src/renderer/src/i18n/i18n.ts | sed -n '1,130p'

echo
echo "== relative-time-format implementation =="
awk '{printf "%6d\t%s\n", NR, $0}' src/renderer/src/i18n/relative-time-format.ts | sed -n '1,80p'

echo
echo "== usage sample in StatsPane =="
awk '{printf "%6d\t%s\n", NR, $0}' src/renderer/src/components/stats/StatsPane.tsx | sed -n '35,60p'

echo
echo "== all file usages of formatArtifactDate =="
rg -n "formatArtifactDate" src/renderer/src/components/artifacts/ArtifactsPage.tsx || true

Repository: stablyai/orca

Length of output: 9172


Format artifact timestamps with Orca’s Intl locale.

Pass getIntlLocale() to Intl.DateTimeFormat; undefined lets Android pick the host locale instead and can show a different artifact date format from the selected language.

Source: Learnings

expect(html).toContain('Sign out of Orca?')
expect(html).toContain(
'You&#x27;ll be signed out of Orca on this device. Your local projects and worktrees won&#x27;t be affected.'
'Artifacts and Orca Relay will be unavailable until you sign in again. Your local projects and worktrees won&#x27;t be affected.'

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use the rendered apostrophe in the assertion.

Line 34 contains &#x27; in a JavaScript string. The test searches for those literal characters. The dialog renders won't, so the assertion cannot match.

Proposed fix
-      'Artifacts and Orca Relay will be unavailable until you sign in again. Your local projects and worktrees won&`#x27`;t be affected.'
+      "Artifacts and Orca Relay will be unavailable until you sign in again. Your local projects and worktrees won't be affected."
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
'Artifacts and Orca Relay will be unavailable until you sign in again. Your local projects and worktrees won&#x27;t be affected.'
"Artifacts and Orca Relay will be unavailable until you sign in again. Your local projects and worktrees won't be affected."

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

Caution

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

⚠️ Outside diff range comments (2)
src/renderer/src/components/artifacts/ArtifactsPage.tsx (1)

30-33: 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Clear artifact state after sign-out.

When signedIn becomes false, Line 31 returns without clearing artifacts. If another account signs in, the old account’s artifact metadata and public links render while the new list request runs.

Clear artifacts and selectedSlug before returning. Add a sign-out then sign-in test.

Proposed fix
     if (!signedIn) {
+      setArtifacts([])
+      setSelectedSlug(null)
       return
     }
src/renderer/src/components/settings/ArtifactsSettingsPane.tsx (1)

94-97: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Describe both supported navigation paths.

When the user hides the sidebar shortcut, this instruction is false. State that Artifacts can open from the sidebar or Settings.

🧹 Nitpick comments (1)
src/renderer/src/components/artifacts/ArtifactPreview.tsx (1)

31-34: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use the renderer background token for preview chrome.

Both sites hard-code white. This prevents the preview container from following the active theme.

  • src/renderer/src/components/artifacts/ArtifactPreview.tsx#L31-L34: replace #ffffff with the configured background token.
  • src/renderer/src/components/artifacts/ArtifactPreview.tsx#L105-L105: replace bg-white with bg-background.

As per coding guidelines: “All UI work, including ... color ... must ... use tokens from src/renderer/src/assets/main.css.”

Source: Coding guidelines


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b41364f2-3867-4ce9-8939-240aa434082e

📥 Commits

Reviewing files that changed from the base of the PR and between 7a99ba9 and 84a45eb.

📒 Files selected for processing (15)
  • src/renderer/src/components/artifacts/ArtifactActions.tsx
  • src/renderer/src/components/artifacts/ArtifactCollection.tsx
  • src/renderer/src/components/artifacts/ArtifactPreview.tsx
  • src/renderer/src/components/artifacts/ArtifactsPage.test.tsx
  • src/renderer/src/components/artifacts/ArtifactsPage.tsx
  • src/renderer/src/components/settings/ArtifactsSettingsPane.test.tsx
  • src/renderer/src/components/settings/ArtifactsSettingsPane.tsx
  • src/renderer/src/components/settings/artifacts-settings-search.ts
  • src/renderer/src/components/sidebar/SidebarNav.test.tsx
  • src/renderer/src/components/sidebar/SidebarNav.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/store/slices/ui.test.ts
  • src/renderer/src/store/slices/ui.ts
  • src/shared/constants.ts
  • src/shared/types.ts
🚧 Files skipped from review as they are similar to previous changes (6)
  • src/renderer/src/components/settings/artifacts-settings-search.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/constants.ts
  • src/renderer/src/components/sidebar/SidebarNav.tsx
  • src/renderer/src/store/slices/ui.test.ts
  • src/renderer/src/components/artifacts/ArtifactsPage.test.tsx

@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 platform limitations.

⚠️ Outside diff range comments (1)
src/renderer/src/hooks/useSettingsNavigationMetadata.ts (1)

214-223: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use generated localization keys.

Replace the added semantic key suffixes with the first 10 SHA-1 characters of <filePath>:<text>. Regenerate the locale resources with the matching keys.

  • src/renderer/src/hooks/useSettingsNavigationMetadata.ts#L214-L223: Generate keys for the Artifacts title and description.
  • src/renderer/src/hooks/useSettingsNavigationMetadata.ts#L253-L262: Generate keys for the Orca Account title and description.
  • src/renderer/src/hooks/useSettingsNavigationMetadata.ts#L336-L345: Generate keys for the Automations title and description.

Based on learnings, generate locale keys as the first 10 characters of the SHA-1 hash of <filePath>:<text>.

Source: Learnings


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d5bdf881-c162-430e-9e02-46d4a9c1ea92

📥 Commits

Reviewing files that changed from the base of the PR and between 84a45eb and 1ff9bef.

📒 Files selected for processing (13)
  • src/renderer/src/components/artifacts/ArtifactActions.tsx
  • src/renderer/src/components/artifacts/ArtifactCollection.test.tsx
  • src/renderer/src/components/artifacts/ArtifactCollection.tsx
  • src/renderer/src/components/artifacts/ArtifactPreview.tsx
  • src/renderer/src/components/artifacts/ArtifactsPage.test.tsx
  • src/renderer/src/components/settings/AutomationsSettingsPane.test.tsx
  • src/renderer/src/components/settings/AutomationsSettingsPane.tsx
  • src/renderer/src/components/settings/Settings.tsx
  • src/renderer/src/components/settings/automations-settings-search.ts
  • src/renderer/src/hooks/useSettingsNavigationMetadata.test.ts
  • src/renderer/src/hooks/useSettingsNavigationMetadata.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/settings-navigation-types.ts
🚧 Files skipped from review as they are similar to previous changes (5)
  • src/renderer/src/lib/settings-navigation-types.ts
  • src/renderer/src/components/artifacts/ArtifactCollection.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/components/artifacts/ArtifactPreview.tsx
  • src/renderer/src/components/artifacts/ArtifactsPage.test.tsx

Comment on lines +3 to +20
import { translateSearchKeyword } from './settings-search-keywords'

export const getAutomationsSettingsSearchEntries = createLocalizedCatalog(() => [
{
title: translate('auto.components.settings.automations.showButton', 'Show Automations Button'),
description: translate(
'auto.components.settings.automations.showButtonDescription',
'Show the Automations shortcut in the sidebar.'
),
keywords: [
...translateSearchKeyword(
'auto.components.settings.automations.keywordAutomations',
'automations'
),
...translateSearchKeyword('auto.components.settings.automations.keywordSchedule', 'schedule'),
...translateSearchKeyword('auto.components.settings.automations.keywordAgent', 'agent'),
...translateSearchKeyword('auto.components.settings.automations.keywordRuns', 'runs')
]

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Keep settings search keywords in English.

Replace translateSearchKeyword() calls with literal English keywords. Settings search keywords must not vary by UI language.

Based on learnings, “keywords arrays used for settings search … should intentionally remain untranslated/English for consistency with other panes.”

Proposed fix
-import { translateSearchKeyword } from './settings-search-keywords'
 
 ...
-    keywords: [
-      ...translateSearchKeyword(
-        'auto.components.settings.automations.keywordAutomations',
-        'automations'
-      ),
-      ...translateSearchKeyword('auto.components.settings.automations.keywordSchedule', 'schedule'),
-      ...translateSearchKeyword('auto.components.settings.automations.keywordAgent', 'agent'),
-      ...translateSearchKeyword('auto.components.settings.automations.keywordRuns', 'runs')
-    ]
+    keywords: ['automations', 'schedule', 'agent', 'runs']
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import { translateSearchKeyword } from './settings-search-keywords'
export const getAutomationsSettingsSearchEntries = createLocalizedCatalog(() => [
{
title: translate('auto.components.settings.automations.showButton', 'Show Automations Button'),
description: translate(
'auto.components.settings.automations.showButtonDescription',
'Show the Automations shortcut in the sidebar.'
),
keywords: [
...translateSearchKeyword(
'auto.components.settings.automations.keywordAutomations',
'automations'
),
...translateSearchKeyword('auto.components.settings.automations.keywordSchedule', 'schedule'),
...translateSearchKeyword('auto.components.settings.automations.keywordAgent', 'agent'),
...translateSearchKeyword('auto.components.settings.automations.keywordRuns', 'runs')
]
export const getAutomationsSettingsSearchEntries = createLocalizedCatalog(() => [
{
title: translate('auto.components.settings.automations.showButton', 'Show Automations Button'),
description: translate(
'auto.components.settings.automations.showButtonDescription',
'Show the Automations shortcut in the sidebar.'
),
keywords: ['automations', 'schedule', 'agent', 'runs']

Source: Learnings

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