Skip to content

Commit

Permalink
fix(app): update button styling in publish modal and fix cors issue f…
Browse files Browse the repository at this point in the history
…or the git-auth functionality
  • Loading branch information
cmgriffing committed May 5, 2024
1 parent 38a9b41 commit 893d4b4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
8 changes: 4 additions & 4 deletions apps/app/src/components/Status.tsx
Expand Up @@ -478,7 +478,7 @@ function DiffModal({
</Button>
<Button
variant="filled"
c="red"
color="red"
onClick={rejectAll}
disabled={approvalCount === changes.length}
>
Expand Down Expand Up @@ -513,7 +513,7 @@ function DiffModal({
>
<ActionIcon
variant="subtle"
c="gray"
color="gray"
title={
collapsedDiffs[changePath] ? "Expand" : "Collapse"
}
Expand Down Expand Up @@ -547,7 +547,7 @@ function DiffModal({
<ActionIcon
size={"sm"}
variant="filled"
c="blue"
color="blue"
title="Accept Change"
onClick={() => {
acceptOne(change);
Expand All @@ -558,7 +558,7 @@ function DiffModal({
<ActionIcon
size={"sm"}
variant="filled"
c="red"
color="red"
title="Reject Change"
onClick={() => {
rejectOne(change);
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/components/TimelineItemTitle.tsx
Expand Up @@ -11,7 +11,7 @@ export function TimelineItemTitle({
tooltipText?: string;
}) {
return (
<Flex direction="row" gap="0.25rem" className="mb-2">
<Flex direction="row" gap="0.25rem" align={"flex-start"} className="mb-2">
<h4 className="m-0 p-0">{title}</h4>
{!!tooltipText && <CustomTooltip tooltipText={tooltipText} />}
</Flex>
Expand Down
2 changes: 2 additions & 0 deletions apps/app/src/components/app/forms/GithubForm.tsx
Expand Up @@ -250,6 +250,7 @@ export function GithubForm({ config }: GithubFormProps) {
</Button>

<ActionIcon
variant="subtle"
onClick={() => {
clearHosting();
}}
Expand Down Expand Up @@ -303,6 +304,7 @@ export function GithubForm({ config }: GithubFormProps) {
)}

<ActionIcon
variant="subtle"
onClick={() => {
refresh();
}}
Expand Down
2 changes: 2 additions & 0 deletions apps/app/src/components/app/forms/_GitForm.tsx
Expand Up @@ -99,6 +99,7 @@ export function GitForm({
/>

<ActionIcon
variant="subtle"
title="Edit your installation's repository access"
onClick={() => {
window
Expand Down Expand Up @@ -144,6 +145,7 @@ export function GitForm({
/>

<ActionIcon
variant="subtle"
onClick={() => {
refresh();
}}
Expand Down
7 changes: 6 additions & 1 deletion apps/git-auth/src/routes/oauth/github/+server.ts
Expand Up @@ -58,4 +58,9 @@ export async function POST({ request }: { request: Request }) {

// If `OPTIONS` is not defined, Next.js will automatically implement `OPTIONS` and set the appropriate Response `Allow` header depending on the other methods defined in the route handler.
// What about Sveltekit?
// export async function OPTIONS(request: Request) {}
export async function OPTIONS(request: Request) {
return new Response(JSON.stringify({}), {
status: 200,
headers: commonHeaders
});
}

0 comments on commit 893d4b4

Please sign in to comment.