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

Enhance (dev): Resource handling and update pdf and syntax highlighter libraries #9926

Merged
merged 16 commits into from
Aug 4, 2023

Conversation

sprocketc
Copy link
Collaborator

@sprocketc sprocketc commented Jul 26, 2023

Continuing on #9907 and #9761

  • marked - ff8c919 338bd5e Also upgraded to v5.1.2, so I had to use marked.parse instead of marked (see breaking changes of v4). To test this open our plugins modal and click on plugin from the marketplace to view its readme. Also, install a plugin and navigate to Settings -> Plugins.
  • highlightjs - dacd783 The dist files are distributed under a different package (@highlightjs/cdn-assets). The version of the previously installed package was 10.4.1, but we didn't seem to use this package in any way. The bundled js file was at v9.18.1. I used the former (latest is 11.8.0). Create a code highlighted block on a whiteboard portal to test this. We fallback to hljs in portals and slides.
  • lightning-fs - 005f56d I need some help to test this. The automated tests pass, but the new version seems to be way ahead of the previous one. I am not sure about the initial version. 0.0.2.3 is the only clue and doesn't make sense (see the related commit).
  • magic-portal - 8146430 Update: Reverted because some e2e tests were failing on CI. I assume the problem is this. The bundled file uses delete instead of clear, and that seems to be the only difference between the packages. Any ideas? Forking or installing from a commit isn't great, but it might be better than bumping into this again in the future (it took me a while to figure out the problem).
  • pdfjs - d9f80a7 I used the exact same version, so our PDF viewer should work as expected.
    Update: 2acbf56 I upgraded the package to fix various upstream issues @xyhp915 The internal property textLayerDiv seems to be renamed to div.
    Resolves PDF math equations are displayed incorrectly #8316
    I reproduced this and confirmed that it's fixed, I couldn't reproduce the rest of the issues, but we should check the following when this is released
  • amplify - 13bf21c Running yarn will now also build our amplify package and the assets will be handled similarly to the rest. Check login/register modal to test this.
  • tippy-tooltip - b487e40 The previously bundled styles resources/css/tooltip.css were a modified version of react-tippy/dist/tippy.css. The introduced src/main/frontend/tippy-tooltip.css is their diff with some code style modifications. We now import the original tippy styles and override those rules if needed. Tooltips should look the way they used to on both theme modes.
  • 3813dad Remove public.css and related IBMPLex fonts
  • 20c16ce Move and refactor css files from resource directory. Now that we have tailwind.all.css I think we can move those files closer to the corresponding cljs sources. Made some formatting improvements removed vendor-prefixed properties.

@github-actions github-actions bot added the :type/enhancement Enhancement to product. Does not affect the overall basic use. label Jul 26, 2023
@sprocketc sprocketc changed the title [WIP] Enhance (dev): Resource handling Enhance (dev): Resource handling Jul 27, 2023
@sprocketc sprocketc marked this pull request as ready for review July 27, 2023 14:51
Copy link
Collaborator

@andelf andelf left a comment

Choose a reason for hiding this comment

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

Verified on macOS. Android.

Copy link
Collaborator

@logseq-cldwalker logseq-cldwalker left a comment

Choose a reason for hiding this comment

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

@sprocketc Thanks for the excellent work in making our app more secure and maintainable! 👍 ❤️ I QAed the all the libraries on mac except for lightning-fs (which it seems @andelf introduced) and couldn't find any issues. From my test pdf it seems this resolves #9725.

@@ -72,7 +72,8 @@
"ios:dev": "cross-env PLATFORM=ios gulp cap",
"android:dev": "cross-env PLATFORM=android gulp cap",
"tldraw:build": "yarn --cwd tldraw install",
"postinstall": "yarn tldraw:build"
"amplify:build": "yarn --cwd packages/amplify install",
"postinstall": "yarn tldraw:build && yarn amplify:build "
Copy link
Collaborator

Choose a reason for hiding this comment

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

❤️

@tiensonqin tiensonqin merged commit 5d9861a into master Aug 4, 2023
7 checks passed
@tiensonqin tiensonqin deleted the enhance/resource-handling branch August 4, 2023 03:17
@andelf
Copy link
Collaborator

andelf commented Aug 4, 2023

@logseq-cldwalker Thanks for the reminder, I'll check lightning-fs.

@logseq-cldwalker logseq-cldwalker changed the title Enhance (dev): Resource handling Enhance (dev): Resource handling and update pdf and syntax highlighter libraries Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:type/enhancement Enhancement to product. Does not affect the overall basic use.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PDF math equations are displayed incorrectly
4 participants