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

ref(onboarding): refactor useCurrentProjectState to be generalized #66425

Merged
merged 2 commits into from Mar 6, 2024

Conversation

michellewzhang
Copy link
Member

@michellewzhang michellewzhang commented Mar 6, 2024

  • had to revert the original PR (ref(onboarding): refactor useCurrentProjectState to be generalized #66118) due to a failing test - fixed in this PR! this is the only change from the previous PR
  • DDM, Replays, and Feedback onboarding were all using some variation of this hook: useCurrentProjectState. They're all pretty similar, so I refactored them into one general reusable hook
  • I modified the respective sidebar.tsx files to use this new hook
  • I also added a hook test

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 6, 2024
@michellewzhang michellewzhang merged commit f28cd5e into master Mar 6, 2024
42 checks passed
@michellewzhang michellewzhang deleted the mz/hook-ref branch March 6, 2024 17:44
aliu3ntry pushed a commit that referenced this pull request Mar 6, 2024
…66425)

- had to revert the original PR
(#66118) due to a failing test -
fixed in this PR! this is the only change from the previous PR
- DDM, Replays, and Feedback onboarding were all using some variation of
this hook: `useCurrentProjectState`. They're all pretty similar, so I
refactored them into one general reusable hook
- I modified the respective `sidebar.tsx` files to use this new hook
- I also added a hook test
@github-actions github-actions bot locked and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants