Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,23 @@ To generate `AUTH_GOOGLE_ID` and `AUTH_GOOGLE_SECRET`, see [Setting up OAuth 2.0
openssl rand -base64 32
```

Authorized redirect URIs:
http://localhost:3000/api/auth/callback/google
http://localhost:3000/api/auth/callback/google-admin
http://localhost:3000/api/auth/oauth2/callback/google
http://localhost:3000/api/auth/oauth2/callback/google-admin
http://localhost:3000/api/auth/oauth2/callback/googleAdmin

**Note** ask for `AUTH_GOOGLE_ADMIN_ID` and `AUTH_GOOGLE_ADMIN_SECRET`

### Location

To fill the location info within Neon, follow the steps on [this page](https://neon.com/docs/import/import-from-csv). Skip steps 2 and 3, as the locations.csv
file already exists in the repo, and then for step 4, replace 'customer' with 'location' and replace the path with the path to the location.csv file.

### Company

To fill the company info within Neon, follow the steps on [this page](https://neon.com/docs/import/import-from-csv). Skip steps 2 and 3, as the companies.csv
file already exists in the repo, and then for step 4, replace 'customer' with 'company' and replace the path with the path to the companies.csv file.


15 changes: 15 additions & 0 deletions apps/docs/docs/01-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,22 @@ To generate `AUTH_GOOGLE_ID` and `AUTH_GOOGLE_SECRET`, see [Setting up OAuth 2.0
openssl rand -base64 32
```

Authorized redirect URIs:

- http://localhost:3000/api/auth/callback/google
- http://localhost:3000/api/auth/callback/google-admin
- http://localhost:3000/api/auth/oauth2/callback/google
- http://localhost:3000/api/auth/oauth2/callback/google-admin
- http://localhost:3000/api/auth/oauth2/callback/googleAdmin

**Note**: ask an admin for `AUTH_GOOGLE_ADMIN_ID` and `AUTH_GOOGLE_ADMIN_SECRET`.

### Location

To fill the location info within Neon, follow the steps on [this page](https://neon.com/docs/import/import-from-csv). Skip steps 2 and 3, as the locations.csv
file already exists in the repo, and then for step 4, replace 'customer' with 'location' and replace the path with the path to the location.csv file.

### Company

To fill the company info within Neon, follow the steps on [this page](https://neon.com/docs/import/import-from-csv). Skip steps 2 and 3, as the companies.csv
file already exists in the repo, and then for step 4, run this command: `\copy company (id, name, slug, description, industry, website, "createdAt", "updatedAt") FROM 'path/to/companies.csv' DELIMITER ',' CSV HEADER`
14 changes: 11 additions & 3 deletions apps/web/src/app/_components/combo-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,25 @@ export default function ComboBox({
</span>
<div className="flex items-center gap-1.5">
{onClear && (
<button
type="button"
<span
role="button"
tabIndex={0}
onClick={(e) => {
e.stopPropagation();
onClear();
}}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
e.stopPropagation();
onClear();
}
}}
Comment thread
songmichael11 marked this conversation as resolved.
className="pointer-events-auto flex items-center justify-center rounded-sm opacity-60 ring-offset-background transition-opacity hover:opacity-80 focus:outline-none"
aria-label="Clear selection"
>
<X className="h-4 w-4" />
</button>
</span>
)}
<ChevronDown className="h-6 w-6 shrink-0 opacity-50" />
</div>
Expand Down
Loading
Loading