Skip to content

fix(preview-middleware): fix /cards/store endpoint for CAP projects#4243

Merged
Singham-24 merged 6 commits intomainfrom
fix/preview-middleware/cap-cards-store-endpoint
Feb 27, 2026
Merged

fix(preview-middleware): fix /cards/store endpoint for CAP projects#4243
Singham-24 merged 6 commits intomainfrom
fix/preview-middleware/cap-cards-store-endpoint

Conversation

@Singham-24
Copy link
Contributor

@Singham-24 Singham-24 commented Feb 25, 2026

Description:
Fix /cards/store and /editor/i18n endpoints for CAP projects. In CAP projects, path.resolve() returns the CAP root instead of the UI5 app directory. The fix uses getSourcePath() for CAP projects which returns the correct webapp path.

@changeset-bot
Copy link

changeset-bot bot commented Feb 25, 2026

🦋 Changeset detected

Latest commit: 1425e0f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@sap-ux/preview-middleware Patch
@sap-ux/create Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Singham-24 Singham-24 force-pushed the fix/preview-middleware/cap-cards-store-endpoint branch from ee6e479 to c395e50 Compare February 25, 2026 03:53
@Singham-24 Singham-24 added the preview-middleware @sap-ux/preview-middleware label Feb 25, 2026
@Singham-24 Singham-24 marked this pull request as ready for review February 25, 2026 05:49
@Singham-24 Singham-24 requested a review from a team as a code owner February 25, 2026 05:49
Copy link
Contributor

@heimwege heimwege left a comment

Choose a reason for hiding this comment

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

see comments

@Singham-24 Singham-24 force-pushed the fix/preview-middleware/cap-cards-store-endpoint branch from da4e5db to 6605036 Compare February 25, 2026 10:50
Copy link
Contributor

@heimwege heimwege left a comment

Choose a reason for hiding this comment

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

  • review comments addressed
  • changes are straightforward
  • coverage is excellent
  • changeset ok
  • did NOT test manually

Copy link
Contributor

@Sharmavksh Sharmavksh left a comment

Choose a reason for hiding this comment

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

code change are simple / straightforward with good code coverage.
Looks good to me.

@sonarqubecloud
Copy link

@Singham-24 Singham-24 merged commit b68b558 into main Feb 27, 2026
17 checks passed
@Singham-24 Singham-24 deleted the fix/preview-middleware/cap-cards-store-endpoint branch February 27, 2026 08:43
devinea added a commit that referenced this pull request Feb 27, 2026
* origin/main:
  fix(infra): upgrade fast-xml-parser (#4268)
  chore: apply latest changesets
  fix(ui-service-inq): use hidenewsystem prompt option for ui service generator (#4258)
  fix(infra): basic-ftp (#4259)
  Improve package validation message for  with lowercase warning (#4248)
  Increase timeout for workflow to 60 minutes
  fix(docs): update README with .mjs configuration examples (#4253)
  chore: apply latest changesets
  fix(preview-middleware): fix /cards/store endpoint for CAP projects (#4243)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview-middleware @sap-ux/preview-middleware

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants