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

[16.0][ADD] web_widget_remaining_days_exact_date: New module to show exact date when remaining days shown #2916

Merged

Conversation

CarlosRoca13
Copy link
Contributor

@CarlosRoca13 CarlosRoca13 commented Aug 14, 2024

This module is adding an option to the remaining_days widget to be able to show the exact date.
image

cc @Tecnativa TT50517

ping @pedrobaeza @chienandalu

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Tested. Tiny suggestion:

{
get diffString() {
var value = this._super(...arguments);
if (this.props.exact_date && Math.abs(this.diffDays) <= 99) {
Copy link
Member

Choose a reason for hiding this comment

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

Add comment on why the hardcoded 99 value :)

…date when remaining days shown

This module is adding an option to the remaining_days widget to be able
to show the exact date.
@CarlosRoca13 CarlosRoca13 force-pushed the 16.0-ADD-web_widget_remaining_days_exact_date branch from 9cf8e43 to a2f4298 Compare August 14, 2024 09:16
@CarlosRoca13
Copy link
Contributor Author

I have changed the module's behavior so that this option works by default, and in case you don't want to use it, it can be disabled with options="{'exact_date': False}". Please review it again @chienandalu

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

👍

@pedrobaeza pedrobaeza added this to the 16.0 milestone Aug 14, 2024
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-2916-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit bc0104d into OCA:16.0 Aug 14, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 5cdc126. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 16.0-ADD-web_widget_remaining_days_exact_date branch August 14, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants