Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
ba8bca2
tasks
Marfuen Apr 16, 2025
812720e
Merge branch 'main' of github.com:trycompai/comp into mariano/comp-99…
Marfuen Apr 16, 2025
d1f6d08
attachments and comments working
Marfuen Apr 16, 2025
61643a6
attachments in comments working
Marfuen Apr 18, 2025
f7c6a9e
render attachments nicely
Marfuen Apr 18, 2025
ff74407
working
Marfuen Apr 18, 2025
442b41c
refactor: centralize S3 client configuration and improve upload logic
Marfuen Apr 21, 2025
f24626f
Add admin dashboard with organization management and member controls
claudfuen Apr 21, 2025
53b062c
Merge pull request #434 from trycompai/claudio/comp-71-add-enum-suppo…
claudfuen Apr 21, 2025
b998bcb
Change role type from enum to string for Member and Invitation models
claudfuen Apr 23, 2025
b748d04
Update role permissions and UI border radius from rounded-none to rou…
claudfuen Apr 23, 2025
da33a03
Refactor team members UI and add background soft color variant
claudfuen Apr 23, 2025
22e3e57
feat: integrate Google Tag Manager for enhanced tracking
carhartlewis Apr 23, 2025
486448c
Merge pull request #437 from trycompai/lewis/ad-conversions
carhartlewis Apr 23, 2025
c213596
refactor: update UI components with consistent border radius and styl…
claudfuen Apr 23, 2025
527f700
refactor: standardize border radius to rounded-sm across UI components
claudfuen Apr 23, 2025
db86ee0
Migrate task actions to server actions and remove safe-action library…
Marfuen Apr 23, 2025
35a451b
Merge branch 'main' of github.com:trycompai/comp into mariano/comp-99…
Marfuen Apr 23, 2025
9bce844
feat: add loading components for various dashboard sections
carhartlewis Apr 24, 2025
a07f8b4
Merge pull request #439 from trycompai/lewis/loading-on-implementation
carhartlewis Apr 24, 2025
669ceab
chore: update build script to use turbopack for improved performance
carhartlewis Apr 24, 2025
b0d04e0
chore: remove unused Liveblocks configuration and update Next.js conf…
carhartlewis Apr 24, 2025
b1d98d3
chore: remove Sentry integration and related configurations from the …
carhartlewis Apr 24, 2025
b190faa
Merge branch 'main' into lewis/loading-on-implementation
carhartlewis Apr 24, 2025
04ea810
Merge pull request #440 from trycompai/lewis/loading-on-implementation
carhartlewis Apr 24, 2025
cd43353
docs: update README to include recognition section with Product Hunt …
carhartlewis Apr 24, 2025
432129f
Merge branch 'main' into lewis/readme-updates
carhartlewis Apr 24, 2025
34ce6a0
Merge pull request #441 from trycompai/lewis/readme-updates
carhartlewis Apr 24, 2025
aad582b
Merge pull request #442 from trycompai/main
Marfuen Apr 24, 2025
f79f773
fix migrations
Marfuen Apr 24, 2025
b78bab0
Add GitHub workflow to run database migrations on dev branch
Marfuen Apr 24, 2025
e5733d1
Merge pull request #443 from trycompai/mariano/fix-migrations-dev-2
Marfuen Apr 24, 2025
47b3446
update name of yaml
Marfuen Apr 24, 2025
b409da2
Merge pull request #444 from trycompai/mariano/fix-migrations-dev-2
Marfuen Apr 24, 2025
8c528de
Merge branch 'main' into dev
Marfuen Apr 24, 2025
6bb2db5
Merge branch 'main' of https://github.com/trycompai/comp into claudio…
claudfuen Apr 24, 2025
c50647b
feat: add better-auth rules and update member management components
claudfuen Apr 24, 2025
ff1d2b4
style: update layout and header components for improved styling and r…
claudfuen Apr 24, 2025
124db34
style: enhance Tabs component styling for improved UI consistency
claudfuen Apr 24, 2025
e5c51f8
refactor: update MemberRow component to conditionally render dropdown…
claudfuen Apr 24, 2025
a0a9a6e
style: enhance layout and component styling for improved user experience
claudfuen Apr 24, 2025
db057c2
Add custom Prisma extension for schema folder support and typed SQL
Marfuen Apr 24, 2025
82673c5
Add GitHub workflow to deploy Trigger.dev tasks to staging environment
Marfuen Apr 24, 2025
d040d69
Merge pull request #447 from trycompai/mariano/fix-trigger
Marfuen Apr 24, 2025
800090a
Merge branch 'dev' of github.com:trycompai/comp into mariano/comp-99-…
Marfuen Apr 24, 2025
c9054b3
deps
Marfuen Apr 24, 2025
0808bf6
support comments for vendors and risks
Marfuen Apr 24, 2025
8d3cc0f
add policy as comment type
Marfuen Apr 24, 2025
ff2a3bd
feat: implement bulk invite and member management features
claudfuen Apr 24, 2025
e284cd5
refactor: update bulk invite functionality and UI components
claudfuen Apr 24, 2025
879505b
refactor: standardize user management paths and enhance invitation ac…
claudfuen Apr 24, 2025
d69b27b
feat: enhance localization and accessibility for user management
claudfuen Apr 24, 2025
0c2c7b9
feat: enhance member role update functionality with improved validati…
claudfuen Apr 24, 2025
8fa74d3
refactor: enhance user management components with role selection impr…
claudfuen Apr 24, 2025
6d9aeb7
refactor: improve role handling in user management components
claudfuen Apr 24, 2025
fef8147
refactor: enhance InviteMembersModal and TeamMembersClient for improv…
claudfuen Apr 24, 2025
9690520
feat: implement CSV file upload handling in InviteMembersModal
claudfuen Apr 24, 2025
c03bfa1
refactor: improve role management in MemberRow and MultiRoleCombobox …
claudfuen Apr 24, 2025
531dc54
refactor: enhance PendingInvitationRow and TeamMembersClient for impr…
claudfuen Apr 24, 2025
90be035
refactor: remove unused revokeInvitation and updateMemberRole actions
claudfuen Apr 24, 2025
2a9da90
holy mother of refactors
Marfuen Apr 24, 2025
da01076
refactor: streamline TeamMembers and TeamMembersClient components for…
claudfuen Apr 24, 2025
efbbcc1
fix build errors
Marfuen Apr 24, 2025
c6a2b1e
refactor: enhance UI components for improved styling and responsiveness
claudfuen Apr 24, 2025
08b4dec
refactor: update TeamMembers and localization for improved user exper…
claudfuen Apr 24, 2025
0c37ffe
Merge pull request #438 from trycompai/mariano/comp-99-create-tasks-t…
Marfuen Apr 24, 2025
bb77448
refactor: update employee management components for improved function…
claudfuen Apr 24, 2025
b49453a
Merge branch 'dev' of https://github.com/trycompai/comp into claudio/…
claudfuen Apr 24, 2025
45f0563
refactor: remove MemberActions component to streamline user management
claudfuen Apr 24, 2025
ecabf50
refactor: remove PendingInvitationItem component to streamline user m…
claudfuen Apr 24, 2025
cb25941
refactor: remove EmployeesListClient component to streamline employee…
claudfuen Apr 24, 2025
14afa8f
refactor: simplify CreateOrgModal by removing unused imports
claudfuen Apr 24, 2025
b621fd0
Merge pull request #448 from trycompai/claudio/comp-82-fix-permission…
claudfuen Apr 24, 2025
fd0c896
feat: implement search functionality for global vendors
carhartlewis Apr 25, 2025
a6691f1
chore: update AWS SDK dependencies and package versions
carhartlewis Apr 25, 2025
7077887
chore: update package dependencies for improved performance and security
carhartlewis Apr 25, 2025
adcb8c8
refactor: enhance UI components with consistent styling
claudfuen Apr 25, 2025
3533799
refactor: improve EmployeeDetails component UI responsiveness
claudfuen Apr 25, 2025
4f5c020
redirect on org creation
Marfuen Apr 25, 2025
01668ba
Remove unused organization variable in create org modal submit handler
Marfuen Apr 25, 2025
81738de
Remove await from createOrganization.execute call in create-org-modal
Marfuen Apr 25, 2025
2dc2ff1
feat: implement employee management layout and overview components
claudfuen Apr 25, 2025
f00a07f
Merge pull request #450 from trycompai/mariano/bugs-042525
Marfuen Apr 25, 2025
7bf4fc3
feat: enhance MultiRoleCombobox with role descriptions
claudfuen Apr 25, 2025
8390df4
fix: update fetchAdminUsers to include additional email domain
claudfuen Apr 25, 2025
23bdf96
refactor: enhance vendor research functionality and middleware config…
carhartlewis Apr 25, 2025
9738007
Merge branch 'dev' into lewis/misc-fixes
carhartlewis Apr 25, 2025
0465ce1
feat: add admin menu item for specific email domain
claudfuen Apr 25, 2025
2c9a31e
Merge branch 'dev' of https://github.com/trycompai/comp into claudio/…
claudfuen Apr 25, 2025
e97ba49
Merge pull request #449 from trycompai/lewis/misc-fixes
carhartlewis Apr 25, 2025
8cba2d2
Merge branch 'dev' of https://github.com/trycompai/comp into claudio/…
claudfuen Apr 25, 2025
a46043c
fix: update button component styles for improved accessibility and la…
claudfuen Apr 25, 2025
5a49252
Merge pull request #451 from trycompai/claudio/comp-82-fix-permission…
claudfuen Apr 25, 2025
4f8bb91
fix: refine button component styles for improved layout
carhartlewis Apr 25, 2025
2c89b92
feat: update MultiRoleCombobox to display dynamic role descriptions
claudfuen Apr 25, 2025
cae0a5c
Merge branch 'dev' into lewis/misc
carhartlewis Apr 25, 2025
545813e
Merge pull request #452 from trycompai/lewis/misc
carhartlewis Apr 25, 2025
cd2fe6d
Merge pull request #446 from trycompai/dev
claudfuen Apr 25, 2025
e510a7f
chore: update GitHub workflows to change branch triggers
claudfuen Apr 25, 2025
10299e8
Merge pull request #453 from trycompai/fix-workflows
claudfuen Apr 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions .cursor/rules/better-auth.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
description: When dealing with auth or authClient related code.
globs:
alwaysApply: false
---
Only use auth.ts and auth.api methods serverside. To use them you have to pass Next.js headers as follows:
auth.api.hasPermission({
headers: await headers(),
body: {
permissions: {
project: ["create"] // This must match the structure in your access control
}
}
});



Only use auth-client.ts and authClient on clienside. You do not need to pass headers, it's already contextually aware.

const canCreateProject = await authClient.organization.hasPermission({
permissions: {
project: ["create"]
}
})


For the full list of methods/supported actions reference:
https://www.better-auth.com/docs/plugins/organization
6 changes: 6 additions & 0 deletions .cursor/rules/imports.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
description:
globs:
alwaysApply: true
---
Always remove unused imports.
5 changes: 3 additions & 2 deletions .cursor/rules/react-code.mdc
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
description:
globs:
alwaysApply: true
globs: *.tsx
alwaysApply: false
---
When writing React code follow these standards:

- Always export a named component
- Always name components in PascalCase i.e (MyComponent)
- Always name files that export components in PascalCase
- Always try to keep components small and modular
- Always use sonner instead of toast.
10 changes: 9 additions & 1 deletion .cursor/rules/translation-rules.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@ This corresponds to the key of the object inside [en.ts](mdc:apps/app/src/locale
If there is a linting error, likely this key doesn't exist in [en.ts](mdc:apps/app/src/locales/en.ts) yet.


Also never add translations directly in en.ts, check the files it links to, it should always be in a subfile.
Also never add translations directly in en.ts, check the files it links to, it should always be in a subfile.

NEVER add a {} object as a second param on translation calls, this is not valid syntax.

BAD
`t("vendors.tasks.title", {})`

GOOD
`t("vendors.tasks.title")`
34 changes: 34 additions & 0 deletions .github/workflows/database-migrations-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Database Migrations Dev

on:
push:
branches:
- main
workflow_dispatch: # Allows manual triggering

env:
BUN_VERSION: "1.0.26"

jobs:
migrate:
name: Run Database Migrations
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ env.BUN_VERSION }}

- name: Install dependencies
run: bun install

- name: Apply database migrations
env:
DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
run: |
cd packages/db
bunx prisma migrate deploy
Comment on lines +14 to +34

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
2 changes: 1 addition & 1 deletion .github/workflows/database-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Database Migrations
on:
push:
branches:
- main
- release
workflow_dispatch: # Allows manual triggering

env:
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/trigger-tasks-deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy to Trigger.dev (dev)

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.x"

- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install

- name: Generate Prisma client
working-directory: ./packages/db
run: bunx prisma generate

- name: 🚀 Deploy Trigger.dev
working-directory: ./apps/app
env:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
VERCEL_ACCESS_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }}
run: bunx trigger.dev@latest deploy --env staging
Comment on lines +10 to +38

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
2 changes: 1 addition & 1 deletion .github/workflows/trigger-tasks-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy to Trigger.dev (prod)
on:
push:
branches:
- main
- release

jobs:
deploy:
Expand Down
Empty file added .windsurfrules
Empty file.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ We're building the first open source compliance automation platform that helps c

We transform compliance from a vendor checkbox into an engineering problem solved through code. Our platform automates evidence collection, policy management, and control implementation while keeping you in control of your data and infrastructure.

## Recognition

#### [ProductHunt](https://www.producthunt.com/posts/comp-ai)

<a href="https://www.producthunt.com/posts/comp-ai?embed=true&utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-comp&#0045;ai" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=944698&theme=light&period=daily&t=1745500415958" alt="Comp&#0032;AI - The&#0032;open&#0032;source&#0032;Vanta&#0032;&#0038;&#0032;Drata&#0032;alternative | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>

### Built With

- [Next.js](https://nextjs.org/?ref=trycomp.ai)
Expand Down
Loading
Loading