Skip to content

Enabling Render prop for New story Elements (Gulf) based on Card attribute#468

Open
VeenaYemmiganur wants to merge 56 commits intomasterfrom
also-in-package-story-element
Open

Enabling Render prop for New story Elements (Gulf) based on Card attribute#468
VeenaYemmiganur wants to merge 56 commits intomasterfrom
also-in-package-story-element

Conversation

@VeenaYemmiganur
Copy link
Contributor

Description

Please include the summary of the change made. Please include the required context here. Please include the issue reference for the fix and the dependencies reference for the change.

Fixes # (issue-reference)

Dependencies # (dependency-issue-reference)

Documentation # (link to the corresponding documentation changes)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test Case A
  • Test Case B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

export const FullStoryContent = ({ story }) => {
export const FullStoryContent = ({ story, config }) => {
return story.cards.map((card, cardIdx) => {
const customCardRender = get(config, ["opts", "render", "storyCardRenderProps"], {});
Copy link
Contributor

Choose a reason for hiding this comment

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

rename to storyCardRender since we're following the same convention elsewhere in amplib

npm run docs:deploy
npx standard-version
else
npm install
Copy link
Contributor

Choose a reason for hiding this comment

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

revert

Copy link
Contributor Author

@VeenaYemmiganur VeenaYemmiganur Apr 14, 2025

Choose a reason for hiding this comment

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

@Jeevan-Kishore
Yes, I did , am still working on it, will release new version tomorrow.
I am debugging an issue — specifically, when we release an AMP beta version, the new version isn’t getting updated under the packages key in package-lock.json. This causes the frontend to continue using the old AMP version, which leads to issues. So I was trying this change to see if it would help resolve the problem.

Thank you

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.

5 participants