-
Notifications
You must be signed in to change notification settings - Fork 27
Draft: Grist static preview #292
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
base: main
Are you sure you want to change the base?
Conversation
7dea7bc to
b8fb52a
Compare
| { | ||
| ...file, | ||
| category: getMimeCategory(file.mimetype), | ||
| category: getMimeCategory(file.mimetype, file.url.split('.').pop() || null), |
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.
TODO: refactor this
| <div className="file-preview-title"> | ||
| <img | ||
| src={getIconByMimeType(currentFile.mimetype, "mini").src} | ||
| src={getIconByMimeType(currentFile.mimetype, "mini", currentFile.url.split('.').pop()).src} |
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.
This is a fix. When opening a .grist preview, the header showed a SQLite logo.
Grist document previewCapture.video.du.2025-07-28.16-48-53.webmCSV previewCapture.video.du.2025-07-28.17-17-23.webm |
This is needed for the rest of the work. They are the same proportions as other icons
I'll add the Grist exeption in a separate commit
Using the generic logo so its relevant to all instances of drive.
Interops for the win !
A generic SQL icon seems to be OK for now
24f446f to
ba2a6b1
Compare
with the help of @manuhabitela
2dcd716 to
0fbd4ee
Compare
d00d1f7 to
4b07850
Compare
Wow it's amazing !! Keep us tuned once the PR is ready, I love it 🤩 |
fd7ee70 to
b80b850
Compare
Follow up to #275
Still very much WIP. What remains to be done at the very least:
{credentials: "include"}Wishlist for a separate PR:
Fixes #281