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] <support@github.com> 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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mariano Fuentes <marfuen98@gmail.com> * 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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mariano Fuentes <marfuen98@gmail.com> * 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 <marfuen98@gmail.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Mariano Fuentes <marfuen98@gmail.com> Co-authored-by: Dhanus <dhanus3133@gmail.com> 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

5 files changed

Lines changed: 41 additions & 31 deletions

File tree

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
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)