feat: Enhance private link expiration with usage and date limits (#22304)

* init

* fix type

* fix a re-render infinite loop because of missing readOnly (╯°□°)╯︵ ┻━┻)

* further fixes

* improvement

* fix expiry datetime check

* remove unnecessary prismaMock def

* revert

* fix test

* add test ids

* remove unit tests in favor of e2e

* e2e test update

* fix e2e

* fix e2e

* remove unnecessary change

* abstract into injectable object

* further improvements

* fix label not selecting radio

* fix type

* code improvement

* DI implementation

* fix type

* fix quick copy

* code improvement and a few fixes

* further improvements and NITS

* further into DI

* select

* improve link list sorting

* prep for easier conflict resolution

* add back translations

* using useCopy instead

* improvement

* add index to update salt and have different hash generation

* fix private link description

* fix increment regression in expiry logic

* fixes

* address feedback

* use extractHostTimezone in event type listing

* remove unused function

* remove translationBundler

* -_-

* address feedback

* further changes

* address more feedback

* NIT

* address improvement suggestions

* use extractHostTimezone

* remove console log

* pre update

* code improvement

* further fixes

* cleanup

* -_-
This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2025-07-24 19:54:44 +01:00
1 parent b9c49b4567
commit 66b52bb19f
30 files changed
+1564 -220

No files matched your search

@@ -73,7 +73,11 @@ export const useEventTypeForm = ({
durationLimits: eventType.durationLimits || undefined,
length: eventType.length,
hidden: eventType.hidden,
multiplePrivateLinks: eventType.hashedLink.map((link) => link.link),
multiplePrivateLinks: eventType.hashedLink.map((link) => ({
link: link.link,
expiresAt: link.expiresAt,
maxUsageCount: link.maxUsageCount,
})),
eventTypeColor: eventType.eventTypeColor || null,
periodDates: {
startDate: periodDates.startDate,