-
- Sign in to Snowball
+
+ Sign in to Laconic
diff --git a/packages/frontend/src/pages/index.tsx b/packages/frontend/src/pages/index.tsx
index a300e873..17db31b3 100644
--- a/packages/frontend/src/pages/index.tsx
+++ b/packages/frontend/src/pages/index.tsx
@@ -3,28 +3,105 @@ import { Navigate } from 'react-router-dom';
import { useGQLClient } from '../context/GQLClientContext';
import { Organization } from 'gql-client';
+const owner = {
+ id: 'user',
+ name: 'Cody',
+ email: 'cody@cfb.dev',
+ isVerified: true,
+ createdAt: '2024-10-22-12:00:00Z',
+ updatedAt: '2024-10-22-12:00:00Z',
+ gitHubToken: 'token',
+};
+
+const domain = {
+ id: 'domain',
+ branch: 'idk',
+ name: 'Domain',
+ status: 'Live',
+ redirectTo: null,
+ createdAt: '2024-10-22-12:00:00Z',
+ updatedAt: '2024-10-22-12:00:00Z',
+};
+const deployment = {
+ id: 'deployment',
+ domain,
+ branch: 'branch',
+ commitHash: 'beefb0d',
+ commitMessage: 'beef',
+ deployerLrn: 'deployer',
+ environment: 'Development',
+ isCurrent: true,
+ status: 'Ready',
+ createdBy: owner,
+ createdAt: '2024-10-22-12:00:00Z',
+ updatedAt: '2024-10-22-12:00:00Z',
+};
+const member = {
+ id: 'member_id',
+ member: owner,
+ permissions: ['Edit'],
+ isPending: false,
+ createdAt: '2024-10-22-12:00:00Z',
+ updatedAt: '2024-10-22-12:00:00Z',
+};
+
+const environmentVariable = {
+ id: 'env_var_id',
+ environment: 'Development',
+ key: 'key',
+ value: 'value',
+ createdAt: '2024-10-22-12:00:00Z',
+ updatedAt: '2024-10-22-12:00:00Z',
+};
+const project = {
+ id: 'project',
+ owner,
+ deployments: [deployment],
+ name: 'Project',
+ repository: 'snowball',
+ prodBranch: 'main',
+ description: 'description',
+ template: 'template',
+ framework: 'framework',
+ webhooks: ['webhook'],
+ members: [member],
+ environmentVariables: [environmentVariable],
+ createdAt: '2024-10-22-12:00:00Z',
+ updatedAt: '2024-10-22-12:00:00Z',
+};
+
+const organizationMember = {
+ id: 'member_id',
+ member: owner,
+ role: 'Owner',
+ createdAt: '2024-10-22-12:00:00Z',
+ updatedAt: '2024-10-22-12:00:00Z',
+};
+const testOrg = {
+ id: 'org_id',
+ name: 'Test Org',
+ slug: 'test',
+ projects: [project],
+ createdAt: '2024-10-22-12:00:00Z',
+ updatedAt: '2024-10-22-12:00:00Z',
+ members: [organizationMember],
+};
const Index = () => {
const client = useGQLClient();
- const [organization, setOrganization] = useState
();
+ // const [organization, setOrganization] = useState(testOrg);
- const fetchUserOrganizations = useCallback(async () => {
- const { organizations } = await client.getOrganizations();
- // By default information of first organization displayed
- setOrganization(organizations[0]);
- }, []);
-
- useEffect(() => {
- fetchUserOrganizations();
- }, []);
+ // const fetchUserOrganizations = useCallback(async () => {
+ // const { organizations } = await client.getOrganizations();
+ // // By default information of first organization displayed
+ // setOrganization(organizations[0]);
+ // }, []);
+ //
+ // useEffect(() => {
+ // fetchUserOrganizations();
+ // }, []);
return (
- <>
- {Boolean(organization) ? (
-
- ) : (
- <>Loading>
- )}
- >
+ <>{Boolean(testOrg) ? : <>Loading>}>
);
};
diff --git a/packages/frontend/src/pages/org-slug/index.tsx b/packages/frontend/src/pages/org-slug/index.tsx
index e12cbd27..cc5c6084 100644
--- a/packages/frontend/src/pages/org-slug/index.tsx
+++ b/packages/frontend/src/pages/org-slug/index.tsx
@@ -30,7 +30,7 @@ const Projects = () => {
-
+
Projects
diff --git a/packages/frontend/src/pages/org-slug/layout.tsx b/packages/frontend/src/pages/org-slug/layout.tsx
index b1bf2226..fce893c6 100644
--- a/packages/frontend/src/pages/org-slug/layout.tsx
+++ b/packages/frontend/src/pages/org-slug/layout.tsx
@@ -39,7 +39,7 @@ export const DashboardLayout = ({
@@ -112,7 +112,7 @@ export const DashboardLayout = ({
}}
transition={{ ease: 'easeInOut', duration: 0.3 }}
>
-
+
diff --git a/packages/frontend/src/pages/org-slug/projects/create/layout.tsx b/packages/frontend/src/pages/org-slug/projects/create/layout.tsx
index abdfa8c5..32c13b78 100644
--- a/packages/frontend/src/pages/org-slug/projects/create/layout.tsx
+++ b/packages/frontend/src/pages/org-slug/projects/create/layout.tsx
@@ -20,7 +20,10 @@ export const CreateProjectLayout = ({
const closeBtnLink = `/${orgSlug}`;
const heading = (
-
+
Create new project
);
@@ -30,17 +33,20 @@ export const CreateProjectLayout = ({
{/* Desktop */}
-
+
{heading}
{/* Cannot save btn as variable since responsive variant don't work with compoundVariant */}
}
aria-label="close"
/>
diff --git a/packages/frontend/tailwind.config.js b/packages/frontend/tailwind.config.js
index f561b2c6..9a2eeea6 100644
--- a/packages/frontend/tailwind.config.js
+++ b/packages/frontend/tailwind.config.js
@@ -9,6 +9,15 @@ export default withMT({
'../../node_modules/@snowballtools/material-tailwind-react-fork/theme/components/**/*.{js,ts,jsx,tsx}',
],
theme: {
+ colors: {
+ background: '#0F0F0F',
+ overlay: '#18181A',
+ overlay2: '#29292E',
+ primary: '#0000F4',
+ 'primary-hovered': '#0000F4AA',
+ foreground: '#FBFBFB',
+ 'foreground-secondary': '#8E8E8E',
+ },
extend: {
screens: {
xxs: '400px',