GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — fix(admin): surface agency-assignment errors instead of silent success by kiodreambau · Pull Request #258 · OpenResilienceInitiative/ORISO-Admin Conversation
Contributor
ProblemWhen creating/editing a consultant, a rejected agency assignment was invisible: the backend swallowed validation failures (returned Changes
Scope noteAgency-admin assignment ( Verification
Related
🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
When creating/editing a consultant, a rejected agency assignment used to be invisible: the backend swallowed validation failures (returning 200) and the frontend showed a generic toast at best. Two changes: - Client-side coverage check (mirrors ADR-003 ConsultantTopicAgencyCompatibilityValidator): every selected topic must be offered by at least one selected agency. On mismatch we set an antd field error on the topics field naming the offending topics and block submit, so the user fixes it before any request goes out. Logic extracted to a pure, unit-tested util (utils/topicAgencyCoverage.ts). - putAgenciesForCounselor now rejects with the raw Response (BAD_REQUEST_WITH_RESPONSE + CATCH_ALL_SILENT) instead of showing a generic CATCH_ALL toast, so the mutation's onError surfaces the backend's specific message via extractApiErrorMessage (e.g. topic/agency mismatch that slipped past the client-side check). New i18n key message.error.topicsNotCoveredByAgencies (de/en). Verified: tsc, eslint, prettier, vitest (topicAgencyCoverage 6/6). Full form flow needs a logged-in dev session and was not driven in a browser. Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | ||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |