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

Number visual element #1442

Conversation

namnguyen20999
Copy link
Member

@namnguyen20999 namnguyen20999 commented Jun 22, 2024

resolve #1429

@namnguyen20999 namnguyen20999 linked an issue Jun 22, 2024 that may be closed by this pull request
6 tasks
@namnguyen20999 namnguyen20999 marked this pull request as ready for review June 22, 2024 13:16
Copy link
Contributor

github-actions bot commented Jun 22, 2024

Coverage report for frontend/taipy-gui

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

St.
Category Percentage Covered / Total
🟢 Statements
80.61% (-0.12% 🔻)
2794/3466
🟡 Branches
61.2% (-1.43% 🔻)
1757/2871
🟡 Functions
73.53% (-0.78% 🔻)
489/665
🟢 Lines
81.27% (-0.09% 🔻)
2603/3203
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
🟢
... / Input.tsx
79.01% (-8.02% 🔻)
43.59% (-40.62% 🔻)
45% (-13.33% 🔻)
82.89% (-7.3% 🔻)

Test suite run success

400 tests passing in 41 suites.

Report generated by 🧪jest coverage report action from b85030e

Copy link
Contributor

github-actions bot commented Jun 22, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
18484 16100 87% 0% 🟢

New Files

No new covered files...

Modified Files

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

updated for commit: 1d6239f 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.

Minor changes that of course can be discussed.

doc/gui/examples/controls/number-step.py Outdated Show resolved Hide resolved
frontend/taipy-gui/src/components/Taipy/Input.tsx Outdated Show resolved Hide resolved
frontend/taipy-gui/src/components/Taipy/Input.tsx Outdated Show resolved Hide resolved
taipy/gui/_renderers/factory.py Outdated Show resolved Hide resolved
taipy/gui/viselements.json Outdated Show resolved Hide resolved
taipy/gui/viselements.json Outdated Show resolved Hide resolved
…rty-type-step' of github.com:Avaiga/taipy into 1429-the-number-visual-element-number-should-have-property-type-step

const AUTHORIZED_KEYS = ["Enter", "Escape", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12"];

const StyledTextField = styled(TextField)({
'& input[type=number]::-webkit-outer-spin-button, & input[type=number]::-webkit-inner-spin-button': {
Copy link
Member

Choose a reason for hiding this comment

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

Not sure we want to use WebKit or mozilla specific css...

Copy link
Member

Choose a reason for hiding this comment

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

We do if this is mandatory for specific browsers.
I don't like it either though.

frontend/taipy-gui/src/components/Taipy/Input.tsx Outdated Show resolved Hide resolved
taipy/gui/_renderers/factory.py Outdated Show resolved Hide resolved
taipy/gui/_renderers/factory.py Outdated Show resolved Hide resolved
taipy/gui/_renderers/factory.py Outdated Show resolved Hide resolved
frontend/taipy-gui/src/components/Taipy/Input.tsx Outdated Show resolved Hide resolved
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.

With Fred comments, that's fine!

value = 50

page = """
<|{value}|number|step=2|>
Copy link
Member

Choose a reason for hiding this comment

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

👍

@FabienLelaquais FabienLelaquais added 📈 Improvement Improvement of a feature. 🖰 GUI Related to GUI 🟨 Priority: Medium Not blocking but should be addressed 📝Release Notes Impacts the Release Notes or the Documentation in general labels Jun 28, 2024
Copy link
Contributor

Coverage report for ./frontend/taipy-gui

Caution

Coverage does not meet threshold
Branches coverage not met for global: expected >=80%, but got 61.21739130434782%

St.
Category Percentage Covered / Total
🟢 Statements
80.62% (+0.18% 🔼)
2796/3468
🟡 Branches
61.22% (-1.18% 🔻)
1760/2875
🟡 Functions
73.53% (-0.43% 🔻)
489/665
🟢 Lines
81.28% (+0.24% 🔼)
2605/3205
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
🟢
... / Input.tsx
79.52% (-7.52% 🔻)
45.12% (-39.09% 🔻)
45% (-13.33% 🔻)
83.33% (-6.86% 🔻)

Test suite run success

400 tests passing in 41 suites.

Report generated by 🧪jest coverage report action from 1d6239f

@namnguyen20999 namnguyen20999 deleted the 1429-the-number-visual-element-number-should-have-property-type-step branch July 1, 2024 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖰 GUI Related to GUI 📈 Improvement Improvement of a feature. 🟨 Priority: Medium Not blocking but should be addressed 📝Release Notes Impacts the Release Notes or the Documentation in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The number visual element number should have property type step.
3 participants