-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI Feat: Show OAuth Providers in tile view (#291)
* chore: move oauth apps to primary sidebar list - removes the need for a footer Signed-off-by: Ryan Hopper-Lowe <[email protected]> * chore: update Oauth apps header to match other page headers Signed-off-by: Ryan Hopper-Lowe <[email protected]> * feat: add google oauth card - rearrange oauth app display - add google logo Signed-off-by: Ryan Hopper-Lowe <[email protected]> * feat: add microsoft 365 oauth card Signed-off-by: Ryan Hopper-Lowe <[email protected]> * UI feat: add slack oauth card Signed-off-by: Ryan Hopper-Lowe <[email protected]> * UI feat: add notion oauth app Signed-off-by: Ryan Hopper-Lowe <[email protected]> * feat: increase bg lightness in dialogs in dark mode * fix: add OAuth provider icons --------- Signed-off-by: Ryan Hopper-Lowe <[email protected]>
- Loading branch information
1 parent
ed9b8ff
commit dd346d4
Showing
19 changed files
with
199 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,20 @@ | ||
import { z } from "zod"; | ||
|
||
import { assetUrl } from "~/lib/utils"; | ||
|
||
import { OAuthAppSpec } from "../oauth-helpers"; | ||
|
||
const schema = z.object({ | ||
clientID: z.string().min(1, "Client ID is required"), | ||
clientSecret: z.string().min(1, "Client Secret is required"), | ||
}); | ||
|
||
export const GoogleOAuthApp = { | ||
schema, | ||
refName: "google", | ||
type: "google", | ||
displayName: "Google", | ||
logo: assetUrl("/assets/google_logo.png"), | ||
steps: [], | ||
disableConfiguration: true, | ||
} satisfies OAuthAppSpec; |
20 changes: 20 additions & 0 deletions
20
ui/admin/app/lib/model/oauthApps/providers/microsoft365.ts
This file contains 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,20 @@ | ||
import { z } from "zod"; | ||
|
||
import { assetUrl } from "~/lib/utils"; | ||
|
||
import { OAuthAppSpec } from "../oauth-helpers"; | ||
|
||
const schema = z.object({ | ||
clientID: z.string().min(1, "Client ID is required"), | ||
clientSecret: z.string().min(1, "Client Secret is required"), | ||
}); | ||
|
||
export const Microsoft365OAuthApp = { | ||
schema, | ||
refName: "microsoft365", | ||
type: "microsoft365", | ||
displayName: "Microsoft 365", | ||
logo: assetUrl("/assets/office365_logo.svg"), | ||
steps: [], | ||
disableConfiguration: true, | ||
} satisfies OAuthAppSpec; |
This file contains 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,21 @@ | ||
import { z } from "zod"; | ||
|
||
import { assetUrl } from "~/lib/utils"; | ||
|
||
import { OAuthAppSpec } from "../oauth-helpers"; | ||
|
||
const schema = z.object({ | ||
clientID: z.string().min(1, "Client ID is required"), | ||
clientSecret: z.string().min(1, "Client Secret is required"), | ||
}); | ||
|
||
export const NotionOAuthApp = { | ||
schema, | ||
refName: "notion", | ||
type: "notion", | ||
displayName: "Notion", | ||
logo: assetUrl("/assets/notion_logo.png"), | ||
invertDark: true, | ||
steps: [], | ||
disableConfiguration: true, | ||
} satisfies OAuthAppSpec; |
This file contains 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,21 @@ | ||
import { z } from "zod"; | ||
|
||
import { assetUrl } from "~/lib/utils"; | ||
|
||
import { OAuthAppSpec } from "../oauth-helpers"; | ||
|
||
const schema = z.object({ | ||
clientID: z.string().min(1, "Client ID is required"), | ||
clientSecret: z.string().min(1, "Client Secret is required"), | ||
}); | ||
|
||
export const SlackOAuthApp = { | ||
schema, | ||
refName: "slack", | ||
type: "slack", | ||
displayName: "Slack", | ||
logo: assetUrl("/assets/slack_logo_light.png"), | ||
darkLogo: assetUrl("/assets/slack_logo_dark.png"), | ||
steps: [], | ||
disableConfiguration: true, | ||
} satisfies OAuthAppSpec; |
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.