-
-
Notifications
You must be signed in to change notification settings - Fork 415
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(page): support embed view for certain attachment types #5475
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
e225b33
to
3213d7a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update! We've discussed and confirmed this basically match the roadmap, but will be great if some UI setup could be optimized. For example, could you add #toolbar=0
to the embed PDF url, so that the PDF toolbar could be hidden?
49b5df1
to
e88e569
Compare
e88e569
to
1b04690
Compare
@@ -212,6 +214,8 @@ export function isAttachmentLoading(modelId: string) { | |||
|
|||
/** | |||
* Use it with caution! This function may take a long time! | |||
* | |||
* @deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any recommended practice as alternative?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the hasBlob
is similar to getAttachmentBlob
, I have migrated to getAttachmentBlob
.
But neither of them is a best practice. the BlobManager
needs to be refactored to meet the following requirements:
- A new
head
API, also known ashas
, needs to be added to check a blob. - The
get
andset
methods should return an Object that contains a stream to make it easier to check the progress of the upload or download. - The
list
API should have a default maximum limit and the ability to be adjusted by its options.
I think the cloudflare R2 workers API is a good reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to land, thanks!
Fix #3641 #5033
This PR may need to undergo UI review.
There is a new property that has been added to the attachment model.
Screen.Recording.2023-11-27.at.19.46.25.mov
Known issues
This issue can be resolved by applying a transparent layer over the iframe.
Screen.Recording.2023-11-28.at.02.19.09.mov