Skip to content

[Draft] OBI-30: Signed-in portal requests and approvals #20

Done
13 of 25 issues completed
Done

Description

@ephico2real2

Part of #8

Story

As a requester and approver, I want to submit changes and review requests through the portal.

Business value

The plan (#6) sets this release exit for phase 2: "rnd namespace POST to Synced with one portal approval and no manual Git step; edited approved PR fails cmapi check. Auto-approval remains disabled."

Context

The comment of 2026-11-06 on this issue says: "Partly delivered by #4, not proven. cmapi-portal-ui has the nine tabs on mock data, with no sign-in and no API call, so the main criterion (real OIDC and API data) is not met."

Acceptance criteria

  • React/TypeScript/PatternFly portal uses real OIDC and API data for create, requests and approvals with shared paging, shown by a new test in cmapi-portal-ui/tests/, not written yet
  • Loading, empty, denied, expired-session and API-error states work; actions reflect server permissions, shown by a new test in cmapi-portal-ui/tests/, not written yet
  • Core flows work by keyboard at 390/820/1440 px; demo data cannot appear in production, shown by a new test in cmapi-portal-ui/tests/, not written yet

Tasks

Out of scope

  • The source states none for this story.

Evidence

Definition of done

  • Mockup approved, or the work has no screen and no API shape
  • Draft pull request open
  • Build: tests fail before the change and pass after it
  • Documented where a reader looks for it
  • Review ruled
  • Merged with its proof
  • Released on the default branch
  • The owner approves, after a comment cites the proof for each criterion and its cluster

Class

INV. The story adds a new capability to the product.

Source

Status: Draft backlog. No sprint commitment.

Owner in Paperclip: Ahsoka. Ahsoka mentors Luke and assigns bounded engineering work after technical review.

Source: OBI-30.
Epic: #8. Plan, release windows, and review gates: #6.

Dependencies: #7 (OBI-21), OBI-19, OBI-20.

Planned story; phase 2, provisional 8 points (Ahsoka/Yoda to validate).

  • Attach automated or reproducible evidence for each criterion; cover denial/failure paths.
  • Read the plan; Yoda owns design choices. Keep this in backlog until prerequisite phase evidence is accepted. Ahsoka may split and delegate to Luke with mentorship.

Language acceptance criterion

Before sprint entry, the owner must define technical terms and attach language review evidence for this text revision.
Use simple-english 2.1.1, Strict mode. Index #6 records the vocabulary source and review limits.

The source criteria remain unchanged. Language review remains open.

Sub-issues

Sub-issues

13 of 25 Issues completed
Loading 25 sub-issues

Activity

  1. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    Partly delivered by #4, not proven. cmapi-portal-ui has the nine tabs on mock data, with no sign-in and no API call, so the main criterion (real OIDC and API data) is not met. The real work is Wave 6 in build-tracker.md. This story stays open until each acceptance criterion has evidence.

  2. added
    In-Progress
    class:INV
    on Nov 13, 2026
  3. added
    status:partly-fixed
    story
    on Nov 13, 2026
  4. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    Work tag: In-Progress. A part of this story is merged: PR #4, merge commit 5dfec1e, on 2026-11-05 (build-tracker.md, "Stories and epics"). The portal shows mock data, with no sign-in and no API call. The story is not complete, and no cluster proves it. Read from gh and git at 2026-11-13T09:18Z.

  5. 6 remaining items

  6. ephico2real2 commented on Nov 25, 2026

    @ephico2real2
    OwnerAuthor

    Held, not closed (2026-11-25). OB1 run 40, on CRC main c2b89f5d71, proved by keyboard only in the installed Chrome 158 at 1440, 820 and 390 px:

    • the requester's walk up to the dry run: 15 PASS (ob1-run40/logs/walk20-req.out);
    • the approver's Approvals and Requests tabs: 13 PASS (walk20-appr.out);
    • the expired session (walk20-exp.out) and an API error with "Try again".

    CI already proves that the production build holds no demo data (cmapi-portal-ui/tests/api/bundle.test.mjs).

    Criterion 3 is still open: submitting a request and approving it in the portal, by keyboard. Run 40 made its writes through the API. The coordinator first asked the owner to approve closing this story without naming that gap, so the story stays open until a keyboard submit-and-approve walk on CRC passes.

  7. ephico2real2 commented on Nov 25, 2026

    @ephico2real2
    OwnerAuthor

    Story #20, signed-in portal requests and approvals: proof, and closed with the owner's approval (2026-11-25).

    Part of #7. Cluster: CRC, main c2b89f5d71, with CI's images by digest: api and worker sha256:c939bfc5…, portal sha256:62328ef6…. Every walk ran in the installed Chrome 158 through the Route.

    Criterion 1: "React/TypeScript/PatternFly portal uses real OIDC and API data for create, requests and approvals with shared paging"

    • Sign-in, Create, Requests and Approvals work on the API through the Route: run 13 l.10-14 (130ff6c).
    • The later tabs work on live data: runs 15, 17, 21, 23, 31 and 32.
    • Paging: CI cmapi-portal-ui/tests/api/portal.test.mjs.

    Criterion 2: "Loading, empty, denied, expired-session and API-error states work; actions reflect server permissions"

    • Denied: a viewer has no New namespace and no Approvals tab (run 13 l.13).
    • Expired session, OB1 run 40: after the Keycloak session ended, the next call shows "Sign-in did not complete. Session not active" with "Sign in again", at 1440 and 390 px (ob1-run40/logs/walk20-exp.out).
    • API error, OB1 run 40: GET of an unknown request returns 404, and the page shows "The request did not load." with "Try again". Pressing "Try again" by keyboard sends the request again (walk20-req.out).
    • Loading and empty: CI portal.test.mjs.

    Criterion 3: "Core flows work by keyboard at 390/820/1440 px; demo data cannot appear in production"

    Every step below was done by keyboard only.

    • Requester, OB1 run 40: Keycloak sign-in, then New namespace, the form, and "Check (dry run)" at 1440, 820 and 390 px. 15 PASS, 537 keys (walk20-req.out).
    • Approver, OB1 run 40: Approvals, Requests, and a request opened from the list, at the three widths. 13 PASS (walk20-appr.out).
    • Submit and approve in the portal, OB1 run 41, on cmap-live-g-dev:
      1. Change: label company.net/cl from 1 to 2, a sensitive key that needs one platform approver.
      2. Submit: the requester, in the Namespaces tab, ran the dry run, then Submit. The PATCH carried If-Match and an Idempotency-Key and was answered 202 req-20261125-0005 pending_approval.
      3. Approve: cmapi.approver-platform, in Approvals, pressed Approve, answered 200.
      4. Delivery: the change reached synced through config PR [Draft] OBI-43: Opt-in rightsizing and placement backtests #29.
      5. Undo: the same way, as req-20261125-0006 through PR Portal UIs: apply the adversarial review's fixes #30.
      • Widths: Submit and Approve were pressed at 1440 px. At 820 and 390 px the walk proves that focus reaches an enabled Submit and Approve with no page-wide horizontal scroll.
      • End state: the namespace and Git equal their start, except cmapi.net/request-id. No request and no PR is open.
      • Records: ob1-run41/resume.md, logs/walk41-*.out, screens/w41*.
    • No demo data: CI cmapi-portal-ui/tests/api/bundle.test.mjs checks that the production build holds none of the mockup's sample names, and that the demo build holds every one.

    Still open, tracked as their own issues

    #236 (Medium, email links), #306 (the ProgressStep accessibility warning), and the other portal issues listed in the audit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-Progressclass:INVstatus:partly-fixedstory

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions