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: implement sharing of document through netlify blobs #1135

Merged
merged 7 commits into from
Sep 20, 2024

Conversation

Shurtu-gal
Copy link
Collaborator

@Shurtu-gal Shurtu-gal commented Sep 16, 2024

Description

  • Added functionality for sharing of AsyncAPI documents through serverless functions and netlify blobs.
  • The base64 version is still present in case someone don't wish the document to be stored at our netlify stores.

Important

I had tried implementing this through edge functions but turns out that support for npm modules is still sketchy out there leading to the following failure https://app.netlify.com/sites/share-studio/deploys/66e7f0045f2439ebfeadeae6#L150
More details: https://ntl.fyi/edge-functions-npm

Related issue(s)
Resolves #127
Resolves #1030

Copy link

changeset-bot bot commented Sep 16, 2024

⚠️ No Changeset found

Latest commit: 14a7923

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@Shurtu-gal Shurtu-gal self-assigned this Sep 16, 2024
@Shurtu-gal Shurtu-gal added the enhancement New feature or request label Sep 16, 2024
Copy link

netlify bot commented Sep 16, 2024

Deploy Preview for asyncapi-studio-design-system ready!

Name Link
🔨 Latest commit 14a7923
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-studio-design-system/deploys/66ed7843e255760008ac74ba
😎 Deploy Preview https://deploy-preview-1135--asyncapi-studio-design-system.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.

Copy link

netlify bot commented Sep 16, 2024

Deploy Preview for studio-next ready!

Name Link
🔨 Latest commit 14a7923
🔍 Latest deploy log https://app.netlify.com/sites/studio-next/deploys/66ed784343819600083da40d
😎 Deploy Preview https://deploy-preview-1135--studio-next.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.

Copy link

netlify bot commented Sep 16, 2024

Deploy Preview for modest-rosalind-098b67 ready!

Name Link
🔨 Latest commit 14a7923
🔍 Latest deploy log https://app.netlify.com/sites/modest-rosalind-098b67/deploys/66ed784311ee5e0008f8eb6c
😎 Deploy Preview https://deploy-preview-1135--modest-rosalind-098b67.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.

@Shurtu-gal
Copy link
Collaborator Author

Could you please have a look at this @smoya @Amzani?

Copy link
Collaborator

@Amzani Amzani left a comment

Choose a reason for hiding this comment

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

Nice PR @Shurtu-gal 🚀
Small things to fix in addition to conflict

apps/studio-next/src/components/Editor/ShareButton.tsx Outdated Show resolved Hide resolved
@@ -0,0 +1,57 @@
import { useState } from 'react';
import toast from 'react-hot-toast';
import { create } from '@ebay/nice-modal-react';
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see that we've used this library without an ADR, It's fine.
Could we just add an ADR for it, to understand the reasoning behind it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, let me check in which commit it was introduced initially.

Copy link
Collaborator Author

@Shurtu-gal Shurtu-gal Sep 20, 2024

Choose a reason for hiding this comment

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

@Amzani it was introduced in this PR #518.

Should an ADR still be made?

Copy link

sonarcloud bot commented Sep 20, 2024

Copy link
Collaborator

@Amzani Amzani left a comment

Choose a reason for hiding this comment

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

LGTM

@Shurtu-gal
Copy link
Collaborator Author

/rtm

@asyncapi-bot asyncapi-bot merged commit 1608159 into asyncapi:master Sep 20, 2024
23 checks passed
@Shurtu-gal Shurtu-gal deleted the share-feature branch September 20, 2024 14:32
@asyncapi-bot asyncapi-bot added the bounty AsyncAPI Bounty label Sep 20, 2024
@aeworxet
Copy link
Contributor

@asyncapi/bounty_team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty AsyncAPI Bounty enhancement New feature or request ready-to-merge
Projects
Status: Completed
Status: Done
Development

Successfully merging this pull request may close these issues.

Long AsyncAPI document URL doesn't work Share feature proposal
4 participants