diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dd84ea78..9b77ea71 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,10 +1,9 @@ --- name: Bug report about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - +title: "" +labels: "" +assignees: "" --- **Describe the bug** @@ -12,6 +11,7 @@ A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] +- Version [e.g. 22] **Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] **Additional context** Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index bbcbbe7d..2bc5d5f7 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,10 +1,9 @@ --- name: Feature request about: Suggest an idea for this project -title: '' -labels: '' -assignees: '' - +title: "" +labels: "" +assignees: "" --- **Is your feature request related to a problem? Please describe.** diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b8638fb3..4ee8bf49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,6 +39,9 @@ jobs: #- name: Linting # run: yarn lint + # - name: Codegen + # run: yarn codegen + - name: Build run: yarn build --filter=website diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 00000000..2f53ba1b --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +yarn format diff --git a/README.md b/README.md index 2f442800..6381531b 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,6 @@ Design an algorithm that matches businesses with suitable suppliers based on the ### Delivery Process - ## DevOps ### Run the apps locally with Docker @@ -29,4 +28,4 @@ docker compose build [SERVICE] eg. sahilwebsite ``` docker compose up -d sahilwebsite -``` \ No newline at end of file +``` diff --git a/apps/admin/postcss.config.ts b/apps/admin/postcss.config.ts index c9a1c620..b09767fe 100644 --- a/apps/admin/postcss.config.ts +++ b/apps/admin/postcss.config.ts @@ -1,4 +1,4 @@ -const baseConfig = require('@sahil/configs/tailwind/postcss.config.js'); +const baseConfig = require("@sahil/configs/tailwind/postcss.config.js"); module.exports = { ...baseConfig, diff --git a/apps/admin/src/app/layout.tsx b/apps/admin/src/app/layout.tsx index e3696182..aba8a007 100644 --- a/apps/admin/src/app/layout.tsx +++ b/apps/admin/src/app/layout.tsx @@ -7,7 +7,7 @@ export default function RootLayout({ return (
-{formatDateTime(order?.created_at)}
{order.origin}
{order.destination}
diff --git a/apps/agent/src/Businesses/BusinessOverviewCard.tsx b/apps/agent/src/Businesses/BusinessOverviewCard.tsx index 6f2636d5..2fa5d516 100644 --- a/apps/agent/src/Businesses/BusinessOverviewCard.tsx +++ b/apps/agent/src/Businesses/BusinessOverviewCard.tsx @@ -3,7 +3,11 @@ import { formatDateTime } from "@sahil/lib/dates"; import { generateInitials } from "@sahil/lib/strings"; import Link from "next/link"; import { Card } from "ui"; -import { HiOutlineEllipsisHorizontal, HiOutlinePhone, HiOutlineMapPin } from "react-icons/hi2"; +import { + HiOutlineEllipsisHorizontal, + HiOutlinePhone, + HiOutlineMapPin, +} from "react-icons/hi2"; export type SahilBusiness = { name: string; @@ -12,7 +16,7 @@ export type SahilBusiness = { type: string; phoneNumber: string; addresses: Array<{ - street_address: string, + street_address: string; }>; }; @@ -53,24 +57,21 @@ export const BusinessOverviewCard: FC{business.type}
{business.contactName}
- {address.street_address} -
-{address.street_address}
+{business?.description}
-{business?.contactName}
{business?.contactEmail}
{business?.phoneNumber}
@@ -69,8 +67,8 @@ export const BusinessProfileOverview = ({ const generateInitials = (name: string) => { return name - ?.split(' ') + ?.split(" ") .slice(0, 3) .map((word) => word.charAt(0).toUpperCase()) - .join(''); + .join(""); }; diff --git a/apps/agent/src/Businesses/BusinessRegistrationForm/AddressInfo.tsx b/apps/agent/src/Businesses/BusinessRegistrationForm/AddressInfo.tsx index c63647f8..4505d521 100644 --- a/apps/agent/src/Businesses/BusinessRegistrationForm/AddressInfo.tsx +++ b/apps/agent/src/Businesses/BusinessRegistrationForm/AddressInfo.tsx @@ -1,7 +1,9 @@ +import { Business } from "@sahil/lib/graphql/generated/graphql"; + export const AddressInfo = () => { - return ( -