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

5095 move onboardingstatus computation from frontend to backend #5954

Merged

Conversation

martmull
Copy link
Contributor

@martmull martmull commented Jun 19, 2024

  • move front onboardingStatus computing to server side
  • add logic to useSetNextOnboardingStatus
  • update some missing redirections in usePageChangeEffectNavigateLocation
  • separate subscriptionStatus from onboardingStatus

@martmull martmull linked an issue Jun 19, 2024 that may be closed by this pull request
@martmull martmull force-pushed the 5095-move-onboardingstatus-computation-from-frontend-to-backend branch from fa8137b to 86afc6b Compare June 19, 2024 14:52
@martmull martmull marked this pull request as ready for review June 19, 2024 15:04
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

  • Move onboarding status computation to backend
  • Update hooks and states to use new backend-driven onboarding status
  • Modify test cases to reflect new onboarding status values
  • Remove obsolete frontend onboarding status computation logic
  • Introduce useSetNextOnboardingStatus hook for consistent status updates

27 file(s) reviewed, 2 comment(s)

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

(updates since last review)

  • Moved onboardingStatus computation from frontend to backend
  • Added logic to useSetNextOnboardingStatus
  • Updated missing redirections in usePageChangeEffectNavigateLocation
  • Simplified conditions in useShowAuthModal.ts by removing isDefined utility function

1 file(s) reviewed, no comment(s)

@charlesBochet
Copy link
Member

@martmull Looks way better to have this on BE. I feel we should use this opportunity to clarify workspaceStatus from subscriptionStatus from onboardingStatus.

Also, I have merge main in your branch but we have some bug because of @magrinj work on typeorm. (userWorkspaceService is using scoped request but it does not seem to be properly instanciated). Could you check with him?

@martmull martmull force-pushed the 5095-move-onboardingstatus-computation-from-frontend-to-backend branch from f860db2 to 66f4277 Compare June 26, 2024 14:38
@martmull martmull force-pushed the 5095-move-onboardingstatus-computation-from-frontend-to-backend branch from 7c34f54 to a061b65 Compare June 27, 2024 10:19
@martmull martmull force-pushed the 5095-move-onboardingstatus-computation-from-frontend-to-backend branch 2 times, most recently from cd02091 to dd48784 Compare June 27, 2024 14:19
@martmull martmull force-pushed the 5095-move-onboardingstatus-computation-from-frontend-to-backend branch from dd48784 to a860990 Compare June 27, 2024 14:57
@martmull martmull force-pushed the 5095-move-onboardingstatus-computation-from-frontend-to-backend branch from a860990 to 5a40bc4 Compare June 27, 2024 15:06
@martmull martmull force-pushed the 5095-move-onboardingstatus-computation-from-frontend-to-backend branch from 433fa31 to 9eaa2c3 Compare June 28, 2024 07:27
Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@martmull martmull force-pushed the 5095-move-onboardingstatus-computation-from-frontend-to-backend branch from 7eb4159 to e41d498 Compare June 28, 2024 13:40
@martmull martmull force-pushed the 5095-move-onboardingstatus-computation-from-frontend-to-backend branch from e41d498 to 8ff17d9 Compare June 28, 2024 14:32
@martmull martmull merged commit b8f33f6 into main Jun 28, 2024
15 checks passed
@martmull martmull deleted the 5095-move-onboardingstatus-computation-from-frontend-to-backend branch June 28, 2024 15:32
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.

Move onboardingStatus computation from frontend to backend
2 participants