fix: resolve permission toggle persistence, nudge terminology, and bulk action bugs (Bugs #2-5)
- Fix togglePermission() to always include all permission keys with false defaults - Add migration to backfill null/empty Manager permissions with config defaults - Rename nudge UI text from "Relance" to "Notification"/"Notifier" across 8 files - Fix select-all checkbox and show checkboxes on all declaration rows - Remove en_attente_client status restriction from BulkNotificationController Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -139,7 +139,12 @@ function openPermissionsDialog(member: TeamMember) {
|
||||
|
||||
function togglePermission(key: string, value: boolean) {
|
||||
if (!permissionsMember.value?.permissionsUrl) return;
|
||||
// Ensure ALL permission keys are present, defaulting missing keys to false
|
||||
const base = Object.fromEntries(
|
||||
Object.keys(props.availablePermissions).map((k) => [k, false]),
|
||||
);
|
||||
const updatedPermissions = {
|
||||
...base,
|
||||
...permissionsMember.value.permissions,
|
||||
[key]: value,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user