mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-14 06:17:41 +00:00
fix: default noisy team notifications to off
Disable progress, failed, commented, and slow_tool notifications by default — these are too verbose for most teams.
This commit is contained in:
1 parent
db7a34e4f3
commit
4cb6991fc6
2 files changed
+12
-12
No files matched your search
@@ -18,12 +18,12 @@ type TeamNotifyConfig struct {
|
||||
func DefaultTeamNotifyConfig() TeamNotifyConfig {
|
||||
return TeamNotifyConfig{
|
||||
Dispatched: true,
|
||||
Progress: true,
|
||||
Failed: true,
|
||||
Progress: false,
|
||||
Failed: false,
|
||||
Completed: true,
|
||||
Commented: true,
|
||||
Commented: false,
|
||||
NewTask: true,
|
||||
SlowTool: true,
|
||||
SlowTool: false,
|
||||
Mode: "direct",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,12 +71,12 @@ export function TeamSettingsTab({ teamId, team, onSaved }: TeamSettingsTabProps)
|
||||
const [denyChannels, setDenyChannels] = useState<string[]>(initial.deny_channels ?? []);
|
||||
const initNotify = initial.notifications ?? {};
|
||||
const [notifyDispatched, setNotifyDispatched] = useState(initNotify.dispatched ?? true);
|
||||
const [notifyProgress, setNotifyProgress] = useState(initNotify.progress ?? true);
|
||||
const [notifyFailed, setNotifyFailed] = useState(initNotify.failed ?? true);
|
||||
const [notifyProgress, setNotifyProgress] = useState(initNotify.progress ?? false);
|
||||
const [notifyFailed, setNotifyFailed] = useState(initNotify.failed ?? false);
|
||||
const [notifyCompleted, setNotifyCompleted] = useState(initNotify.completed ?? true);
|
||||
const [notifyCommented, setNotifyCommented] = useState(initNotify.commented ?? true);
|
||||
const [notifyCommented, setNotifyCommented] = useState(initNotify.commented ?? false);
|
||||
const [notifyNewTask, setNotifyNewTask] = useState(initNotify.new_task ?? true);
|
||||
const [notifySlowTool, setNotifySlowTool] = useState(initNotify.slow_tool ?? true);
|
||||
const [notifySlowTool, setNotifySlowTool] = useState(initNotify.slow_tool ?? false);
|
||||
const [notifyMode, setNotifyMode] = useState<"direct" | "leader">(initNotify.mode ?? "direct");
|
||||
const initMemberRequests = initial.member_requests ?? {};
|
||||
const [memberRequestsEnabled, setMemberRequestsEnabled] = useState(initMemberRequests.enabled ?? false);
|
||||
@@ -105,12 +105,12 @@ export function TeamSettingsTab({ teamId, team, onSaved }: TeamSettingsTabProps)
|
||||
setDenyChannels(s.deny_channels ?? []);
|
||||
const sn = s.notifications ?? {};
|
||||
setNotifyDispatched(sn.dispatched ?? true);
|
||||
setNotifyProgress(sn.progress ?? true);
|
||||
setNotifyFailed(sn.failed ?? true);
|
||||
setNotifyProgress(sn.progress ?? false);
|
||||
setNotifyFailed(sn.failed ?? false);
|
||||
setNotifyCompleted(sn.completed ?? true);
|
||||
setNotifyCommented(sn.commented ?? true);
|
||||
setNotifyCommented(sn.commented ?? false);
|
||||
setNotifyNewTask(sn.new_task ?? true);
|
||||
setNotifySlowTool(sn.slow_tool ?? true);
|
||||
setNotifySlowTool(sn.slow_tool ?? false);
|
||||
setNotifyMode(sn.mode ?? "direct");
|
||||
const smr = s.member_requests ?? {};
|
||||
setMemberRequestsEnabled(smr.enabled ?? false);
|
||||
|
||||
Reference in new issue
Block a user