-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from RBND-studio/dev
Merge dev
- Loading branch information
Showing
113 changed files
with
1,618 additions
and
804 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Code Checks | ||
|
||
on: | ||
pull_request: | ||
branches: [dev] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- run: pnpm install | ||
- run: pnpm web build | ||
- run: pnpm lint | ||
tsc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- run: pnpm install | ||
- run: pnpm web build | ||
- run: pnpm tsc | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- run: pnpm install | ||
- run: pnpm test | ||
- run: pnpm be test:e2e | ||
spellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- run: pnpm install | ||
- run: pnpm spellcheck |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
module.exports = { | ||
extends: ["custom/next"], | ||
rules: { | ||
camelcase: "off", | ||
}, | ||
}; |
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
31 changes: 31 additions & 0 deletions
31
apps/app/src/app/(dashboard)/org/[organizationId]/(detail)/settings/invite-delete.tsx
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,31 @@ | ||
"use client"; | ||
|
||
import { useSend } from "hooks/use-send"; | ||
import { api } from "lib/api"; | ||
import { useRouter } from "next/navigation"; | ||
import type { FC } from "react"; | ||
import { t } from "translations"; | ||
import { Button, toast } from "ui"; | ||
|
||
type Props = { | ||
inviteId: string; | ||
}; | ||
|
||
export const InviteDelete: FC<Props> = ({ inviteId }) => { | ||
const { send, loading } = useSend(); | ||
const router = useRouter(); | ||
const handleDelete = async (): Promise<void> => { | ||
const res = await send(api["DELETE /invites/:inviteId"](inviteId), { | ||
errorMessage: t.toasts.deleteInviteFailed, | ||
}); | ||
if (res.error) return; | ||
router.refresh(); | ||
toast.success(t.toasts.deleteInviteSuccess); | ||
}; | ||
|
||
return ( | ||
<Button loading={loading} onClick={handleDelete} size="small" variant="secondary"> | ||
Remove | ||
</Button> | ||
); | ||
}; |
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
41 changes: 41 additions & 0 deletions
41
...hboard)/org/[organizationId]/project/[projectId]/(detail)/getting-started/create-flow.tsx
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,41 @@ | ||
import { Flex } from "@flows/styled-system/jsx"; | ||
import { Plus16 } from "icons"; | ||
import type { FC } from "react"; | ||
import { Button, Text } from "ui"; | ||
|
||
import { CreateFlowDialog } from "../create-flow-dialog"; | ||
import { NumberCircle } from "./number-circle"; | ||
|
||
type Props = { | ||
organizationId: string; | ||
projectId: string; | ||
}; | ||
|
||
export const CreateFlow: FC<Props> = ({ projectId, organizationId }) => { | ||
return ( | ||
<Flex gap="space12"> | ||
<NumberCircle>2</NumberCircle> | ||
<Flex | ||
alignItems="center" | ||
flex="1" | ||
gap="space16" | ||
justifyContent="space-between" | ||
mdDown={{ flexDirection: "column", justifyContent: "unset", alignItems: "flex-start" }} | ||
> | ||
<Flex flexDirection="column" gap="space4"> | ||
<Text variant="titleL">Create your first flow</Text> | ||
<Text color="muted">Start onboarding your users by creating your first flow.</Text> | ||
</Flex> | ||
<CreateFlowDialog | ||
organizationId={organizationId} | ||
projectId={projectId} | ||
trigger={ | ||
<Button size="medium" startIcon={<Plus16 />} variant="primary"> | ||
Create flow | ||
</Button> | ||
} | ||
/> | ||
</Flex> | ||
</Flex> | ||
); | ||
}; |
Oops, something went wrong.