Skip to content

feat: added anti-corruption layer for login entities - #384

Merged
Redtigercod4 merged 7 commits into
pulp:mainfrom
Redtigercod4:feat/login-entities
Oct 29, 2026
Merged

Redtigercod4 merged 7 commits into
pulp:mainfrom
Redtigercod4:feat/login-entities

Conversation

@Redtigercod4

@Redtigercod4 Redtigercod4 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the anti-corruption layer (ACL) for both core/login and core/status entities, building on from the @pulp-ui/sdk bindings. The SDK has now been configured to produce Zod schemas instead of TypeScript interfaces to enable the use of Zod codecs in a domain-driven pattern. Having this thin layer for each entity client, it means everything can be controlled in one location so that API changes are easily absorbed and issues rectified.

To ensure the SDK is consumable by the root project, it now compiles into a /dist folder under TypeScript 7.

Changes

  1. Switched orval schema output from TypeScript interfaces to Zod models.
  2. Generated a login client and models by adding Login tag to orval.
  3. Added src/entities/core/status and src/entities/core/login, each with a client.ts and model.ts structure.
  4. Added vitest at root level for unit testing new ACL clients and models.
  5. Added a prepare step to allow SDK to be built prior to installation by root project.

Out of Scope

  1. Login UI and routing

Linked Issues & Epics

Epic: pulpcore

AI Assistance

Claude (Sonnet 5) was consulted during development for discussions, suggestions and research. All code was written and reviewed by author.

Sources

  1. https://zod.dev/codecs
  2. https://orval.dev/docs/guides/zod/

@Redtigercod4 Redtigercod4 self-assigned this Oct 22, 2026
@Redtigercod4 Redtigercod4 added enhancement New feature or request javascript Pull requests that update Javascript code next Features aligned to the next-gen PulpUI labels Oct 22, 2026
@Redtigercod4 Redtigercod4 added this to the Epic: pulpcore milestone Oct 22, 2026
@Redtigercod4
Redtigercod4 marked this pull request as ready for review October 22, 2026 13:44
@Redtigercod4

Copy link
Copy Markdown
Contributor Author

Reviewed using Anthropic Opus 5 Model.

@Redtigercod4
Redtigercod4 merged commit 69b016d into pulp:main Oct 29, 2026
4 checks passed
@Redtigercod4
Redtigercod4 deleted the feat/login-entities branch October 29, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript Pull requests that update Javascript code next Features aligned to the next-gen PulpUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant