Quick Seeding With YAML#364
Merged
Merged
Conversation
- Add SeederPage with CodeMirror YAML editor and preset cards (Team, Org+Team, Single User) - Seeder route accepts optional orgId to add top-level teams to the selected org - Top-level teams in YAML land in the session's current org via useTeam() - Remove full-enterprise preset; replace with 5-member Team preset - Rename seed-import files to seeder for consistency - Link seeded orgs to the default enterprise so they appear in the org selector Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rewrite the seed-import service around a plan→build flow: collect every user reference anywhere in the document (users list, org/enterprise owners & admins, team members & admins, ticket createdBy/assignedTo), create them all as real loginable accounts via better-auth, then resolve all references from a complete email→userId map. Team admins are now implicitly members so an admin is always visible on the team, and team members are added to the parent org. Top-level teams attach to the org selected in the Seeder UI. Also: - Gate the Seeder import on a selected org; warn + disable when none. - Add "Developers" subheading and reorder the user dropdown menu. - Update install ownership tests to the unified install-state flow. - Drop unused import flagged by lint. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Team updates now use \$addToSet so re-importing adds members without removing existing ones. Reverted team-only.yaml back to root-level teams: (requires org selected in UI) per design intent. Removed the 2s auto-reload after import. Added no-org warning in the UI when the Team preset is loaded but no organizations exist yet. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a development and test feature only. It provides a way to seed users, teams, and organizations using yaml and or presets.
Fixes #274