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

Avoid blank pages, omit desc tab instead #45

Merged
merged 5 commits into from
Sep 8, 2024

Conversation

arabello
Copy link
Collaborator

@arabello arabello commented Sep 7, 2024

Closes #44

These changes allow packages with Markdown (README) serialization failures to show up in the web hub instead of having a blank page. ATM the description tab is simply omitted if a serialization error occurs. Additionally, a log error is added so we can better track which packages fails at build time.

I also refactored some code to simplify stuff around the get static props by eliminating FP jargon. Moreover, if something brutal happens (eg. we get fetch the index) the entire build should fails to avoid deployment of a basically empty hub.

As a test, I took some packages listed in #43 and other discussions and check out locally that they show up in the web hub.

  • espanso-pinyin-tones
  • vim-digraphs
  • arrows
  • portuguese-accents
  • flutter-snippets
  • tholzschuh-maths
  • alt-codes
  • med-expansions
  • better-typography
  • discord-snippets

Here's some screenshots

Image 1 Image 2
Image 3 Image 4

This table arranges the four images in a 2x2 grid, with two images in each row.

@arabello
Copy link
Collaborator Author

arabello commented Sep 7, 2024

Oh, we could show the desc tab with a placeholder pointing to the Github repo (if available)

Copy link
Member

@AucaCoyan AucaCoyan left a comment

Choose a reason for hiding this comment

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

All good!

@AucaCoyan
Copy link
Member

Oh, we could show the desc tab with a placeholder pointing to the Github repo (if available)

Whatever suits you better. We can merge this as is and worry about that later, o make an extra push and resolve that. I'm happy with both!

@arabello arabello merged commit 246068b into main Sep 8, 2024
1 check passed
@arabello arabello deleted the 44-remove-err-packages-from-bundle branch September 8, 2024 18:12
@AucaCoyan
Copy link
Member

Thank you!

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.

Avoid including erroneous packages in the bundle at built time
2 participants