Skip to content

Data-quality: inventory TabletType must match the tablet's Model.Type - #63

Merged
TheSevenPens merged 1 commit into
masterfrom
inventory-tablettype-check
Oct 6, 2026
Merged

TheSevenPens merged 1 commit into
masterfrom
inventory-tablettype-check

Conversation

@TheSevenPens

Copy link
Copy Markdown
Owner

Before: an inventory tablet unit's TabletType restates its tablet's Model.Type, but nothing compared the two. HUT.0019, a Kamvas Pro 24 GEN3 pen display, was recorded as a PENTABLET until the purchase-record reconciliation in #62.

After: data-quality reports a unit whose TabletType isn't its tablet's Model.Type, for example HUT.0019 TabletType: is not the tablet's Model.Type (got "PENTABLET", huion.tablet.gt2402 has "PENDISPLAY"). Run against the inventory as it was before #62, the check flags exactly HUT.0019. The current data is clean.

How: the check sits beside the existing ModelId check in runCrossEntityChecks, reusing the same per-tablet lookup. data-quality-inventory.test.ts adds a mismatch case, and a case showing that a missing TabletType is reported once by the schema check with no extra mismatch issue. Vitest, typecheck, typecheck:scripts and data-quality pass locally.

🤖 Generated with Claude Code

An inventory tablet unit's TabletType restates its tablet's Model.Type,
but nothing compared them: HUT.0019, a Kamvas Pro 24 GEN3 pen display,
sat as a PENTABLET until the purchase-record reconciliation (#62).

The cross-entity inventory check now reports a TabletType that isn't
the tablet's Model.Type, beside the existing ModelId check. Run against
the inventory as it was before #62, it flags exactly HUT.0019; the
current data is clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TheSevenPens
TheSevenPens merged commit eea3588 into master Oct 6, 2026
2 checks passed
@TheSevenPens
TheSevenPens deleted the inventory-tablettype-check branch October 6, 2026 17:49
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.

1 participant