Skip to content

Date time input field #1587

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

Merged
merged 9 commits into from
Jul 18, 2025
Merged

Date time input field #1587

merged 9 commits into from
Jul 18, 2025

Conversation

devgurjar
Copy link
Contributor

Description

Related Issue

Motivation and Context

How Has This Been Tested?

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)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes and the overall coverage did not decrease.
  • All unit tests pass on CircleCi.
  • I ran all tests locally and they pass.

Sorry, something went wrong.

@devgurjar devgurjar force-pushed the dateTimeInputField branch from 3b68bf0 to 3b715a4 Compare May 14, 2025 10:14
@github-actions github-actions bot force-pushed the dateTimeInputField branch from 3783f6f to 7721b87 Compare May 20, 2025 10:42
@devgurjar devgurjar force-pushed the dateTimeInputField branch from 7721b87 to 9f69daf Compare May 21, 2025 04:29
@github-actions github-actions bot force-pushed the dateTimeInputField branch from 9f69daf to 134d77a Compare May 21, 2025 04:29
@devgurjar devgurjar force-pushed the dateTimeInputField branch from 134d77a to 0e41af4 Compare May 21, 2025 06:28
@github-actions github-actions bot force-pushed the dateTimeInputField branch from 0e41af4 to 2527241 Compare May 21, 2025 06:28
Copy link

codecov bot commented May 21, 2025

Codecov Report

Attention: Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.87%. Comparing base (f268f3e) to head (c233a95).
Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
...mponents/internal/models/v1/form/DateTimeImpl.java 94.44% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #1587      +/-   ##
============================================
+ Coverage     82.79%   82.87%   +0.08%     
- Complexity     1036     1047      +11     
============================================
  Files           109      110       +1     
  Lines          2697     2716      +19     
  Branches        392      394       +2     
============================================
+ Hits           2233     2251      +18     
  Misses          270      270              
- Partials        194      195       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@adobe-bot
Copy link

Lighthouse scores (mobile)

Performance Accessibility Best-Practices SEO
Scores 92 96 96 75

@adobe-bot
Copy link

Lighthouse scores (desktop)

Performance Accessibility Best-Practices SEO
Scores 100 96 96 75

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
target-size serious

2 similar comments
@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
target-size serious

@adobe-bot
Copy link

Lighthouse scores (desktop)

Performance Accessibility Best-Practices SEO
Scores 100 96 96 75

@adobe-bot
Copy link

Lighthouse scores (mobile)

Performance Accessibility Best-Practices SEO
Scores 92 96 96 75

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
page-has-heading-one moderate
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
target-size serious

1 similar comment
@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
target-size serious

@devgurjar devgurjar force-pushed the dateTimeInputField branch from 2527241 to 68c79c4 Compare May 22, 2025 05:35
@github-actions github-actions bot force-pushed the dateTimeInputField branch from 68c79c4 to 0471057 Compare May 22, 2025 05:35
@adobe-bot
Copy link

Lighthouse scores (desktop)

Performance Accessibility Best-Practices SEO
Scores 100 96 96 75

@adobe-bot
Copy link

Lighthouse scores (mobile)

Performance Accessibility Best-Practices SEO
Scores 94 96 96 75

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
page-has-heading-one moderate
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
target-size serious

@adobe-bot
Copy link

Lighthouse scores (mobile)

Performance Accessibility Best-Practices SEO
Scores 94 96 96 75

@adobe-bot
Copy link

Lighthouse scores (desktop)

Performance Accessibility Best-Practices SEO
Scores 100 96 96 75

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
page-has-heading-one moderate
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
label-title-only serious
target-size serious

@devgurjar devgurjar force-pushed the dateTimeInputField branch from 0471057 to 314d9c9 Compare May 22, 2025 09:51
@devgurjar devgurjar force-pushed the dateTimeInputField branch from 62aa4b5 to 33654cb Compare July 16, 2025 09:36
@@ -152,7 +152,7 @@ public static void testSchemaValidation(@NotNull Object model) {
((ObjectNode) formContainerTemplateNode).putArray("items").add(json);
json = formContainerTemplateNode;
}
// create set of validation message and store result in it
// create set of validation message and st ore result in it
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fix this typo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove these changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed, I think this was the culprit, these changes were added by Intellij automatically.

@@ -94,7 +94,7 @@
],
"fd:version": "2.1",
"schemaType": "none",
"specVersion": "0.14.2",
"specVersion": "0.15.2",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did you make this change ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please don't make any changes in the file which is not related to this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I am not updating this version, 3 tests are failing FormContainerImplTest.testJSONExportWithoutSubmissionAttribute
FormContainerImplTest.testJSONExportWithSubmissionHeader
FormContainerImplTest.testJSONExportWithSubmissionAttribute

}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove these changes from this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -4150,7 +4150,7 @@
"integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==",
"dev": true,
"dependencies": {
"tweetnacl": "^0.14.3"
"tweetnacl": "^0.15.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove these changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@devgurjar devgurjar force-pushed the dateTimeInputField branch 2 times, most recently from cb379de to 857e253 Compare July 16, 2025 12:50
@@ -85,6 +85,9 @@ private ReservedProperties() {
public static final String PN_MAX_LENGTH = "maxLength";
public static final String PN_MINIMUM_DATE = "minimumDate";
public static final String PN_MAXIMUM_DATE = "maximumDate";
public static final String PN_MINIMUM_DATE_TIME = "minimumDateTime";
public static final String PN_DEFAULT_DATE_TIME = "defaultDateTime";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this not yet removed, this is not used anywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@rismehta
Copy link
Collaborator

Please resolve conflicts

@devgurjar devgurjar force-pushed the dateTimeInputField branch from 857e253 to e1d2e3b Compare July 16, 2025 13:37
Copy link
Collaborator

@rismehta rismehta left a comment

Choose a reason for hiding this comment

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

I don't see authoring or runtime test cases for date time component

dgurjar added 9 commits July 17, 2025 17:18

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@devgurjar devgurjar force-pushed the dateTimeInputField branch from e1d2e3b to c233a95 Compare July 17, 2025 11:49
@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
page-has-heading-one moderate
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

1 similar comment
@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
page-has-heading-one moderate
target-size serious

@devgurjar
Copy link
Contributor Author

I don't see authoring or runtime test cases for date time component

I have added tests

@rismehta rismehta merged commit f74d2c6 into dev Jul 18, 2025
11 checks passed
@rismehta rismehta deleted the dateTimeInputField branch July 18, 2025 09:48
rismehta added a commit that referenced this pull request Jul 21, 2025
* Date time input field (#1587)

* date time input field

* date time fixes

* Added test cases

* fixed default message issue

* fixed formatting

* fixing code coverage

* removed css and fixed formatting

* Incorporated review comments

* Added cypress tests on authoring and runtime

---------

Co-authored-by: dgurjar <[email protected]>

* @releng updating af-core (#1657)

---------

Co-authored-by: Devendra Gurjar <[email protected]>
Co-authored-by: dgurjar <[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.

None yet

3 participants