My new contributions to the Hive Condenser

in HiveDevs3 years ago (edited)

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.


Bug fix: long timeout when accessing non-existing user profile

@mahdiyari has raised this issue. There was a little flaw in the user profile loading logic. Even when the user is non-existing, the Condenser was still calling the API to see how much HP the user has. I took the opportunity for also adding some checks and not fetching cross-posts unnecessarily.

Merge request: https://gitlab.syncad.com/hive/condenser/-/merge_requests/259


Bug fix: allow dot in username for 3speak URLs

@eddiespino from @threespeak noticed that some URLs to their videos were not working with the Condenser. They have found out that it's due to the fact that the username of the video's author has a dot in it. I've updated the regex that extract metadata from the URL to allow the dot.

3Speak video

Merge request: https://gitlab.syncad.com/hive/condenser/-/merge_requests/261


Allow table cell alignment markdown styles

@arcange has noticed that the Condenser's post editor didn't allow cell alignment using Markdown. Markdown specs allows the following syntaxes:

  • -: for right align
  • :- for left align
  • :-: for center align

The issue was the HTML Sanitiser was configured to only allow right alignment. After amending the config it's now working nicely as seen below. Once the fix is deployed, the following code should render properly:

|Period|Power Up|Powerdown|Difference|
|-|:-|:-:|-:|
|2021-09|517,927.000|172,661.000|-345,266.000|
|2021-08|3,144,598.000|3,212,814.000|68,216.000|
|2021-07|3,415,366.000|5,186,384.000|1,771,018.000|

Fix unwanted redirection

@ausbitbank pointed us to a flaw that a person with bad intentions could use to redirect someone to another website while the URL looks like a genuine Hive.Blog URL.

Merge request: https://gitlab.syncad.com/hive/condenser/-/merge_requests/260


PeriodPower UpPowerdownDifference
2021-09517,927.000172,661.000-345,266.000
2021-083,144,598.0003,212,814.00068,216.000
2021-073,415,366.0005,186,384.0001,771,018.000

Merge request: https://gitlab.syncad.com/hive/condenser/-/merge_requests/262


Updating the Condenser code to React v16

@sschiessl has made a big effort in doing this major work. Everything seemed to be working properly except for the Visual Editor which didn't work server side. I finally got a bit of time to look into it and managed to get it working and fixed couple bugs thanks to @mahdiyari who did some tests.

Merge request: https://gitlab.syncad.com/hive/condenser/-/merge_requests/231


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:  

Great updates! I'm happy to read updates on the condenser.

Even though there are very good frontends, new users land on hive.blog first and you need to offer them a good product!

Yes, that's the reason why I continue working on it. I want the new users to have some decent experience until they learn about other choices and can select their favourite.

can we add hive engine tokens especially swap.BTC and swap.ETha nd swap.DOGE direct to wallet CONDENSOR PLEASE?

Muchímas gracias por compartir esta información tan importante. He traido a muchos usiarios a la plataforma desde hace más de un año, así que ea bueno que ellos sepan estas estrategias para wue sus publicaciones tengan mejor presentación. Saludos con cariño amigo.

Thanks for the update. I noticed something when I was delegating my HP. I delegated my HP but instead of delegating to who I delegated to, my HP was showing something like I had undelegated it showed me 5 days to undelegate. That day felt like a mystery to me. Waited for the 5 days and got the HP undelegated. But I still don’t understand what happened. Any explanation? I was so show I didn’t undelegate because I tried it again and same thing happened

What tool are you using to make delegation?

Try to do the same thing on Peakd or Hive.blog and see if you get the same results.

That day I was too confused to try it on other platforms. But 5 days later when the power returned, I delegated through peakd and it went through.

In that case you should bring it to Ecency team. Unless it now works on their platform

How do I do that please?

UI phrases are bit confusing, it overwrites previous delegation but usual confusion is it adds to previous delegations, we are improving it soon.


The rewards earned on this comment will go directly to the person sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.

🤑🤑🤑

That dot Update! It reminded me of my time.

Congratulations @quochuy! Your post has been a top performer on the Hive blockchain and you have been rewarded with the following badge:

Post with the highest payout of the day.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out the last post from @hivebuzz:

Hive Power Up Month - Feedback from Day 7

!PIZZA

@quochuy! I sent you a slice of $PIZZA on behalf of @donchate.

Did you know Pizzabot speaks Spanish if you use the command ESPIZZA? (1/10)

good job friend, for contributors like you is that the Hive ecosystem works ...

Hello, I appreciate your effort, you doing well and I hope you can be useful user for other new users to promote hove.blog platform. So agree to read your post.
Well done.

 3 years ago  Reveal Comment

No that's not possible.