mirror of
https://github.com/stablyai/orca.git
synced 2026-10-18 08:03:22 +00:00
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:
@@ -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.'
|
||||
|
||||
Reference in New Issue
Block a user