Skip to content

IS-11241 Rename HaapiStepper UI components to HaapiStepper<Name>UI#144

Merged
aleixsuau merged 4 commits intointegration/IS-5161/login-web-appfrom
feature/IS-11241/rename-haapistepper-ui-components
Apr 30, 2026
Merged

IS-11241 Rename HaapiStepper UI components to HaapiStepper<Name>UI#144
aleixsuau merged 4 commits intointegration/IS-5161/login-web-appfrom
feature/IS-11241/rename-haapistepper-ui-components

Conversation

@aleixsuau
Copy link
Copy Markdown

@aleixsuau aleixsuau commented Apr 22, 2026

Summary

  • Rename the 6 public UI components (Actions, Link, Links, Messages, ClientOperation, HaapiSelector) plus HaapiStepperForm and the message-element factory to the established HaapiStepper<Name>UI convention (matching existing HaapiStepperStepUI, HaapiStepperFormFieldUI, etc.).
  • Motivation: disambiguate React components from the HAAPI data interfaces they render (HaapiStepperLink vs HaapiStepperLinkUI, etc.), prevent future import collisions, and make the UI vs data layer obvious at a glance.
  • Scope is intentionally limited to UI components — types, hooks, contexts, and render-interceptor types are unchanged.
  • Fixes stale HaapiUIStep and dead Form.tsx references in README and JSDoc along the way.

Jira: IS-11241

Test plan

  • Runtime smoke test: dev server + HAAPI flow covering each renamed component (authenticator selector, form step, links, messages, client-operation step)

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes naming for HAAPI Stepper public React UI components by renaming them to the established HaapiStepper<Name>UI convention, reducing ambiguity/collisions with similarly named HAAPI data types, and updates exports, tests, and documentation accordingly.

Changes:

  • Rename public UI components (eg Actions, Links, Messages, Link, ClientOperation, HaapiSelector, HaapiStepperForm) to HaapiStepper<Name>UI and update all internal usages.
  • Rename the messages element factory export to defaultHaapiStepperMessageElementFactory and update references.
  • Update barrel exports and various JSDoc/README examples to reference the new component names.

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/login-web-app/src/haapi-stepper/util/generic-render-interceptor.tsx Updates JSDoc example to use the renamed link UI component.
src/login-web-app/src/haapi-stepper/ui/messages/defaultHaapiStepperMessageElementFactory.tsx Renames the exported default message element factory.
src/login-web-app/src/haapi-stepper/ui/messages/HaapiStepperMessagesUI.tsx Renames Messages component and updates factory import/usage.
src/login-web-app/src/haapi-stepper/ui/links/defaultHaapiStepperLinkElementFactory.tsx Updates default link element factory to use HaapiStepperLinkUI.
src/login-web-app/src/haapi-stepper/ui/links/HaapiStepperLinksUI.tsx Renames Links component and its props interface.
src/login-web-app/src/haapi-stepper/ui/links/HaapiStepperLinksUI.spec.tsx Updates tests to import/render HaapiStepperLinksUI.
src/login-web-app/src/haapi-stepper/ui/links/HaapiStepperLinkUI.tsx Renames Link component to HaapiStepperLinkUI.
src/login-web-app/src/haapi-stepper/ui/links/HaapiStepperLinkUI.spec.tsx Updates tests to import/render HaapiStepperLinkUI.
src/login-web-app/src/haapi-stepper/ui/index.ts Updates UI barrel exports to the new component names.
src/login-web-app/src/haapi-stepper/ui/actions/defaultHaapiStepperActionElementFactory.tsx Updates action rendering factory to use renamed UI components (form/selector/client operation).
src/login-web-app/src/haapi-stepper/ui/actions/HaapiStepperActionsUI.tsx Renames Actions component and its props interface.
src/login-web-app/src/haapi-stepper/ui/actions/HaapiStepperActionsUI.spec.tsx Updates tests to import/render HaapiStepperActionsUI.
src/login-web-app/src/haapi-stepper/feature/steps/HaapiStepperStepUI.tsx Switches step UI to use the renamed UI components for actions/links/messages.
src/login-web-app/src/haapi-stepper/feature/steps/HaapiStepperStepUI.spec.tsx Updates tests that compose actions UI to use HaapiStepperActionsUI.
src/login-web-app/src/haapi-stepper/feature/stepper/HaapiStepper.tsx Updates JSDoc examples to reference HaapiStepperStepUI and renamed UI components.
src/login-web-app/src/haapi-stepper/feature/index.ts Updates feature barrel exports to renamed UI components.
src/login-web-app/src/haapi-stepper/feature/actions/selector/HaapiStepperSelectorUI.tsx Renames selector UI component and updates nested form UI usage.
src/login-web-app/src/haapi-stepper/feature/actions/form/HaapiStepperFormUI.tsx Renames form UI component and updates JSDoc references/examples accordingly.
src/login-web-app/src/haapi-stepper/feature/actions/form/HaapiStepperFormUI.spec.tsx Updates form UI tests to import/render HaapiStepperFormUI.
src/login-web-app/src/haapi-stepper/feature/actions/form/HaapiStepperFormContext.ts Updates the hook error message to reference <HaapiStepperFormUI>.
src/login-web-app/src/haapi-stepper/feature/actions/client-operation/HaapiStepperClientOperationUI.tsx Renames client operation UI component and its props interface + docs example.
src/login-web-app/src/haapi-stepper/README.md Updates README examples/links and documents the new naming convention.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/login-web-app/src/haapi-stepper/feature/stepper/HaapiStepper.tsx Outdated
Comment thread src/login-web-app/src/haapi-stepper/feature/stepper/HaapiStepper.tsx Outdated
Comment thread src/login-web-app/src/haapi-stepper/README.md Outdated
Comment thread src/login-web-app/src/haapi-stepper/README.md
@aleixsuau aleixsuau marked this pull request as ready for review April 24, 2026 08:28
aleixsuau and others added 3 commits April 30, 2026 15:22
Rename the six UI components (Actions, Link, Links, Messages, ClientOperation,
HaapiSelector) plus HaapiStepperForm and the message element factory to the
existing HaapiStepper<Name>UI convention. This disambiguates the React
components from the HAAPI data interfaces they render (HaapiStepperLink vs
HaapiStepperLinkUI, etc.), preventing import collisions and making it obvious
at a glance which layer is being referenced. Also fixes stale HaapiUIStep and
Form.tsx references in README and JSDoc.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- HaapiStepper.tsx JSDoc example: import HaapiStepperFormUI (not the
  non-existent `Form` from `../actions/form/Form`), use it in place of
  <Form>, and destructure `selectorActions` from `currentStep.dataHelpers`
  so the snippet is copy/pasteable and type-checks.
- README: drop the dangling link to HaapiStepperMessageUI (that component
  is extracted in IS-10847 / PR #145, not in this one).
- README: fix the stale `#haapi-ui-components` anchors — the section was
  renamed to "HAAPI Stepper UI Components", so update the two in-page
  links to `#haapi-stepper-ui-components`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
… factory.

Split the single-message rendering logic out of defaultHaapiStepperMessageElementFactory
into its own HaapiStepperMessageUI component, mirroring the Link/LinkUI pattern. This
fills the singular-component gap in the public API (previously only the plural
HaapiStepperMessagesUI was exported for messages) and lets consumers render a single
message directly without reaching through the factory.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aleixsuau aleixsuau force-pushed the feature/IS-11241/rename-haapistepper-ui-components branch from 429ab4c to 66b0634 Compare April 30, 2026 13:24
@aleixsuau aleixsuau merged commit 06edcee into integration/IS-5161/login-web-app Apr 30, 2026
4 checks passed
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.

4 participants