My latest contributions to the Hive Condenser and Wallet apps.

in HiveDevs2 years ago

​## Context
I have been involved (voluntarily) with the development of the Condenser & Wallet apps (that are powering https://hive.blog and https://wallet.hive.blog) for quite a while now. There are other great frontends to Hive out there such as https://peakd.com and https://ecency.com but I have always been more or less faithful with the Condenser.

This is a regular report on my new contributions. Some of the new work below might still be in test and not yet deployed.

Notes: some features or bug fixes might not yet be available as they need to pass review and test by the team.


Spoiler markup support related fixes

A couple of weeks ago we released a support for spoiler markup allowing Hivers to create posts with initially hidden spoilers. Few minor bugs were raised in relation to this release so here are the fixes:

Remarkable v2.0.1 does not support the linkify option anymore

Upon deployment, the backend was outputting a warning related to the change of activating the linkify option of Remarkable (updated from v1 to v2). This was a very minor since we only use that option to disable linkify because the Condenser is using its own linkify code.
MR: https://gitlab.syncad.com/hive/condenser/-/merge_requests/351

Refactoring the embedded player injection code

@tarazkp noticed that you could not embedded Youtube videos inside a spoiler block. After investigation, I found out that it's due to the way embedded player codes are being transformed and injected in the rendered HTML. The current implementation is changing the structure of the HTML and hence separating the spoiler from the embedded HTML. This logic has now been refactored to allow embedding videos inside spoiler blocks.
MR: https://gitlab.syncad.com/hive/condenser/-/merge_requests/352

JSON URL not working anymore

Hive posts and user profiles can be accessed with .json in order to access the JSON data of those entities. For example here is the JSON for my profile (might not work until the fix is deployed):
https://hive.blog/@quochuy.json (test on staging)

And here is the JSON for a post:
https://hive.blog/hive-139531/@quochuy/35gjjb-my-latest-contributions-to-the-hive-condenser-and-wallet-apps.json (test on staging)

However, this feature has somehow been broken. This was due to a KOA update. To fix this I had to rewrite some of the custom KOA middlewares were were using in the Condenser.

Remarkable Spoiler Plugin

I forgot to mention this in the previous post but in order to implement the Spoiler support on the Condenser, I developed a simple plugin for Remarkable and published it on NPM. It is now used on Hive Blog and also on @Peakd. See the link below on how to install and use it in your own project that uses Remarkable to render Markdown markups to HTML.

https://www.npmjs.com/package/@quochuync/remarkable-spoiler


Vote for my witness
Support @quochuy Witness.jpg
On Hive, Witnesses are playing the important role of providing a performant and safe network for all of us. You have the power to choose 30 trusty witnesses to package transactions and sign the blocks that will go in the Hive blockchain. Vote for me via HiveSigner to support my work for the community.

Sort:  


~~~ embed:1609796431975530496 twitter metadata:MTM5Mjc2NTQxMjU2NDIxNzg2NHx8aHR0cHM6Ly90d2l0dGVyLmNvbS8xMzkyNzY1NDEyNTY0MjE3ODY0L3N0YXR1cy8xNjA5Nzk2NDMxOTc1NTMwNDk2fA== ~~~
The rewards earned on this comment will go directly to the people( @yahli ) sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.

Wow! Creating a hidden spoiler is a great idea, I just loved the idea when I saw it first while reading a friend's post. I haven't tried using that feature yet so I didn't really notice that fault but is a good thing it is already been fixed.

Well done @quochuy, I hope more people support your work, I will do well to reblog and I hope my followers can find this and read too.

Welcome to the new year sir, I hope this year brings you great success and achievements 🤗.

You are all doing a great work must recommend your efforts in the development of the condenser , rome is not built in a day, I believe in a short time , everything will be fixed...

Great job 💯

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.