You are viewing a single comment's thread from:
RE: The Steem Curation Extension now shows available voting power
Looks good to me, as long as it'll fit with a 16 character account name? If I read that right, it'll just append the (VP...) and the pane will be automatically sized so it all fits?
We just criss-crossed because I realized last night that the voting power reported by the blockchain doesn't regenerate as time passes, so I added a time calculation, but you solved that by pulling from steemworld?
Unfortunately, I was careless and updated the main branch. I've got to get better at remembering to do things in a separate branch. I'm not used to working in a shared repo yet. 😉
Yes, I tested it with variuos account names.
Correct. The value of the
condenser_api
was unfortunately the value from the last voting. I wanted to insert the calculation of the current value, but then decided in favour of the query from Steemworld, as we need a query anyway.I also learnt that here with Steem. I now get on very well with git. Distributing the test branches to the servers and switching between the dev branch and test branch for Hivemind also works very well with git.
Update 2: Apparently, when you log out and back in, none of the events that I was handling take place. With Claude's help, I set up a mutation observer to add the click handler when the dropdown menu gets created, and I also added a check to eliminate the errors when the dropdown menu doesn't exist. This branch is an updated version of yours: https://github.com/remlaps/Steem-Curation-Extension/tree/fix4NoDropdown
Sorry if I'm not handling any of the git stuff correctly, I've never worked on an actively shared repo in git, so I'm figuring it out as I go.
You were much quicker than I expected :-D My branch wasn't even finished yet because I hadn't tested it properly either. In addition, the code was still very wild. But I'm glad you've already been able to fix something.
I've had a look at it and am already very excited. The code doesn't look so wild anymore. :-)
Working together on a branch is yet another new challenge. I don't know if we can use comments to discuss the code directly.
Unfortunately it's too late today (again), but I'm still happy to test the code soon.
Coincidentally, I had the morning off today, and I was (overly?) eager to figure out what was going on with that 1st click not displaying.
Yeah, after two years, I didn't remember much about how it worked, so I tried to prepare for next time. Although, this exercise really gave me some ideas about other possibilities, so maybe it won't be two years again.
Yeah, sorry about that, I was not sure about the correct github mechanics for the situation, but the way I did it seemed less than ideal. FWIW, I don't expect to be working on it again in the next few days, so test away if you find time. 😉 Once you're satisfied with the current iteration, I think we can update the version date and merge it into the main branch. There's still one scenario (that I'm aware of) where the highlighting doesn't get painted on until the user scrolls or clicks, but that's been with us since the beginning. Not a result of these recent changes.
ok. I just split my updated "main" into a separate branch, reverted "main" to the previous version, and then I brought in your branch. The only thing I see that's a little weird is that it seems to generate errors and fail the first time you click after logging out and back in again. Not a big deal, 'cause it works the second time.