Skip to content

Quick Seeding With YAML#364

Merged
mfisher31 merged 13 commits into
mieweb:mainfrom
mfisher31:yaml-quick-seed
Jun 18, 2026
Merged

Quick Seeding With YAML#364
mfisher31 merged 13 commits into
mieweb:mainfrom
mfisher31:yaml-quick-seed

Conversation

@mfisher31

@mfisher31 mfisher31 commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

This is a development and test feature only. It provides a way to seed users, teams, and organizations using yaml and or presets.

Screenshot 2026-06-18 at 12 30 37 AM

Fixes #274

mfisher31 and others added 12 commits June 16, 2026 13:06
- 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>
@mfisher31 mfisher31 marked this pull request as ready for review June 18, 2026 04:31
@mfisher31 mfisher31 merged commit 49e0f5d into mieweb:main Jun 18, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

YAML Seed Data

1 participant