Skip to content

Conversation

@thet
Copy link
Member

@thet thet commented Jan 13, 2026

feat(pat-recurrence): Allow to enable/disable the feature to add additional dates.

Ref:
plone/plone.formwidget.recurrence#66
plone/plone.formwidget.recurrence#49
plone/plone.formwidget.recurrence#48

Does two things:

fix(pat-recurrence): In an error case when loading the occurrences preview, show a inline warning instead of a window alert.

before:

image

after:

image

feat(pat-recurrence): Allow to enable/disable the feature to add additional dates.

Without (default):

image

With:

image

TBD

  • I signed and returned the Plone Contributor Agreement, and received and accepted an invitation to join a team in the Plone GitHub organization.
  • I verified there aren't any other open pull requests for the same change.
  • I followed the guidelines in Contributing to Plone.
  • I successfully ran code quality checks on my changes locally.
  • I successfully ran tests on my changes locally.
  • If needed, I added new tests for my changes.
  • If needed, I added documentation for my changes.
  • I included a change log entry in my commits.

If your pull request closes an open issue, include the exact text below, immediately followed by the issue number. When your pull request gets merged, then that issue will close automatically.

Closes #

@thet thet marked this pull request as draft January 13, 2026 22:39
@thet thet force-pushed the recurrence-additionaldates branch 3 times, most recently from d007cd4 to 458618e Compare January 14, 2026 11:24
@thet thet requested review from petschki and removed request for petschki January 14, 2026 11:59
Copy link
Member

@petschki petschki left a comment

Choose a reason for hiding this comment

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

LGTM

ributtonExtraClass: "",

// INPUT CONFIGURATION
hasAdditionalDates: false,
Copy link
Member

Choose a reason for hiding this comment

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

For me allowAdditionalDates woud make more sense, as its in line with the z3c.form widget property.

Copy link
Member Author

@thet thet Jan 14, 2026

Choose a reason for hiding this comment

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

I changed to hasAdditionalDates as we already have hasRepeatForeverButton. But is there already a z3c.form widget property which is named allowAdditionalDates? I thought that was introduced in plone/plone.formwidget.recurrence#66

Copy link
Member

Choose a reason for hiding this comment

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

No there isn't. I just wanted to be them in sync.

@petschki
Copy link
Member

petschki commented Jan 15, 2026

btw. were the latest two commits on master regarding recurrence widget intended to be in this PR? https://github.com/plone/mockup/commits/master/

@thet
Copy link
Member Author

thet commented Jan 15, 2026

@petschki no, I intentionally left them out of this PR, otherwise reviewing would be hard. This autoformatting did not change anything in the logic, it was just prettifying the code.

@petschki what is your opinion again on hasAdditionalDates vs allowAdditionalDates?‌
The allowAdditionalDates was invented in the plone/plone.formwidget.recurrence#66 without a counterpart in mockup, so IMO we can change it in the other PR too. It's a question on consistency vs clearer naming.

@thet thet force-pushed the recurrence-additionaldates branch from 458618e to 4193b9b Compare January 15, 2026 10:13
yearly: "Yearly",
},

error_load_occurrences: "Cannot load the occurrences preview.",
Copy link
Member

Choose a reason for hiding this comment

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

so the translated strings are all provided via the plone.formwidget.recurrence template markup right? This should be implemented there too.

Copy link
Member

Choose a reason for hiding this comment

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

@petschki
Copy link
Member

@petschki no, I intentionally left them out of this PR, otherwise reviewing would be hard. This autoformatting did not change anything in the logic, it was just prettifying the code.

@petschki what is your opinion again on hasAdditionalDates vs allowAdditionalDates?‌ The allowAdditionalDates was invented in the plone/plone.formwidget.recurrence#66 without a counterpart in mockup, so IMO we can change it in the other PR too. It's a question on consistency vs clearer naming.

my personal opinion: I want to allow adding additional dates or not ... so allowAdditionalDates would be my favorite.

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.

3 participants