New to Nutbox?

Progress adding per-post metrics in the Steem Curation Extension

7 comments

remlaps-lite
76
2 months ago3 min read

Getting the author and the URL from the condenser web page into the Steem Curation Extension overlay turned out to be harder than I had anticipated, but after that was done, adding a couple metrics to the overlay happened quickly. (the author and permlink will not be permanent inclusions, but it's helpful now for debugging.)

FTR, I really hate the cosmetic stuff😉, so I'm glad that the lion's share of that effort seems to be done. It works in light mode, too.

(yes, I noticed that the word count changed there. I suspect the post was edited, but I'll be checking that.)

I'm happy and a little surprised to see this amount of movement in just 4 days. Here's what it looked like 4 days ago.

One thing I noticed is that React already has a lot of useful information in the browser that doesn't seem to be easily accessible from JavaScript in the browser extension. If I can ever figure out how to cross that barrier, some additional network calls could be eliminated. All of the information that I'm querying the API for is already visible in the browser developer tool (without any API queries), but since it's delivered by React, I couldn't find a way to access it from JavaScript (and the AIs weren't much help).

So far, performance isn't bad (with high speed Internet). I haven't noticed any slowdowns. All of the metrics that I've added so far can be collected with a single network call (per post). I guess I'll mine the condenser_api.get_content call as much as possible before trying to add any more network i/o.

If you have any thoughts on the kind of information that you'd eventually like to see in this tool, please join the discussion in this thread.


Thank you for your time and attention.

As a general rule, I up-vote comments that demonstrate "proof of reading".




Steve Palmer is an IT professional with three decades of professional experience in data communications and information systems. He holds a bachelor's degree in mathematics, a master's degree in computer science, and a master's degree in information systems and technology management. He has been awarded 3 US patents.


image.png

Pixabay license, source

Reminder


Visit the /promoted page and #burnsteem25 to support the inflation-fighters who are helping to enable decentralized regulation of Steem token supply growth.

Comments

Sort byBest