Commit Graph
25 Commits
Author SHA1 Message Date
Sky Mulley 2bbd6b73b5 initial language pack support 2026-10-27 11:42:22 +00:00
robert dennis 457b9db021 theme cleanup 2026-10-12 23:40:08 -04:00
robert dennis a9d9cd0121 theme build fixes 2026-10-12 22:34:14 -04:00
robert dennis 2459d82c9e merge runtime 2026-10-12 22:05:22 -04:00
robert dennis c4290460f2 nested views 2026-10-12 21:57:49 -04:00
robert dennis ec22a2d808 admin routes 2026-10-12 21:26:31 -04:00
robert dennis 3e943d04b3 drop entry probe 2026-10-12 21:23:21 -04:00
robert dennis 56db59c459 token table 2026-10-12 21:21:20 -04:00
robert dennis 88be3161db theme sheet order 2026-10-12 21:20:14 -04:00
robert dennis 51860b98ba theme polish 2026-10-12 19:29:07 -04:00
robert dennis ce2d78e839 theme inheritance 2026-10-12 19:13:44 -04:00
robert dennis 5d17261cbd theme cleanup 2026-10-12 17:59:50 -04:00
robert dennis d4c8a8af50 themes guide 2026-10-12 17:52:20 -04:00
robert dennis 8647e0b1ac docs types 2026-10-12 16:39:02 -04:00
robert dennis c9f8101653 sdk imports 2026-10-12 16:36:10 -04:00
robert dennis d92fef284a lazy view models 2026-10-12 16:36:06 -04:00
robert dennis 0b26c51315 theme docs 2026-10-12 16:24:48 -04:00
robert dennis cf0322c5cb theme samples 2026-10-12 16:24:48 -04:00
robert dennis ec60d70e4c theme tooling 2026-10-12 14:24:49 -04:00
robert dennis 01787b8c22 theme platform 2026-10-12 08:15:15 -04:00
robert dennis 117d8ee489 theme runtime tests 2026-10-12 08:14:53 -04:00
robert dennis 7b8b592900 theme views 2026-10-12 08:14:53 -04:00
DarkZmaj 7c6327d58e Do not require PHP 8.4 for the extension OpenAPI generator script (#7252)
## Problem

`packages/sdk/openapi.spec.ts` ("extracts all four extension API areas
without matching another extension") fails on PHP 8.3 with `Call to
undefined function mb_trim()` from
`scripts/generate-extension-openapi.php`. `composer.json` allows PHP
`^8.3`, but `mb_trim()` only exists natively from PHP 8.4. The frontend
job of the Tests workflow uses PHP 8.4, so the failure is not visible
there.

## Reproduction

On PHP 8.3 (for example `shivammathur/setup-php` with `php-version:
8.3`) run `npm ci` and `npm test`. One test fails with `PHP Fatal error:
Uncaught Error: Call to undefined function mb_trim() in
scripts/generate-extension-openapi.php:76`.

## Root cause

The script is meant to run standalone, and it only loads the Composer
autoloader when YAML input or output is involved. The autoloader is what
provides the `mb_trim()` polyfill, so the JSON only path calls an
undefined function on PHP 8.3.

## Fix

Use `trim()` for the generated API title. The title is built from the
original title, a fixed separator and a validated extension id, so ASCII
whitespace trimming gives the same result and no longer depends on the
polyfill.

## Testing

* `npx vitest run packages/sdk/openapi.spec.ts` on PHP 8.3: the
extraction test now passes. (The second test in that file also fails on
my Windows machine for a separate reason that does not occur on Linux,
so it is not part of this change.)
* Linux CI on PHP 8.3 reproduced the original failure as the only
failing frontend test.

## Compatibility considerations

None. The output is the same for any normal title, which cannot start
with Unicode only whitespace.
2026-10-06 22:47:54 -04:00
robert dennis f21c2f0775 upgrade react 2026-10-05 23:13:58 -04:00
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00