chore: restore unrelated UI files to main (out of scope)

native-chat-session-option-labels.ts and skill-freshness-group.tsx switch
tweaks were unrelated to GitHub API outage attribution — they fix pre-existing
switch-exhaustiveness lint on main, which this PR's CI (oxlint) doesn't gate on.
Restore them to origin/main so this PR's diff stays focused; the exhaustiveness
cleanup belongs in its own change. (sync-runtime-graph.ts is already identical
to main, so no diff there to revert.)
This commit is contained in:
Brennan Benson
2026-07-17 00:37:31 -07:00
parent 4dd315dfbc
commit 5143ef2cea
2 changed files with 3 additions and 5 deletions
@@ -55,7 +55,7 @@ export function nativeChatSessionOptionDisabledReason(
'components.native-chat.composer.availableAfterSessionStarts',
'Available after the session starts.'
)
case undefined:
default:
return null
}
}
@@ -85,9 +85,7 @@ function chipTooltip(chip: SkillLocationChip): string {
// Why: a skill is skipped for one concrete reason; lead with the highest-priority
// blocking placement so the sentence explains the real cause (an edited copy is
// more useful to surface than a downstream symptom).
type SkippedReasonChip = Exclude<SkillLocationChip, 'current' | 'duplicate'>
const SKIPPED_REASON_PRIORITY: readonly SkippedReasonChip[] = [
const SKIPPED_REASON_PRIORITY: SkillLocationChip[] = [
'unrecognized',
'read-only',
'inaccessible',
@@ -136,7 +134,7 @@ function skippedReason(locations: readonly SkillLocationRow[]): string {
'auto.components.skills.SkillFreshnessRow.skippedReasonBrokenLink',
'This copy is a shortcut to something that no longer exists, so Orca left it out — you can safely delete it.'
)
case undefined:
default:
return translate(
'auto.components.skills.SkillFreshnessRow.cantUpdateReason',
'Orca left this skill out of the update command.'