Add AI assignment inventory settings#587
Merged
Merged
Conversation
… bad-id writes, preserve in-flight drafts Self-review fixes for the AI assignment inventory page: - Add the missing NAV_COMMANDS entry for /settings/ai-assignments so the page is reachable via ⌘K and voice ui_navigate (every other settings sub-tab is registered; the fail-fast guards only catch malformed entries, not omissions). Root cause: documented "every new page → nav manifest" step was skipped. - updateAiAssignment now throws ServerError with 400/404 instead of a plain Error (which mapped to 500) for unknown/blank assignment ids and missing provider/agent/stage targets. - Gate the cos.task.* branch on getScheduleStatus().tasks — its create-if-missing updateTaskInterval would otherwise write a junk schedule record for an arbitrary id. Surface a missing feature agent (updateFeatureAgent returns null) as a 404 instead of silent success. - AiAssignmentsTab: saving one row (or a bulk migration) no longer discards unsaved edits in other rows — reconcileDrafts resets only the rows actually saved and preserves the rest. - Add aiAssignments.test.js covering the dispatch table and the new guards.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
Notes