← Back to Pull requests

AAP-102847 Enlarge Variables editor on the Prompt on Launch step #3923

Open
unknown opened this pull request with 333 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 19, 2026 16:56 UTC
Author

Summary

The Variables editor on the Prompt on Launch step rendered about 310px wide and one line tall when empty, which made it hard to enter or paste extra variables.

Two causes in NodePromptsStep.tsx:

  • Width: the step rendered its own PageFormGrid inside the wizard's PageFormGrid, so the nested grid landed in a single narrow column track (311px of a 964px row). It now spans all columns (grid-column: 1 / -1). This also widens the other fields on the step.

  • Height: DataEditor sets its height from the line count, so an empty value collapses to one line. The Variables editor now has a 300px minimum height (!important is needed to override the inline height).
  • The step is shared by the job template launch wizard and the workflow node wizard, so both are affected.

    Jira: https://redhat.atlassian.net/browse/AAP-102847

    Type of Change

  • Bug fix

  • Enhancement

  • Tests

  • Documentation

  • Other (please specify)
  • Risk Analysis - REQUIRED

  • High

  • Medium

  • Low — Single wizard step styling fix, no framework change.
  • Shared Framework Scope

  • This PR does not mix shared framework/ changes with unrelated feature work or product rollout changes. If it does, split the work into a dedicated framework PR and follow-up PRs, or explain why splitting is not feasible.

  • If this PR changes framework/, it includes complete relevant framework test coverage and representative validation of affected consuming workspaces.

  • If this PR changes framework/, its description documents the compatibility impact, including affected consumers or supported behavior.
  • Testing

    Ephemeral E2E Tests

    Will trigger with /run-playwright once preliminary checks pass.

    Manual Testing

    Ran frontend/awx with Vite and loaded /templates/job-template/1/launch in Playwright against mocked API responses (no real AWX backend). Measured the editor before and after: 311x33px before, 964x300px after.

    Also ran Prettier, ESLint and the guardrail lint on the changed file. The guardrail run still reports max-lines-per-function on NodePromptsStep (214 lines, limit 200). devel already had that warning (212 lines).

    Vitest for WorkflowVisualizer and TemplatePage: 879 passed, 9 failed. The 9 failures are in TemplateJobs, TemplateSurvey, TemplateTeamAccess and TemplateUserAccess, which this PR does not touch. The same tests fail on clean devel. There is no new unit test, since jsdom cannot measure layout.

    Screenshots

    <!-- TODO: attach before and after screenshots (required for UI changes). -->

    🤖 Generated with Claude Code

    Diff: 333 lines (+249 / -84) across 4 files Reviewer: redhat-chai-bot Review duration: 4515m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 333 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.348
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #3923"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.1% (MEDIUM) · Higher = larger blast radius
    42.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.5% · Safe to merge
    22.5%