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

fix: Redirect to workspaces page after creation #309

Merged
merged 3 commits into from
Feb 17, 2022

Conversation

bryphe-coder
Copy link
Contributor

This is just a quick fix so that the redirection is correct after creating a workspace - so that we make it to our minimal 'workspaces' page. Mainly so we have a path for testing / onboarding more people.

Unfortunately the NextJS pages are a bit tricky to test - we don't have infra for it because of the special pathing requirements - we can potentially bring in a library like next-page-tester and create a separate test directory like pages_test - but since we may pick up the RFC to move away from Next, it doesn't seem like a useful effort.

With this, creating a project lands on our minimal workspaces page, and the links on the Projects page correctly navigate to the minimal workspaces page.

@bryphe-coder bryphe-coder self-assigned this Feb 17, 2022
@codecov
Copy link

codecov bot commented Feb 17, 2022

Codecov Report

Merging #309 (fc361d3) into main (deb7170) will increase coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #309      +/-   ##
==========================================
+ Coverage   67.85%   67.88%   +0.02%     
==========================================
  Files         135      135              
  Lines        7149     7149              
  Branches       73       73              
==========================================
+ Hits         4851     4853       +2     
+ Misses       1809     1808       -1     
+ Partials      489      488       -1     
Flag Coverage Δ
unittest-go-macos-latest 66.09% <ø> (-0.09%) ⬇️
unittest-go-ubuntu-latest 67.39% <ø> (+0.32%) ⬆️
unittest-go-windows-latest 65.86% <ø> (-0.06%) ⬇️
unittest-js 64.61% <0.00%> (ø)
Impacted Files Coverage Δ
...pages/projects/[organization]/[project]/create.tsx 0.00% <0.00%> (ø)
.../pages/projects/[organization]/[project]/index.tsx 0.00% <0.00%> (ø)
peerbroker/dial.go 76.19% <0.00%> (-4.77%) ⬇️
peer/conn.go 79.74% <0.00%> (+0.25%) ⬆️
provisionerd/provisionerd.go 69.74% <0.00%> (+0.39%) ⬆️
coderd/provisionerdaemons.go 57.84% <0.00%> (+0.61%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update deb7170...fc361d3. Read the comment docs.

@bryphe-coder bryphe-coder merged commit 9431c45 into main Feb 17, 2022
@bryphe-coder bryphe-coder deleted the bryphe/fix/redirect-to-workspace branch February 17, 2022 17:44
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.

None yet

2 participants