Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: self hosted onboarding #5057

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft

Conversation

kyle-ssg
Copy link
Member

@kyle-ssg kyle-ssg commented Jan 29, 2025

Thanks for submitting a PR! Please check the boxes below:

  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Adds an onboarding flow for new self-hosted instances.

  • Registers the user and creates the organisation in 1 workflow,

  • Migrates version endpoint and homepage to RTK in order to determine if onboarding is necessary

  • Adds resources panel for company self-hosted emails, allows initialising crisp

  • Sends more information to crisp

  • Todo: Add an approach to detecting onboarding needs to happen in the versions endpoint

  • If we are to link to getting started docs, we just need a url for them to live in

  • If there's any other info we might want to gather it'd need specifying

todo:

  • Needs an endpoint like the following that returns a user token
/onboarding
{
    first_name: string
    last_name: string
    email: string
    password: string
    contact_consent_given: boolean // consent to contact about onboarding etc 
    organisation_name: string
  }
  • Needs a way of knowing the instance has no users, ideally in the /version endpoint

image
https://github.com/user-attachments/assets/308ad636-48b8-46cd-b0ae-f98ca94e02dc

How did you test this code?

@kyle-ssg kyle-ssg requested a review from a team as a code owner January 29, 2025 18:11
@kyle-ssg kyle-ssg requested review from tiagoapolo and removed request for a team January 29, 2025 18:11
Copy link

vercel bot commented Jan 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2025 11:36am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2025 11:36am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Feb 26, 2025 11:36am

@kyle-ssg kyle-ssg marked this pull request as draft January 29, 2025 18:11
@github-actions github-actions bot added front-end Issue related to the React Front End Dashboard feature New feature or request labels Jan 29, 2025
Copy link
Contributor

github-actions bot commented Jan 29, 2025

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-5057 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-5057 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-e2e:pr-5057 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith:pr-5057 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-5057 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-frontend:pr-5057 Finished ✅ Results

@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Jan 29, 2025
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Jan 29, 2025
Copy link
Contributor

github-actions bot commented Jan 29, 2025

Uffizzi Ephemeral Environment deployment-60409

☁️ https://app.uffizzi.com/github.com/Flagsmith/flagsmith/pull/5057

📄 View Application Logs etc.

What is Uffizzi? Learn more!

@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Self Hosted Docker DX improvements
1 participant