Skip to content

Improve route form interaction with upfront required-field validation#41

Draft
DanielSarmiento04 with Copilot wants to merge 4 commits into
uifrom
copilot/improve-user-experience
Draft

Improve route form interaction with upfront required-field validation#41
DanielSarmiento04 with Copilot wants to merge 4 commits into
uifrom
copilot/improve-user-experience

Conversation

Copilot AI commented Apr 3, 2026

Copy link
Copy Markdown

This issue targets user experience/user interaction in the Routes workflow. The form currently allows users to attempt submission without clear, immediate guidance on missing required inputs.

  • What changed

    • Added a shared readiness predicate for route submission (route_ready_for_submit).
    • Added an upfront validation gate in handle_submit to block invalid submissions before save calls.
    • Improved validation copy to explicitly call out required fields: external path, internal path, HTTP method(s), and backend target.
  • User-facing interaction improvement

    • Users now get direct, actionable feedback when trying to save an incomplete route, instead of a later failure path.
    • Guidance text is aligned with field names to reduce ambiguity.
  • Code-level structure

    • Centralized submit-readiness logic into a dedicated function.
    • Added focused unit coverage for readiness behavior (missing backend, invalid paths/methods, valid route).
if !route_ready_for_submit(&final_route) {
    set_validation_error.set(Some(
        "Please fill in both external and internal paths, choose at least one HTTP method, and add a valid backend target before saving."
            .to_string(),
    ));
    return;
}

Copilot AI and others added 3 commits April 3, 2026 16:07
Agent-Logs-Url: https://github.com/DanielSarmiento04/kairos-rs/sessions/2677273c-064f-4fd5-a7d5-6dbb366468b1

Co-authored-by: DanielSarmiento04 <90324959+DanielSarmiento04@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DanielSarmiento04/kairos-rs/sessions/2677273c-064f-4fd5-a7d5-6dbb366468b1

Co-authored-by: DanielSarmiento04 <90324959+DanielSarmiento04@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DanielSarmiento04/kairos-rs/sessions/2677273c-064f-4fd5-a7d5-6dbb366468b1

Co-authored-by: DanielSarmiento04 <90324959+DanielSarmiento04@users.noreply.github.com>
Copilot AI changed the title [WIP] Enhance user experience and interaction Improve route form interaction with upfront required-field validation Apr 3, 2026
Copilot AI requested a review from DanielSarmiento04 April 3, 2026 16:21
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.

2 participants