mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
feat: add approvals workflow and unified member invitation management across projects, workspaces, and videos
This commit is contained in:
@@ -29,6 +29,7 @@ interface NotificationSettings {
|
||||
onNewVersion: boolean;
|
||||
onNewComment: boolean;
|
||||
onNewReply: boolean;
|
||||
onApprovalEvents: boolean;
|
||||
timezone: string;
|
||||
}
|
||||
|
||||
@@ -87,6 +88,7 @@ export default function SettingsPage() {
|
||||
onNewVersion: true,
|
||||
onNewComment: true,
|
||||
onNewReply: true,
|
||||
onApprovalEvents: true,
|
||||
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC',
|
||||
});
|
||||
const [loading, setLoading] = useState(true);
|
||||
@@ -283,6 +285,14 @@ export default function SettingsPage() {
|
||||
label="New Reply"
|
||||
description="When someone replies to a comment thread"
|
||||
/>
|
||||
<ToggleButton
|
||||
enabled={settings.onApprovalEvents}
|
||||
onToggle={() =>
|
||||
setSettings((s) => ({ ...s, onApprovalEvents: !s.onApprovalEvents }))
|
||||
}
|
||||
label="Approval Workflow"
|
||||
description="When approval requests are created, responded to, or finalized"
|
||||
/>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user