Skip to content

feat(devices): add release years to presets - #12

Merged
lbb00 merged 3 commits into
mainfrom
feat/device-release-years
Sep 10, 2026
Merged

lbb00 merged 3 commits into
mainfrom
feat/device-release-years

Conversation

@lbb00

@lbb00 lbb00 commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Bundled device profiles now include a required releaseYear, so device selectors can sort the 171 included profiles chronologically without handling a missing value. Custom DeviceProfile values remain compatible without a year.

Each year is stored beside its profile in the platform table. The table test catches any preset without a valid year. Names that intentionally combine multiple model generations use the earliest represented release year for deterministic sorting. The device coverage tables now include recognizable model names, including separate inner and outer profiles for HUAWEI Mate X6.

The three platform tables are formatted with Oxfmt. Its JSONC config uses trailing commas for multi-line structures. Oxlint runs alongside the existing ESLint rules, and CI checks the Oxfmt output before building.

How was this verified?

  • pnpm format:check
  • pnpm build
  • pnpm test
  • pnpm lint
  • pnpm check-types

Checklist

  • Tests added or updated
  • pnpm lint passes with zero warnings
  • CHANGELOG.md updated under ## [Unreleased]

@lbb00
lbb00 merged commit 350b378 into main Sep 10, 2026
2 checks passed
@lbb00
lbb00 deleted the feat/device-release-years branch September 10, 2026 07:33
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