Working on notifier system.

This commit is contained in:
charlesgauthereau
2025-11-09 16:47:58 +01:00
parent 411e09f452
commit 7dfd9f02e8
27 changed files with 2755 additions and 81 deletions
@@ -7,10 +7,9 @@ import {
DeleteOrganizationButton
} from "@/components/wrappers/dashboard/organization/delete-organization/delete-organization-button";
import {EditButtonSettings} from "@/components/wrappers/dashboard/settings/edit-button-settings/edit-button-settings";
import {
SettingsOrganizationMembersTable
} from "@/components/wrappers/dashboard/settings/settings-organization-members-table";
import {Metadata} from "next";
import {OrganizationTabs} from "@/components/wrappers/dashboard/organization/tabs/organization-tabs";
import {getOrganizationChannels} from "@/db/services/notification-channel";
export const metadata: Metadata = {
title: "Settings",
@@ -25,6 +24,11 @@ export default async function RoutePage(props: PageParams<{ slug: string }>) {
notFound();
}
const notificationChannels = await getOrganizationChannels(organization.id)
console.log("notificationChannels", notificationChannels);
const isMember = activeMember?.role === "member";
const isOwner = activeMember?.role === "owner";
@@ -44,7 +48,10 @@ export default async function RoutePage(props: PageParams<{ slug: string }>) {
</PageActions>
</PageHeader>
<PageContent>
<SettingsOrganizationMembersTable organization={organization}/>
<OrganizationTabs
organization={organization}
notificationChannels={notificationChannels}
/>
</PageContent>
</Page>
)