mirror of
https://github.com/strapi/strapi.git
synced 2026-06-02 16:27:47 +00:00
1dd851498a
* feat(admin): add documentation helper link in HeaderLayout Revival of #23328 (by @Mcastres), rebased on develop with review feedback addressed and additional improvements: - Replace hand-rolled find with react-router matchRoutes for proper path matching and specificity ranking - Update doc URLs to canonical docs.strapi.io paths (drop redirected /user-docs/* and /dev-docs/* entries) - Restore section anchors that were lost during doc-site reorganization (#providers, #email-templates, #advanced-settings, profile, rbac) - Align array path entries with actual registered admin routes (rename /plugins/content-type-builder, /plugins/content-releases, settings prefix for purchase-content-releases and list-plugins, drop dead /marketplace external link) - Add opt-out flag admin.flags.docLinks for white-label deployments (requested by @derrickmehaffy) - Memoize getMatchingDocLink result per pathname - Place doc link button next to primary action via gap on parent Flex (per @remidej review) - Drop async from getMatchingDocLink, derive docLink synchronously from pathname (per @remidej review) Closes #23328 Co-authored-by: Maxime Castres <17828745+Mcastres@users.noreply.github.com> Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(admin): move DocLink type to getMatchingDocLink module Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(admin): add docLinks flag to EE Window strapi type The EE admin custom.d.ts redeclares window.strapi.flags and was missing the docLinks property, causing test:ts:front to fail with TS2339 in HeaderLayout.tsx. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * test: add getMachingDocLink tests --------- Co-authored-by: Maxime Castres <17828745+Mcastres@users.noreply.github.com> Co-authored-by: Ben Irvin <ben@innerdvations.com>
Experimental Dev
This app is used to run experimental dependencies in Strapi. Specifically right now, used to test react19 release candidates & the react-compiler
Getting started
To run the example you should include USE_EXPERIMENTAL_DEPENDENCIES=true in your .env file. This flag is used by the @strapi/strapi cli package and disabled checking against the dependency versions in your project as for production applications we only officially support v17/18 of react.
Using the compiler
The compiler is extremely experimental. To activate it, you need to add USE_REACT_COMPILER=true to your .env file. Compilation may be slower because it's only a babel plugin, so instead of using @vitejs/plugin-react-swc we're using @vitejs/plugin-react which arguably may be slower.