Skip to content

feat: generate shareable links implementation, lz-string compression and encoded template data in URLs #85

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

Merged
merged 6 commits into from
Jul 19, 2024

Conversation

Vinyl-Davyl
Copy link
Collaborator

Closes #48 #47

Changes

  • Serialize and encode template data into a URL-friendly format using lz-string.
  • Provide functionality to generate shareable links with encoded template data.
  • Decode and load template data from the URL when accessed via a shared link.
  • Compression Utility Functions:
    • compress: Serializes and compresses template data.
    • decompress: Decodes and deserializes compressed data from the URL.
  • Zustand Store Updates: generateShareableLink logic function.

Related Issues

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:branchname

@Vinyl-Davyl Vinyl-Davyl requested a review from a team as a code owner July 16, 2024 15:46
Copy link

netlify bot commented Jul 16, 2024

Deploy Preview for ap-template-playground ready!

Name Link
🔨 Latest commit 42d5b75
🔍 Latest deploy log https://app.netlify.com/sites/ap-template-playground/deploys/6697c6b6a408ef0008032af2
😎 Deploy Preview https://deploy-preview-85--ap-template-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Vinyl-Davyl Vinyl-Davyl changed the title feat: generate shareable links implementation, lz-string compression format and encoded template data. feat: generate shareable links implementation, lz-string compression and encoded template data. Jul 16, 2024
@Vinyl-Davyl Vinyl-Davyl changed the title feat: generate shareable links implementation, lz-string compression and encoded template data. feat: generate shareable links implementation, lz-string compression and encoded template data in URLs Jul 16, 2024
Copy link
Member

@mttrbrts mttrbrts left a comment

Choose a reason for hiding this comment

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

Very cool! 😎

Signed-off-by: Vinyl-Davyl <okononfuadavid@gmail.com>
…ded template data with lz-string implementation

Signed-off-by: Vinyl-Davyl <okononfuadavid@gmail.com>
Signed-off-by: Vinyl-Davyl <okononfuadavid@gmail.com>
Signed-off-by: Vinyl-Davyl <okononfuadavid@gmail.com>
Signed-off-by: Vinyl-Davyl <okononfuadavid@gmail.com>
Signed-off-by: Vinyl-Davyl <okononfuadavid@gmail.com>
@sanketshevkar sanketshevkar merged commit 199e28d into accordproject:main Jul 19, 2024
7 checks passed
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.

Provide functionality to generate shareable links that include the encoded template data.
3 participants