Skip to content

feat: more info reminder config#136

Merged
sergiojoker11 merged 2 commits into
mainfrom
feat/more-info-reminder-config
May 15, 2025
Merged

feat: more info reminder config#136
sergiojoker11 merged 2 commits into
mainfrom
feat/more-info-reminder-config

Conversation

@sergiojoker11
Copy link
Copy Markdown
Member

No description provided.

Comment thread src/schemas/common.ts
export const idpIdSchema = z.string().brand('IdpId');
export const dateTimeSchema = z.string().datetime().brand('DateTime');
export const timeZoneSchema = z.string().brand('TimeZone');
export const idpIdSchema = z.string().max(128).brand('IdpId');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is something I've been thinking (max). should we cap it for the form/onboarding stuff too?

BusinessName, BusinessAddress, etc etc

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

(discussed on call)yes, let's limit fields ion frontend too.

Comment thread src/types/reminder.ts
@@ -96,7 +97,20 @@ export const reminderConfigSchema = z.object({
business: z.object({
name: z.string().min(1).brand('BusinessName'),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

TIL that .brand('BusinessName') and .transform(value => value as BusinessName) behave the same (because the TS type is a Brand)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I will do it separetely once all PRs are merged - as discusssed over meet

Copy link
Copy Markdown
Member

@dsiguero dsiguero left a comment

Choose a reason for hiding this comment

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

Ignore this stuff

Comment thread src/types/reminder.ts
senderContact: senderSchema,
language: languageCodeSchema,
timezone: timeZoneSchema,
companyIndustry: z.object({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This schema isn't for the API endpoint, right? I am a bit confused xD

Copy link
Copy Markdown
Member

@dsiguero dsiguero left a comment

Choose a reason for hiding this comment

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

Estoy como Dinio, confundido xD

@sergiojoker11 sergiojoker11 merged commit 5db3112 into main May 15, 2025
2 checks passed
@sergiojoker11 sergiojoker11 deleted the feat/more-info-reminder-config branch May 15, 2025 12:18
sergiojoker11 pushed a commit that referenced this pull request May 15, 2025
🤖 I have created a release *beep* *boop*
---


## [4.2.0](v4.1.1...v4.2.0)
(2025-05-15)


### Features

* more info reminder config
([#136](#136))
([5db3112](5db3112))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
sergiojoker11 added a commit to Notifycal/backend that referenced this pull request May 15, 2025
depends on : Notifycal/shared#136

extended ReminderConfig with:
 - language
 - timezone
 - T&C, privacy policy and marketing consent
 - company sector and size
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.

2 participants