Skip to content

Name every sample after its app and platform - #33

Merged
brionmario merged 1 commit into
thunder-id:mainfrom
brionmario:restructure-samples
Nov 25, 2026
Merged

brionmario merged 1 commit into
thunder-id:mainfrom
brionmario:restructure-samples

Conversation

@brionmario

@brionmario brionmario commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

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.

Before After
quickstarts/<platform> (12 samples) 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
integrations/better-auth-nextjs unchanged

The 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 mv for every sample, so history follows the files.
  • Banners and release zips are now named after the sample alone (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.yml inputs are renamed to sample_<area>_<sample>, still 20 of the 25 allowed.
  • npm package names follow the folder: @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.md documents 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 the SELF-SERVICE SAMPLE badge.

Related Issues

  • N/A

Related PRs

Checklist

  • Followed the contribution guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Tests provided. (Add links if there are any)
    • Unit Tests
    • Integration Tests
  • Breaking changes. (Fill if applicable)
    • Breaking changes section filled.
    • breaking change label added.

Security checks

  • Followed secure coding standards.
  • Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.

@brionmario

Copy link
Copy Markdown
Member Author

🔎 Dependency Review fails on this PR only because of the move. Moving integrations/flutter-app-auth to integrations/app-auth-flutter makes its pubspec.lock look like a new file, so every pub dependency in it is reviewed again. The dependency graph reports pub licenses in lowercase (bsd-3-clause, apache-2.0, mit), which fails the action's SPDX validity check. The same issue is why thunderid_flutter and material_ui are already in allow-dependencies-licenses.

The flagged packages are the same versions that are on main today under the old path, and no vulnerabilities were found. The check isn't required, and the action can't allow-list by wildcard, so this leaves the config as it is rather than adding 27 pub packages to it permanently.

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>
@brionmario

Copy link
Copy Markdown
Member Author

Dependency Review: the Flutter samples' pub dependencies are now in allow-dependencies-licenses (pushed), since pub.dev licenses always come through as non-SPDX lowercase ids. This replaces the note above.

@brionmario brionmario removed the breaking change The feature/ improvement will alter the existing behaviour for the product label Nov 25, 2026
@brionmario
brionmario merged commit d9dc8b6 into thunder-id:main Nov 25, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants