Skip to content

Commit 9d33cbf

Browse files
authored
docs(onboarding) - add portugal versioninng (#812)
* add schema detector form * vibe code * schema versions * fix build * format * apply changes * fix exports * scrolling * format * fix * more preview of the changes * increase limits * exclude folder * add docs * move files * updates to contract details * remove console * update docs * add gbr docs * add prt contract details migration update * update for PRT * fix format * fix conflicts
1 parent ac902f1 commit 9d33cbf

4 files changed

Lines changed: 54 additions & 1 deletion

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Portugal (PRT)
2+
3+
Schema versions for employee onboarding in Portugal.
4+
5+
## Current Version
6+
7+
**Contract Details:** v2 (Since SDK 1.23.0)
8+
9+
## Contract Details
10+
11+
### v3 - Current (Since SDK 1.23.0, March 2026)
12+
13+
**What changed:**
14+
15+
- New offboarding acknowledgment - requires employers to acknowledge complex statutory requirements about vacation pay, vacation allowance, and Christmas allowance upon termination
16+
- Enhanced descriptions - provides more detailed and accurate information about allowances, training requirements, and offboarding entitlements
17+
- Help center links updated - new documentation references added
18+
19+
### v2 (Since SDK 1.23.0, March 2026)
20+
21+
**What changed:**
22+
23+
- Work address standardization - moved from inline definition to reusable component
24+
- Probation period UX improvement - introduced a yes/no question (has_probation_period) before asking for duration, and tightened the validation rules to match legal requirements more precisely (90-180 days instead of 15-240 days)
25+
26+
**Migration:**
27+
28+
```tsx
29+
<OnboardingFlow
30+
options={{
31+
jsonSchemaVersionByCountry: {
32+
PRT: { contract_details: 2 },
33+
},
34+
}}
35+
/>
36+
```
37+
38+
---
39+
40+
### v1 (SDK 1.0.0)
41+
42+
Initial version with basic contract details fields.

docs/schema-changes/eor/contract-details/countries/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ These countries have upgraded to contract_details v2, which introduces notice_pe
2626
- [Nigeria (NGA)](./NGA.md)
2727
- [Norway (NOR)](./NOR.md)
2828
- [New Zealand (NZL)](./NZL.md)
29+
- [Portugal (PRT)](./PRT.md)
2930
- [Saudi Arabia (SAU)](./SAU.md)
3031
- [Singapore (SGP)](./SGP.md)
3132
- [Serbia (SRB)](./SRB.md)

example/src/Onboarding.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ const OnboardingWithProps = ({
332332
// New Zealand
333333
contract_details: 2,
334334
},
335+
PRT: {
336+
// Portugal
337+
contract_details: 3,
338+
},
335339
SAU: {
336340
// Saudi Arabia
337341
contract_details: 2,

src/components/form/fields/default/CheckboxFieldDefault.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { HelpCenter } from '@/src/components/shared/zendesk-drawer/HelpCenter';
12
import { Checkbox } from '@/src/components/ui/checkbox';
23
import {
34
FormControl,
@@ -65,7 +66,12 @@ export const CheckboxFieldDefault = ({
6566
)}
6667
</>
6768
</FormControl>
68-
{description && <FormDescription>{description}</FormDescription>}
69+
{description && (
70+
<FormDescription>
71+
{fieldData.description}{' '}
72+
<HelpCenter helpCenter={fieldData.meta?.helpCenter} />
73+
</FormDescription>
74+
)}
6975
{fieldState.error && <FormMessage />}
7076
</FormItem>
7177
);

0 commit comments

Comments
 (0)