Conversation
- Breaking out values into an object so we can localize the values for display while still preserving any prefix postfix values - Assorted code modernization - Replaced some if/elseifs with switches - Etc...
… code as a plugin
…asily test against data from an earlier version of the plugin.
…t were still in there.
SevereClimate
left a comment
There was a problem hiding this comment.
Looks good! Just a couple of notes on potential library usage really, but all seems like a nice logical refactor.
There was a problem hiding this comment.
This is fine, but there is a jSpreadsheet React package that gives you the spreadsheet/worksheets as react components more or less ready to use.
There was a problem hiding this comment.
Yeah, I thought about that. I should look and see if it makes sense to use it instead.
There was a problem hiding this comment.
OK, I remember why I did it this way. It just seemed easier to control the versioning if I'm expressly wrapping the version I've included. I know build scripts can include all of that obviously, but in keeping with my previous practice of managing things like that and the chart.js stuff seperately I decided to keep it outside of the existing React package.
Also, what if I want to maybe do the table rendering later on using Jspreadsheet? Since that could be a useful method and in that case I can't rely on a React package being available to the front end.
There was a problem hiding this comment.
it might be worth using the lodash library debounce function for the debouncing here, just to save on wheel reinvention, this is fine though
There was a problem hiding this comment.
True, I had a reason I stayed with this, but I can't remember what it was...
There was a problem hiding this comment.
OK, I remember this too. My thinking was that I needed to not just debounce for changes, but also cancel requests that were potentially in process. So I mixed the two together so to speak. Maybe that doesn't make sense. But that was the thinking. Maybe I should comment that.
…d addition of some more React hooks.
- Fixed a long standing issue where a user who's editing a spreadsheet cell and submits the publish form could loose data or get an incorrectly rendered image - Fixed an issue where empty data values could cause a fatal error in the parsing class.
- The React UI wasn't rendering the empty chart which borked things
Uh oh!
There was an error while loading. Please reload this page.