-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gauge/bug fix #148
Gauge/bug fix #148
Conversation
Thanks @Karan-S-Mittal - the code changes look promising, I'll review those shortly, but something odd happened with the build process: the quote characters in the I'm assuming these are all a result of running the same commands we've used in the past, but you're on Windows and most of the rest of us develop on Mac or Linux. In a sense this is good, an opportunity for us: it should work fine to build components on Windows, we just need to figure out why it didn't. The good news is building the Python components seems to have worked perfectly. There are changes in these files, but that's to be expected because we've updated the Python component generator since dash-daq was most recently rebuilt. So the two routes we could take are:
The latter is preferable if you're up for it. The place this is all happening is https://github.com/plotly/dash/blob/dev/dash/development/_r_components_generation.py. Re: |
Thank you for sharing the build error, I have been searching on this. |
Hey @alexcjohnson, #124 is resolved. Before:After:build errorthis time I used Github's codespaces as a build environment(Linux) but for some reason, the build process is showing an error of unauthorized. |
Get rid of the |
Hey Alex, I have checked the dash renderer and found that if we can add the strip function in this Before modificationAfter the prefix variable is stripped for single quotesThough there are some platform issues with Dash Repository as well on windows and therefore cannot update the commit. The current build fails are a part of different errors that I wasn't able to track down. I am exploring and learning Circle CI more for that currently. |
Issues Resolved in this PR update #113, #144, and thermometer #64. Issue #113the issue was to show the true value of the sensor which was being limited to the value to max attribute. Issue #144the issue was similar to issue #113 but related to the tank.
Issue #64Also removed the context as you mentioned in a previous comment. |
@Karan-S-Mittal the CI build error is a result of trying to build Dash from source, which has changed with Dash 2. I guess we originally did this so that the dash-daq tests would run against the tip of dash's Lines 32 to 35 in 01b4bd8
To just
(probably don't even need the |
Re: extra single-quotes: Good to know that patching So I think the best solution would be to strip quotes from all of them right at that point. Then there's still the question of how the |
Issues Resolved in this PR update #112, and #133 Issue #133 ResolvedIssue #112 Resolved@alexcjohnson, can you review the PR now, and if possible can we merge and close the listed issues. |
These are the issues, I worked on
daq.Gauge prop 'showCurrentValue' value is misaligned without 'label' property also #123

Before:
After:
daq.Gauge does not display gradients when color ranges max doesn't match 'max' prop #125
The issue was that when the color range's last value was different from the max value of gauge, this was leading to default colored gauge. Added a function convertInRange in which will handle the color values of Gauge and equalise the values provided in color range with max value of gauge.
Before:


After:
changed
yarn demo
tonpm run dash-demo
This issue was related to documentation and mismatch between package.json commands. the contributing section of daq needed updation. I have changed the commands from
yarn
tonpm
as that proved for me to be less error-prone and all the commands were using npm. Please have a look at contributing section and documentation.Thank you so much for reviewing.