Skip to content

chore(astro): Remove duplicate logic in interactive components - #3664

Merged
wobsoriano merged 15 commits into
mainfrom
rob/eco-16-remove-duplication-in-interactive-components
Jul 5, 2024
Merged

chore(astro): Remove duplicate logic in interactive components#3664
wobsoriano merged 15 commits into
mainfrom
rob/eco-16-remove-duplication-in-interactive-components

Conversation

@wobsoriano

@wobsoriano wobsoriano commented Jul 3, 2024

Copy link
Copy Markdown
Member

Description

This PR addresses ECO-16 by consolidating the logic of interactive components into a single component used across all of them.

As said in the initial Astro PR, playground and tests will follow.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot

changeset-bot Bot commented Jul 3, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8e979eb

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

This PR includes changesets to release 1 package
Name Type
@clerk/astro 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

@wobsoriano wobsoriano changed the title chore(astro): remove duplicate logic in interactive components chore(astro): Remove duplicate logic in interactive components Jul 3, 2024
Base automatically changed from elef/introduce-astro-sdk to main July 4, 2024 09:51
@wobsoriano
wobsoriano force-pushed the rob/eco-16-remove-duplication-in-interactive-components branch from aeca5fb to 27594f0 Compare July 4, 2024 14:58
Comment thread packages/astro/src/astro-components/interactive/InteractiveUI.astro
@wobsoriano
wobsoriano marked this pull request as ready for review July 4, 2024 15:13
@wobsoriano
wobsoriano requested a review from panteliselef July 4, 2024 15:13
Comment thread packages/astro/src/astro-components/interactive/InteractiveUI.astro
Comment thread packages/astro/src/astro-components/interactive/InteractiveUI.astro Outdated
Comment on lines +11 to +13
const props = {
...Astro.props,
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need this ? I think we are accessing Astro.props below directly

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Still using this in new update, but destructured since the component prop is not a clerk UI element option

@panteliselef panteliselef left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚢 it

@wobsoriano
wobsoriano enabled auto-merge (squash) July 5, 2024 19:46
@wobsoriano
wobsoriano merged commit 530bd53 into main Jul 5, 2024
@wobsoriano
wobsoriano deleted the rob/eco-16-remove-duplication-in-interactive-components branch July 5, 2024 20:13
wobsoriano added a commit that referenced this pull request Jul 5, 2024
Co-authored-by: panteliselef <panteliselef@outlook.com>
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.

2 participants