Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/iri widget enhancement #86

Merged
merged 14 commits into from
May 16, 2024
Merged

Conversation

Pooya-Oladazimi
Copy link
Collaborator

Related to #84

Added Features:

  • Make the external link icon optional. Default True.
  • Added a copy to the clipboard button for the iri link. Default False.
  • Added URL prefix feature for iri. When given, the encoded iri gets appended to the prefix.
  • Added stories for the above features.

Make the external icon optional to render. Default is true.
Add URL prefix to iri link if provided. Iri get encoded in this case.
Add a copy to clipboard button for iri. Default is false.
Add new stories for the iriWidget added features.
@Pooya-Oladazimi Pooya-Oladazimi added the enhancement New feature or request label May 8, 2024
@Pooya-Oladazimi Pooya-Oladazimi requested review from rombaum, julian-schneider and jusa3 and removed request for julian-schneider May 8, 2024 09:07
@Pooya-Oladazimi Pooya-Oladazimi linked an issue May 8, 2024 that may be closed by this pull request
Copy link
Collaborator

@jusa3 jusa3 left a comment

Choose a reason for hiding this comment

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

Nice new features! Please also add stories to the HTML Storybook, by exporting them in the IriWdgetHTML.stories.ts. I will adapt the readme and make it more clear for developers to update both, the React and html stories (#88)

And please merge the latest changes I made on the main branch, since this will activate the build check for pull requests. Thank you :)

src/app/types.ts Outdated Show resolved Hide resolved
@Pooya-Oladazimi
Copy link
Collaborator Author

Not ready yet. The new features do not work in the HTML version for some unknown reason. The stories are there but the input props have no effect.

src/app/types.ts Outdated
/**
* Indicates that the target is external and needs an icon.
*/
externalIcon?: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not use boolean? same for copyButton

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes true. I can't remember why I set it to string. I will do a fix-commit for this.

change the boolean types to boolean. Refactor the story. Use color also for the copy button.
@Pooya-Oladazimi Pooya-Oladazimi merged commit b6cf443 into main May 16, 2024
2 checks passed
@Pooya-Oladazimi Pooya-Oladazimi deleted the feat/iri-widget-enhancement branch May 16, 2024 11:11
@jusa3
Copy link
Collaborator

jusa3 commented May 16, 2024

🎉 This PR is included in version 2.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jusa3 jusa3 added the released label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Copy function for Iri Widget
2 participants