Skip to content

feat(seed): replace the size tiers with the four Ley 187-17 categories - #613

Open
mrivas00 wants to merge 1 commit into
feat/mati/rd-schema-additionsfrom
feat/mati/rd-organization-sizes
Open

feat(seed): replace the size tiers with the four Ley 187-17 categories#613
mrivas00 wants to merge 1 commit into
feat/mati/rd-schema-additionsfrom
feat/mati/rd-organization-sizes

Conversation

@mrivas00

Copy link
Copy Markdown
Collaborator

Why

MMARN observed that the organization-size catalog does not match Dominican law. The demo dataset ships eight tiers invented for the sample country ("Corporación multinacional (5000+ empleados)"); Ley 187-17 defines four.

PR 4 of 8 · base feat/mati/rd-schema-additions (PR 3) · no migration.

What

Before (8 demo tiers) After (Ley 187-17)
Microempresa (1-10 empleados) Microempresa (hasta 10 trabajadores)
Pequeña empresa (11-49 empleados) Pequeña empresa (11 a 50 trabajadores)
Mediana empresa I / II (50-99, 100-249) Mediana empresa (51 a 150 trabajadores)
Gran empresa, Empresa muy grande, Corporación grande, Corporación multinacional Empresa grande

position is assigned by the seed in file order, so the maintainer and the form present them smallest-first.

Review notes

The size tier is independent of employeesCount: nothing derives one from the other, and neither field is required on the form. An organization can therefore declare its Ley 187-17 category without disclosing an exact headcount — which is the point, since the law's categories also depend on gross annual sales, a figure the platform does not collect.

The maintainer's explanation text is already generic about thresholds ("Cada Tamaño suele definir tramos en función de número de empleados, ingresos u otros criterios establecidos por el regulador"), so it stays accurate unchanged.

Verification

pnpm format && pnpm lint && pnpm type-check green.

Not verified here: task 5.3 asks to reseed and confirm the form offers exactly four tiers — no database was available in the authoring environment. Note that this replacement is one of the reasons the deployment needs the reset window (seed.ts skips entirely when country.count() > 0), so it should be exercised there.

@mrivas00 mrivas00 added priority: high High priority type: feature new user-facing capability or enhancement area: packages shared packages/* labels Aug 21, 2026
@mrivas00
mrivas00 force-pushed the feat/mati/rd-schema-additions branch from 5df1bc3 to a015d35 Compare August 24, 2026 12:25
@mrivas00
mrivas00 force-pushed the feat/mati/rd-organization-sizes branch from 4ef048b to 5ea7ed3 Compare August 24, 2026 12:25
@mrivas00
mrivas00 force-pushed the feat/mati/rd-schema-additions branch from a015d35 to fb37631 Compare August 24, 2026 15:10
@mrivas00
mrivas00 force-pushed the feat/mati/rd-organization-sizes branch 2 times, most recently from 43e2199 to 2e5cf76 Compare August 24, 2026 17:58
@mrivas00
mrivas00 force-pushed the feat/mati/rd-schema-additions branch from fb37631 to 144ca97 Compare August 24, 2026 17:58
@mrivas00
mrivas00 force-pushed the feat/mati/rd-organization-sizes branch from 2e5cf76 to 871de55 Compare August 25, 2026 18:50
@mrivas00
mrivas00 force-pushed the feat/mati/rd-schema-additions branch from 6152fb0 to 80c901f Compare August 26, 2026 12:12
@mrivas00
mrivas00 force-pushed the feat/mati/rd-organization-sizes branch from 871de55 to f97ffee Compare August 26, 2026 12:12
@mrivas00
mrivas00 force-pushed the feat/mati/rd-schema-additions branch from 80c901f to ee08ab5 Compare August 26, 2026 12:36
@mrivas00
mrivas00 force-pushed the feat/mati/rd-organization-sizes branch from f97ffee to ac694ff Compare August 26, 2026 12:36
MMARN observed that the eight demo tiers do not match Dominican law. Ley
187-17 defines four: microempresa (hasta 10 trabajadores), pequeña (11 a
50), mediana (51 a 150) and grande.

The tier stays independent of `employeesCount`: nothing derives one from
the other and neither field is required, so an organization can declare
its category without disclosing an exact headcount.
@mrivas00
mrivas00 force-pushed the feat/mati/rd-schema-additions branch from ee08ab5 to 87aaa3f Compare August 26, 2026 20:21
@mrivas00
mrivas00 force-pushed the feat/mati/rd-organization-sizes branch from ac694ff to 13393cb Compare August 26, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: packages shared packages/* priority: high High priority type: feature new user-facing capability or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant