Skip to content
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

adding color-map property to Metric #1407

Conversation

namnguyen20999
Copy link
Member

Ticket: #1396

Copy link
Contributor

github-actions bot commented Jun 13, 2024

Coverage report for frontend/taipy-gui

Branches coverage not met for global: expected >=80%, but got 61.99222889438361%

St.
Category Percentage Covered / Total
🟢 Statements
80.75% (-0.12% 🔻)
2777/3439
🟡 Branches
61.99% (-0.82% 🔻)
1755/2831
🟡 Functions
74.12% (-0.51% 🔻)
487/657
🟢 Lines
81.37% (-0.12% 🔻)
2586/3178
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / Dialog.tsx
80.43% 60.87% 100% 80.43%
🟡
... / TaipyRendered.tsx
64.58% 14.29% 50% 64.58%
🟡
... / index.ts
75.51% 26.67% 50% 75%
🟢
... / Expandable.tsx
100% 85% 100% 100%
🟢
... / PageContent.tsx
75% 100% 0% 100%
🟢
... / Pane.tsx
95.12% 73.81% 100% 94.87%
🟢
... / Part.tsx
88% 64.29% 75% 91.3%
🟡
... / Unregistered.tsx
62.5% 0% 0% 60%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / Metric.tsx
83.05% (-10.57% 🔻)
49.06% (-8.09% 🔻)
72.73% (-27.27% 🔻)
83.93% (-9.4% 🔻)

Test suite run success

400 tests passing in 41 suites.

Report generated by 🧪jest coverage report action from a100f8d

Copy link
Member

@FredLL-Avaiga FredLL-Avaiga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done
Missing a try catch block

frontend/taipy-gui/src/components/Taipy/Metric.tsx Outdated Show resolved Hide resolved
frontend/taipy-gui/src/components/Taipy/Metric.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented Jun 13, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
18626 16256 87% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
taipy/gui/_renderers/factory.py 96% 🟢
TOTAL 96% 🟢

updated for commit: a100f8d by action🐍

Copy link
Member

@FabienLelaquais FabienLelaquais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go for it

doc/gui/examples/controls/metric-color-map.py Show resolved Hide resolved
frontend/taipy-gui/src/components/Taipy/Metric.tsx Outdated Show resolved Hide resolved
taipy/gui/viselements.json Outdated Show resolved Hide resolved
FredLL-Avaiga
FredLL-Avaiga previously approved these changes Jun 14, 2024
frontend/taipy-gui/src/components/Taipy/Metric.tsx Outdated Show resolved Hide resolved
…ric-component' of github.com:Avaiga/taipy into 1396-discussion-adding-color_range_step-property-to-metric-component
Copy link
Member

@FabienLelaquais FabienLelaquais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

…ric-component' of github.com:Avaiga/taipy into 1396-discussion-adding-color_range_step-property-to-metric-component
# -----------------------------------------------------------------------------------------
from taipy.gui import Gui

# color_map = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose that @FabienLelaquais meant to have to comments inline (in the variable color_map dict)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think putting it seperated would make it more readable

@namnguyen20999 namnguyen20999 merged commit 46679f3 into develop Jun 20, 2024
155 checks passed
@namnguyen20999 namnguyen20999 deleted the 1396-discussion-adding-color_range_step-property-to-metric-component branch June 20, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI: Front-End 📈 Improvement Improvement of a feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding color_range_step Property to Metric Component
3 participants