Skip to content

Commit cdb71c8

Browse files
github-actions[bot]MarfuenDhanus3133dependabot[bot]
authored
[comp] Production Deploy (#1424)
* refactor: enhance EmployeeCompletionChart with profile links - Added external profile links for employees in the EmployeeCompletionChart, allowing users to view detailed profiles. - Integrated organization ID retrieval using useParams for dynamic linking. - Improved layout of employee details for better visual presentation. * fix: Enforce role-based access control in app * fix: Prisma seed command in `packages/db` * fix: Move role checks on org level * fix: Allow access to auditor role * chore: Just restrict access to employee role * chore(deps): bump @tiptap/extension-highlight from 2.22.3 to 3.3.0 (#1404) Bumps [@tiptap/extension-highlight](https://github.com/ueberdosis/tiptap/tree/HEAD/packages/extension-highlight) from 2.22.3 to 3.3.0. - [Release notes](https://github.com/ueberdosis/tiptap/releases) - [Changelog](https://github.com/ueberdosis/tiptap/blob/develop/packages/extension-highlight/CHANGELOG.md) - [Commits](https://github.com/ueberdosis/tiptap/commits/v3.3.0/packages/extension-highlight) --- updated-dependencies: - dependency-name: "@tiptap/extension-highlight" dependency-version: 3.3.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump dub from 0.63.7 to 0.66.1 (#1399) Bumps [dub](https://github.com/dubinc/dub-ts) from 0.63.7 to 0.66.1. - [Release notes](https://github.com/dubinc/dub-ts/releases) - [Changelog](https://github.com/dubinc/dub-ts/blob/main/RELEASES.md) - [Commits](dubinc/dub-ts@v0.63.7...v0.66.1) --- updated-dependencies: - dependency-name: dub dependency-version: 0.66.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mariano Fuentes <[email protected]> * chore(deps): bump @dub/embed-react from 0.0.15 to 0.0.16 (#1337) Bumps [@dub/embed-react](https://github.com/dubinc/dub) from 0.0.15 to 0.0.16. - [Commits](https://github.com/dubinc/dub/commits) --- updated-dependencies: - dependency-name: "@dub/embed-react" dependency-version: 0.0.16 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mariano Fuentes <[email protected]> * chore: update Header component and enhance NoAccess page layout (#1425) - Added Header component to NoAccess page for better organization context. - Adjusted layout of NoAccess page to improve user experience and visual structure. - Updated Header component to conditionally render AssistantButton based on hideChat prop. Dependencies updated in bun.lock for @dub/embed-react, dub, and @tiptap/extension-highlight. Co-authored-by: Mariano Fuentes <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Mariano Fuentes <[email protected]> Co-authored-by: Dhanus <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 07e116e commit cdb71c8

File tree

5 files changed

+41
-31
lines changed

5 files changed

+41
-31
lines changed

apps/app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@dnd-kit/utilities": "^3.2.2",
2323
"@dub/analytics": "^0.0.27",
2424
"@dub/better-auth": "^0.0.3",
25-
"@dub/embed-react": "^0.0.15",
25+
"@dub/embed-react": "^0.0.16",
2626
"@hookform/resolvers": "^5.1.1",
2727
"@mendable/firecrawl-js": "^1.24.0",
2828
"@nangohq/frontend": "^0.53.2",
@@ -57,7 +57,7 @@
5757
"better-auth": "^1.2.8",
5858
"canvas-confetti": "^1.9.3",
5959
"d3": "^7.9.0",
60-
"dub": "^0.63.6",
60+
"dub": "^0.66.1",
6161
"framer-motion": "^12.18.1",
6262
"geist": "^1.3.1",
6363
"lucide-react": "^0.534.0",

apps/app/src/app/(app)/no-access/page.tsx

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Header } from '@/components/header';
12
import { OrganizationSwitcher } from '@/components/organization-switcher';
23
import { auth } from '@/utils/auth';
34
import { db } from '@db';
@@ -31,20 +32,23 @@ export default async function NoAccess() {
3132
});
3233

3334
return (
34-
<div className="bg-foreground/05 flex h-dvh flex-col items-center justify-center gap-4">
35-
<h1 className="text-2xl font-bold">Access Denied</h1>
36-
<div className="flex flex-col text-center">
37-
<p>
38-
<b>Employees</b> don&apos;t have access to app.trycomp.ai, did you mean to go to{' '}
39-
<Link href="https://portal.trycomp.ai" className="text-primary underline">
40-
portal.trycomp.ai
41-
</Link>
42-
?
43-
</p>
44-
<p>Please select another organization or contact your organization administrator.</p>
45-
</div>
46-
<div>
47-
<OrganizationSwitcher organizations={organizations} organization={currentOrg} />
35+
<div className="flex h-dvh flex-col">
36+
<Header organizationId={currentOrg?.id} hideChat={true} />
37+
<div className="bg-foreground/05 flex flex-1 flex-col items-center justify-center gap-4">
38+
<h1 className="text-2xl font-bold">Access Denied</h1>
39+
<div className="flex flex-col text-center">
40+
<p>
41+
<b>Employees</b> don&apos;t have access to app.trycomp.ai, did you mean to go to{' '}
42+
<Link href="https://portal.trycomp.ai" className="text-primary underline">
43+
portal.trycomp.ai
44+
</Link>
45+
?
46+
</p>
47+
<p>Please select another organization or contact your organization administrator.</p>
48+
</div>
49+
<div>
50+
<OrganizationSwitcher organizations={organizations} organization={currentOrg} />
51+
</div>
4852
</div>
4953
</div>
5054
);

apps/app/src/components/header.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@ import { Suspense } from 'react';
55
import { AssistantButton } from './ai/chat-button';
66
import { MobileMenu } from './mobile-menu';
77

8-
export async function Header({ organizationId }: { organizationId?: string }) {
8+
export async function Header({
9+
organizationId,
10+
hideChat = false,
11+
}: {
12+
organizationId?: string;
13+
hideChat?: boolean;
14+
}) {
915
const { organizations } = await getOrganizations();
1016

1117
return (
1218
<header className="border/40 sticky top-0 z-10 flex items-center justify-between border-b px-4 py-2 backdrop-blur-sm bg-card">
1319
<MobileMenu organizations={organizations} organizationId={organizationId} />
1420

15-
<AssistantButton />
21+
{!hideChat && <AssistantButton />}
1622

1723
<div className="ml-auto flex space-x-2">
1824
<Suspense fallback={<Skeleton className="h-8 w-8 rounded-full" />}>

bun.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"@dnd-kit/utilities": "^3.2.2",
126126
"@dub/analytics": "^0.0.27",
127127
"@dub/better-auth": "^0.0.3",
128-
"@dub/embed-react": "^0.0.15",
128+
"@dub/embed-react": "^0.0.16",
129129
"@hookform/resolvers": "^5.1.1",
130130
"@mendable/firecrawl-js": "^1.24.0",
131131
"@nangohq/frontend": "^0.53.2",
@@ -160,7 +160,7 @@
160160
"better-auth": "^1.2.8",
161161
"canvas-confetti": "^1.9.3",
162162
"d3": "^7.9.0",
163-
"dub": "^0.63.6",
163+
"dub": "^0.66.1",
164164
"framer-motion": "^12.18.1",
165165
"geist": "^1.3.1",
166166
"lucide-react": "^0.534.0",
@@ -383,7 +383,7 @@
383383
"@tiptap/extension-bold": "2.14.0",
384384
"@tiptap/extension-character-count": "2.14.0",
385385
"@tiptap/extension-code-block-lowlight": "2.14.0",
386-
"@tiptap/extension-highlight": "2.22.3",
386+
"@tiptap/extension-highlight": "3.3.0",
387387
"@tiptap/extension-image": "2.14.0",
388388
"@tiptap/extension-link": "2.14.0",
389389
"@tiptap/extension-placeholder": "2.14.0",
@@ -767,9 +767,9 @@
767767

768768
"@dub/better-auth": ["@dub/[email protected]", "", { "dependencies": { "zod": "^3.24.4" } }, "sha512-5haJGPt8Xab1L4De6naqEwC8k2KJrxI2iAfs5t9u6iNob3DNBTsbSZGb2godIigg9ZsS2J+joKKG5hDK6jT0UQ=="],
769769

770-
"@dub/embed-core": ["@dub/[email protected].15", "", { "dependencies": { "@floating-ui/dom": "^1.6.12" } }, "sha512-0hfWesBfUBpzw29FbCEUSxakNCCebTcyoVXHanE45HSj0Atmx3ANpilpa25lR5g62MwLg9kcX4dR6jpTfLeQ8g=="],
770+
"@dub/embed-core": ["@dub/[email protected].16", "", { "dependencies": { "@floating-ui/dom": "^1.6.12" } }, "sha512-CsPVxvC2E8OcgwVUA5zIwy+x+XGP4IaE4LLlMz4GoK24ACn6Hcy7Pn/2vb4HFMSPay8fzd47cEQk/2MXsFQXPQ=="],
771771

772-
"@dub/embed-react": ["@dub/[email protected].15", "", { "dependencies": { "@dub/embed-core": "^0.0.15", "class-variance-authority": "^0.7.0", "vite": "5.2.9" }, "peerDependencies": { "react": "^18.2.0", "react-dom": "^18.2.0" } }, "sha512-GLLAMGpn6WLXbM8q4n0lPOrjsYkmI0W3LvAAMFbb+FeQ6OwFvz390xwWW2ygfUo74wvWLSYVEOoHymiuoSrb7Q=="],
772+
"@dub/embed-react": ["@dub/[email protected].16", "", { "dependencies": { "@dub/embed-core": "^0.0.16", "class-variance-authority": "^0.7.0", "vite": "5.2.9" }, "peerDependencies": { "react": "^18.2.0", "react-dom": "^18.2.0" } }, "sha512-HVo20cEKEX5nRxJsUq6XiUsv2HnmZec2iQbGruWf+Z//OyiUboquaGqOUnNNOmLPdmWONzaYxXYhvAmEjKU1XQ=="],
773773

774774
"@effect/platform": ["@effect/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.33.0", "find-my-way-ts": "^0.1.6", "msgpackr": "^1.11.4", "multipasta": "^0.2.7" }, "peerDependencies": { "effect": "^3.17.7" } }, "sha512-XvQ37yzWQKih4Du2CYladd1i/MzqtgkTPNCaN6Ku6No4CK83hDtXIV/rP03nEoBg2R3Pqgz6gGWmE2id2G81HA=="],
775775

@@ -1707,7 +1707,7 @@
17071707

17081708
"@tiptap/extension-heading": ["@tiptap/[email protected]", "", { "peerDependencies": { "@tiptap/core": "^2.7.0" } }, "sha512-KSzL8WZV3pjJG9ke4RaU70+B5UlYR2S6olNt5UCAawM+fi11mobVztiBoC19xtpSVqIXC1AmXOqUgnuSvmE4ZA=="],
17091709

1710-
"@tiptap/extension-highlight": ["@tiptap/extension-highlight@2.22.3", "", { "peerDependencies": { "@tiptap/core": "^2.7.0" } }, "sha512-cdPSeQ3QcThhJdzkjK9a1871uPQjwmOf0WzTGW33lJyJDQHypWIRNUus56c3pGA7BgV9P59QW7Fm8rDnM8XkbA=="],
1710+
"@tiptap/extension-highlight": ["@tiptap/extension-highlight@3.3.0", "", { "peerDependencies": { "@tiptap/core": "^3.3.0" } }, "sha512-G+mHVXkoQ4uG97JRFN56qL42iJVKbSeWgDGssmnjNZN/W4Nsc40LuNryNbQUOM9CJbEMIT5NGAwvc/RG0OpGGQ=="],
17111711

17121712
"@tiptap/extension-history": ["@tiptap/[email protected]", "", { "peerDependencies": { "@tiptap/core": "^2.7.0", "@tiptap/pm": "^2.7.0" } }, "sha512-m6YR1gkkauIDo3PRl0gP+7Oc4n5OqDzcjVh6LvWREmZP8nmi94hfseYbqOXUb6RPHIc0JKF02eiRifT4MSd2nw=="],
17131713

@@ -2755,7 +2755,7 @@
27552755

27562756
"draco3d": ["[email protected]", "", {}, "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ=="],
27572757

2758-
"dub": ["dub@0.63.7", "", { "peerDependencies": { "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "zod": ">= 3" }, "optionalPeers": ["@modelcontextprotocol/sdk"], "bin": { "mcp": "bin/mcp-server.js" } }, "sha512-DhMF4ceWIPjMGA4ZU8L1pySJFtwdXRjcwchRLLWReN5t3C/MZohrLvrqbeJOBfdOE4VKGtqI8uYD3kBT+4nMSQ=="],
2758+
"dub": ["dub@0.66.1", "", { "dependencies": { "zod": "^3.20.0" } }, "sha512-a3XlK1R7Pnfj33sB7Hpcl0lidrX3Rq46ZTQN48eCoMj+2QIumWoOZsEnAIP6qfEtvGuNCaDfCzfMh0Im2zyo5g=="],
27592759

27602760
"dunder-proto": ["[email protected]", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="],
27612761

@@ -4309,7 +4309,7 @@
43094309

43104310
"saxes": ["[email protected]", "", { "dependencies": { "xmlchars": "^2.2.0" } }, "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA=="],
43114311

4312-
"scheduler": ["scheduler@0.26.0", "", {}, "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA=="],
4312+
"scheduler": ["scheduler@0.25.0", "", {}, "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA=="],
43134313

43144314
"schema-utils": ["[email protected]", "", { "dependencies": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", "ajv-keywords": "^3.5.2" } }, "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg=="],
43154315

@@ -5111,8 +5111,6 @@
51115111

51125112
"@react-email/components/@react-email/render": ["@react-email/[email protected]", "", { "dependencies": { "html-to-text": "^9.0.5", "prettier": "^3.5.3", "react-promise-suspense": "^0.3.4" }, "peerDependencies": { "react": "^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^18.0 || ^19.0 || ^19.0.0-rc" } }, "sha512-RnRehYN3v9gVlNMehHPHhyp2RQo7+pSkHDtXPvg3s0GbzM9SQMW4Qrf8GRNvtpLC4gsI+Wt0VatNRUFqjvevbw=="],
51135113

5114-
"@react-three/fiber/scheduler": ["[email protected]", "", {}, "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA=="],
5115-
51165114
"@react-three/postprocessing/maath": ["[email protected]", "", { "peerDependencies": { "@types/three": ">=0.144.0", "three": ">=0.144.0" } }, "sha512-dSb2xQuP7vDnaYqfoKzlApeRcR2xtN8/f7WV/TMAkBC8552TwTLtOO0JTcSygkYMjNDPoo6V01jTw/aPi4JrMw=="],
51175115

51185116
"@semantic-release/github/@semantic-release/error": ["@semantic-release/[email protected]", "", {}, "sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ=="],
@@ -5247,6 +5245,8 @@
52475245

52485246
"dotenv-expand/dotenv": ["[email protected]", "", {}, "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow=="],
52495247

5248+
"dub/zod": ["[email protected]", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
5249+
52505250
"duplexer2/readable-stream": ["[email protected]", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="],
52515251

52525252
"ecdsa-sig-formatter/safe-buffer": ["[email protected]", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
@@ -5821,14 +5821,14 @@
58215821

58225822
"rc/strip-json-comments": ["[email protected]", "", {}, "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ=="],
58235823

5824+
"react-dom/scheduler": ["[email protected]", "", {}, "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA=="],
5825+
58245826
"react-dropzone/file-selector": ["[email protected]", "", { "dependencies": { "tslib": "^2.7.0" } }, "sha512-QgXo+mXTe8ljeqUFaX3QVHc5osSItJ/Km+xpocx0aSqWGMSCf6qYs/VnzZgS864Pjn5iceMRFigeAV7AfTlaig=="],
58255827

58265828
"react-email/chalk": ["[email protected]", "", {}, "sha512-46QrSQFyVSEyYAgQ22hQ+zDa60YHA4fBstHmtSApj1Y5vKtG27fWowW03jCk5KcbXEWPZUIR894aARCA/G1kfQ=="],
58275829

58285830
"react-promise-suspense/fast-deep-equal": ["[email protected]", "", {}, "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w=="],
58295831

5830-
"react-reconciler/scheduler": ["[email protected]", "", {}, "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA=="],
5831-
58325832
"read-cache/pify": ["[email protected]", "", {}, "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog=="],
58335833

58345834
"read-pkg/unicorn-magic": ["[email protected]", "", {}, "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ=="],

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@tiptap/extension-bold": "2.14.0",
4040
"@tiptap/extension-character-count": "2.14.0",
4141
"@tiptap/extension-code-block-lowlight": "2.14.0",
42-
"@tiptap/extension-highlight": "2.22.3",
42+
"@tiptap/extension-highlight": "3.3.0",
4343
"@tiptap/extension-image": "2.14.0",
4444
"@tiptap/extension-link": "2.14.0",
4545
"@tiptap/extension-placeholder": "2.14.0",

0 commit comments

Comments
 (0)