Repository navigation
Name every sample after its app and platform - #33
Conversation
9fae021 to
884885b
Compare
884885b to
9c286db
Compare
|
🔎 Dependency Review fails on this PR only because of the move. Moving The flagged packages are the same versions that are on |
Every sample now lives at <area>/<sample>, with a name that ends with the platform it is built on. Quickstarts are quickstarts/quickstart-<platform>[-<variant>], the self-care area becomes self-service, and the samples that hid their platform say it: - quickstarts/<platform> -> quickstarts/quickstart-<platform> - self-care/account -> self-service/myaccount-react - management/admin -> management/admin-react - b2b/wayfinder-enterprise -> b2b/wayfinder-enterprise-nextjs - integrations/flutter-app-auth -> integrations/app-auth-flutter - patterns/react-express-bff -> patterns/bff-react-express The same app on another platform becomes a sibling, such as self-service/myaccount-vue. Samples stay two levels deep, so the pull request builder and the tag format are unchanged. Sample names are unique across areas, so banners and release zips are now named after the sample alone, and every banner is rendered again with the new path in its install box. The release workflow's inputs, the README tables, the npm package names (@thunderid/<sample>-sample), AGENTS.md and the sample-banner skill follow the new names, and AGENTS.md now spells out the naming rules and what else depends on a sample's path. Moving a Flutter sample makes Dependency Review check its pub dependencies again, and the dependency graph reports pub.dev licenses with non-SPDX lowercase ids, so the Flutter samples' pub dependencies join thunderid_flutter and material_ui in allow-dependencies-licenses. Signed-off-by: Brion <info@brionmario.com>
9c286db to
1796eac
Compare
|
Dependency Review: the Flutter samples' pub dependencies are now in |
Purpose
Gives every sample a name that says what it is and what it's built on, so the layout scales to more platforms without nesting.
quickstarts/<platform>(12 samples)quickstarts/quickstart-<platform>self-care/accountself-service/myaccount-reactmanagement/adminmanagement/admin-reactb2b/wayfinder-enterpriseb2b/wayfinder-enterprise-nextjsintegrations/flutter-app-authintegrations/app-auth-flutterpatterns/react-express-bffpatterns/bff-react-expressintegrations/better-auth-nextjsThe rule:
<area>/<sample>, where the sample name ends with its platform. The same app on another platform is a sibling (self-service/myaccount-vue), never a nested folder.Approach
git mvfor every sample, so history follows the files.quickstart-react.png,thunderid-myaccount-react-sample-v1.0.1.zip), because sample names are unique across areas. Every banner is rendered again, since the install box shows the path. The old PNGs are removed, so the banner in a README inside an earlier release zip no longer loads.release.ymlinputs are renamed tosample_<area>_<sample>, still 20 of the 25 allowed.@thunderid/<sample>-sample, with the BFF's workspaces@thunderid/bff-react-express-{client,server}. The lockfiles are updated to match. Dart, Gradle and Xcode project names are unchanged.AGENTS.mddocuments the naming rules per area, and that a sample's path is its ID in the docs, the Console and the SDK E2E suites. The sample-banner skill follows the new file naming and theSELF-SERVICE SAMPLEbadge.Related Issues
Related PRs
Checklist
breaking changelabel added.Security checks