-
Notifications
You must be signed in to change notification settings - Fork 613
feat(deployment beta): projects UI for Unkey Deploy #3662
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2343aa8
projects and branches
mcstepp c3a2527
wip
mcstepp 21c47c5
wip
mcstepp 766aa8f
spec differ wip
mcstepp 3410c62
fix some docker, add some trpc, integrate diff viewer
mcstepp 330d7d9
change version to deployments, add feature flag, update go schema
mcstepp 4901146
update versions page
mcstepp e8d4ccf
fix null condition
mcstepp 6d8b2fa
delete old router, fix null assertion
mcstepp ca1ebd7
fmt
mcstepp d739243
fmt
mcstepp c6eca4e
fmt again
mcstepp 2e0345d
apply auth and feature flagging access to projects, remove versions
mcstepp 986dcb9
yolo
mcstepp 747b58c
stable yolo
mcstepp ed57a3f
stable yolo
mcstepp e11e763
Merge branch 'main' of https://github.com/unkeyed/unkey into ENG-1902…
chronark 1cf38ec
style: fmt
chronark 50bd02a
fix: hardcode time, so it doesn't fail on the first of a month
chronark 0412787
[autofix.ci] apply automated fixes
autofix-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 0 additions & 59 deletions
59
apps/dashboard/app/(app)/projects/[projectId]/branches/page.tsx
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
apps/dashboard/app/(app)/projects/[projectId]/deployments/[deploymentId]/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import { OptIn } from "@/components/opt-in"; | ||
| import { getAuth } from "@/lib/auth"; | ||
| import { db } from "@/lib/db"; | ||
| import { redirect } from "next/navigation"; | ||
| import { Suspense } from "react"; | ||
|
|
||
| export default async function DeploymentsPage(): Promise<JSX.Element> { | ||
| const { orgId } = await getAuth(); | ||
| const workspace = await db.query.workspaces.findFirst({ | ||
| where: (table, { and, eq, isNull }) => and(eq(table.orgId, orgId), isNull(table.deletedAtM)), | ||
| }); | ||
|
|
||
| if (!workspace) { | ||
| return redirect("/new"); | ||
| } | ||
|
|
||
| if (!workspace.betaFeatures.deployments) { | ||
| // right now, we want to block all external access to deploy | ||
| // to make it easier to opt-in for local development, comment out the redirect | ||
| // and uncomment the <OptIn> component | ||
| //return redirect("/apis"); | ||
| return <OptIn title="Projects" description="Projects are in beta" feature="deployments" />; | ||
| } | ||
|
|
||
| return ( | ||
| <Suspense fallback={<div>Loading...</div>}> | ||
| <div>Deployment Details coming soon</div> | ||
| </Suspense> | ||
| ); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
Remove console.log before merging.
Debug logging should not be committed to the main branch.
- console.log(res);📝 Committable suggestion
🤖 Prompt for AI Agents