Skip to content

Conversation

@hobbescodes
Copy link
Contributor

@hobbescodes hobbescodes commented Jan 2, 2025

Description

Task link: https://linear.app/omnidev/issue/OMNI-128/dashboard-mutations

Added functionality for creating a new project, as well as creating a new organization when the organizations overview is in an empty state, to the dashboard page. This PR must be tested in coordination with the adjustments made to the API outlined in this PR.

Additional Tasks:

  • Updated routing to use organization and project slugs

Note

You will notice that the patterns designed within this PR do not use server side validation / form submission. Happy to adjust accordingly if that is the route we wish to take, I just figured that with using RQ, we will generally want to manipulate the cache directly upon mutations for optimistic updates, so I think the useMutation route in our case is a better pattern. But definitely open to discuss / adjusting! Context on server side form validation and submission with tanstack form can be found here.

Test Steps

  1. Verify that logic is sound
  2. Verify that creating a project works appropriately and form validation works as expected
  3. Verify that creating an organization works appropriately and form validation works as expected
  4. Verify that routing works as expected with org and project slugs

@hobbescodes hobbescodes marked this pull request as ready for review January 3, 2025 18:56
Co-authored-by: Brian Cooper <20056195+coopbri@users.noreply.github.com>
Co-authored-by: Brian Cooper <20056195+coopbri@users.noreply.github.com>
@hobbescodes hobbescodes merged commit 9a59693 into master Jan 10, 2025
@hobbescodes hobbescodes deleted the feature/dashboard-mutations branch January 10, 2025 03:48
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.

3 participants