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

chore(number-field): added default-value example to the doc site #4698

Merged
merged 5 commits into from
Sep 2, 2024

Conversation

TarunAdobe
Copy link
Contributor

@TarunAdobe TarunAdobe commented Aug 27, 2024

Description

Expand number-field doc.

Related issue(s)

Motivation and context

Currently, removing the number in the number field leaves the number field blank. It would be nice if the number field could repopulate to either the previous value, or the default value (ex. 0).

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • If my change required a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

Best practices

This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against main.

Copy link

Branch preview

Visual regression test results

When a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:

Copy link

github-actions bot commented Aug 27, 2024

Lighthouse scores

Category Latest (report) Main (report) Branch (report)
Performance 0.99 0.99 0.99
Accessibility 1 1 1
Best Practices 1 1 1
SEO 1 0.92 0.92
PWA 1 1 1
What is this?

Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on main ("Main"). Higher scores are better, but note that the SEO scores on Netlify URLs are artifically constrained to 0.92.

Transfer Size

Category Latest Main Branch
Total 227.061 kB 214.129 kB 🏆 214.361 kB
Scripts 56.434 kB 49.649 kB 🏆 49.727 kB
Stylesheet 34.608 kB 30.08 kB 🏆 30.179 kB
Document 6.209 kB 5.444 kB 🏆 5.472 kB
Font 126.835 kB 126.606 kB 🏆 126.633 kB

Request Count

Category Latest Main Branch
Total 52 52 52
Scripts 41 41 41
Stylesheet 5 5 5
Document 1 1 1
Font 2 2 2

Copy link

Tachometer results

Chrome

number-field permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 539 kB 69.91ms - 72.26ms - faster ✔
12% - 17%
10.19ms - 14.50ms
branch 515 kB 81.63ms - 85.23ms slower ❌
14% - 21%
10.19ms - 14.50ms
-

slider permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 495 kB 84.27ms - 86.81ms - faster ✔
1% - 6%
1.04ms - 4.99ms
branch 471 kB 87.04ms - 90.07ms slower ❌
1% - 6%
1.04ms - 4.99ms
-
Firefox

number-field permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 539 kB 144.97ms - 150.43ms - faster ✔
7% - 11%
10.62ms - 17.74ms
branch 515 kB 159.60ms - 164.16ms slower ❌
7% - 12%
10.62ms - 17.74ms
-

slider permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 495 kB 160.69ms - 166.03ms - faster ✔
1% - 5%
1.33ms - 9.19ms
branch 471 kB 165.74ms - 171.50ms slower ❌
1% - 6%
1.33ms - 9.19ms
-

@TarunAdobe TarunAdobe force-pushed the feat/number-field-default branch from 783b27c to acb640e Compare August 29, 2024 10:04
@TarunAdobe TarunAdobe changed the title feat(number-field): added default-value prop to the component chore(number-field): added default-value example to the doc site Aug 29, 2024
@TarunAdobe TarunAdobe self-assigned this Aug 29, 2024
@TarunAdobe TarunAdobe marked this pull request as ready for review August 29, 2024 10:05
@TarunAdobe TarunAdobe requested a review from a team as a code owner August 29, 2024 10:05
@coveralls
Copy link
Collaborator

coveralls commented Aug 29, 2024

Pull Request Test Coverage Report for Build 10668435702

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 98.202%

Totals Coverage Status
Change from base Build 10668424722: 0.0%
Covered Lines: 32500
Relevant Lines: 32931

💛 - Coveralls

Copy link
Collaborator

@blunteshwar blunteshwar left a comment

Choose a reason for hiding this comment

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

Can you shake off the VRTs so that we are good to go

packages/number-field/README.md Outdated Show resolved Hide resolved
@Rajdeepc
Copy link
Contributor

Rajdeepc commented Sep 2, 2024

Can you shake off the VRTs so that we are good to go

VRT's are good. I am adding a fix for the chromedriver to update to the latest version to align with the browser version

@Rajdeepc Rajdeepc merged commit cf112cf into main Sep 2, 2024
60 of 61 checks passed
@Rajdeepc Rajdeepc deleted the feat/number-field-default branch September 2, 2024 15:46
nikkimk pushed a commit that referenced this pull request Sep 13, 2024
* chore(number-field): added a default-value example in docs

* chore: update number-field docs

Co-authored-by: Rajdeep Chandra <[email protected]>

---------

Co-authored-by: Rajdeep Chandra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat]: sp-number-field repopulate field after deletion
4 participants