Skip to content

Commit f14fdad

Browse files
authored
docs(onboarding) - add pakistan contract details versioning (#816)
* 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 * update china * fix india * add mexico * pakistan contract details * contract-details docs * update readme * fix merge conflict
1 parent 2477384 commit f14fdad

4 files changed

Lines changed: 46 additions & 3 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Pakistan (PAK)
2+
3+
Schema versions for employee onboarding in Pakistan.
4+
5+
## Current Version
6+
7+
**Contract Details:** v2 (Since SDK 1.23.0)
8+
9+
## Contract Details
10+
11+
### v2 - Current (Since SDK 1.23.0, March 2026)
12+
13+
**What changed:**
14+
15+
- Removed `has_variable_bonus` field entirely from the schema
16+
17+
**Migration:**
18+
19+
```tsx
20+
<OnboardingFlow
21+
options={{
22+
jsonSchemaVersionByCountry: {
23+
PAK: { contract_details: 2 },
24+
},
25+
}}
26+
/>
27+
```
28+
29+
---
30+
31+
### v1 (SDK 1.0.0)
32+
33+
Initial version with basic contract details fields.

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ Schema versions (like v2) can have different implementations per country. Instea
1010

1111
### Countries on Contract Details v2
1212

13-
These countries have upgraded to contract_details v2, which introduces notice_period handling:
13+
These countries have upgraded to different versions, check each guide to know how to migrate or what has changed
1414

1515
- [Belarus (BLR)](./BLR.md)
1616
- [China (CHN)](./CHN.md)
1717
- [Switzerland (CHE)](./CHE.md)
1818
- [Czech Republic (CZE)](./CZE.md)
1919
- [Hong Kong (HKG)](./HKG.md)
2020
- [Iceland (ISL)](./ISL.md)
21+
- [India (IND)](./IND.md)
2122
- [Jamaica (JAM)](./JAM.md)
2223
- [Kenya (KEN)](./KEN.md)
2324
- [Lebanon (LBN)](./LBN.md)
@@ -27,6 +28,7 @@ These countries have upgraded to contract_details v2, which introduces notice_pe
2728
- [Nigeria (NGA)](./NGA.md)
2829
- [Norway (NOR)](./NOR.md)
2930
- [New Zealand (NZL)](./NZL.md)
31+
- [Pakistan (PAK)](./PAK.md)
3032
- [Portugal (PRT)](./PRT.md)
3133
- [Saudi Arabia (SAU)](./SAU.md)
3234
- [Singapore (SGP)](./SGP.md)
@@ -48,19 +50,23 @@ These countries have upgraded to contract_details v2, which introduces notice_pe
4850
| Czech Republic | CZE | v2 | March 2026 |
4951
| Hong Kong | HKG | v2 | March 2026 |
5052
| Iceland | ISL | v2 | March 2026 |
53+
| India | IND | v2 | March 2026 |
5154
| Jamaica | JAM | v2 | March 2026 |
5255
| Kenya | KEN | v2 | March 2026 |
5356
| Lebanon | LBN | v2 | March 2026 |
5457
| Mauritius | MUS | v2 | March 2026 |
5558
| Malaysia | MYS | v2 | March 2026 |
59+
| Mexico | MEX | v2 | March 2026 |
5660
| Nigeria | NGA | v2 | March 2026 |
5761
| Norway | NOR | v2 | March 2026 |
5862
| New Zealand | NZL | v2 | March 2026 |
63+
| Pakistan | PAK | v2 | March 2026 |
64+
| Portugal | PRT | v3 | March 2026 |
5965
| Saudi Arabia | SAU | v2 | March 2026 |
6066
| Singapore | SGP | v2 | March 2026 |
6167
| Serbia | SRB | v2 | March 2026 |
6268
| Sweden | SWE | v2 | March 2026 |
63-
| Germany | DEU | v1 | - |
69+
| United Kingdom | GBR | v2 | March 2026 |
6470

6571
## How to Use
6672

example/src/Onboarding.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ const OnboardingWithProps = ({
340340
// New Zealand
341341
contract_details: 2,
342342
},
343+
PAK: {
344+
// Pakistan
345+
contract_details: 2,
346+
},
343347
PRT: {
344348
// Portugal
345349
contract_details: 3,

src/components/shared/zendesk-drawer/HelpCenter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type HelpCenterProps = {
66
};
77

88
export function HelpCenter({ helpCenter }: HelpCenterProps) {
9-
if (!helpCenter) {
9+
if (!helpCenter || !helpCenter.id || !helpCenter.callToAction) {
1010
return null;
1111
}
1212

0 commit comments

Comments
 (0)