@agenticmail/enterprise 0.5.304 → 0.5.305

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -235,6 +235,30 @@ function PermissionEditor({ userId, userName, currentPerms, pageRegistry, onSave
235
235
  })
236
236
  ),
237
237
 
238
+ // ─── Organization Assignment ──────────────────────
239
+ permOrgs.length > 0 && h('div', { style: { marginTop: 16, padding: '12px 14px', background: 'var(--bg-tertiary)', borderRadius: 8 } },
240
+ h('div', { style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', marginBottom: 8 } },
241
+ h('div', null,
242
+ h('strong', { style: { fontSize: 13 } }, 'Client Organization'),
243
+ h('div', { style: { fontSize: 11, color: 'var(--text-muted)', marginTop: 1 } }, 'Bind this user to a client org — they will only see that org\'s agents and data')
244
+ )
245
+ ),
246
+ h('select', {
247
+ className: 'input',
248
+ value: userOrgId,
249
+ onChange: function(e) { setUserOrgId(e.target.value); },
250
+ style: { fontSize: 13 }
251
+ },
252
+ h('option', { value: '' }, 'None (Internal User)'),
253
+ permOrgs.filter(function(o) { return o.is_active !== false; }).map(function(o) {
254
+ return h('option', { key: o.id, value: o.id }, o.name);
255
+ })
256
+ ),
257
+ userOrgId && h('div', { style: { fontSize: 11, color: 'var(--warning, #f59e0b)', marginTop: 6 } },
258
+ 'This user will only see agents and data belonging to this organization. The org switcher will be locked for them.'
259
+ )
260
+ ),
261
+
238
262
  // ─── Agent Access ──────────────────────────
239
263
  !fullAccess && h('div', { style: { marginTop: 16 } },
240
264
  h('div', { style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', marginBottom: 8 } },
@@ -637,7 +661,8 @@ export function UsersPage() {
637
661
  currentPerms: permGrants,
638
662
  pageRegistry: pageRegistry,
639
663
  onSave: savePermissions,
640
- onClose: function() { setPermTarget(null); }
664
+ onClose: function() { setPermTarget(null); },
665
+ userObj: permTarget
641
666
  }),
642
667
 
643
668
  // 5-step delete confirmation modal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.304",
3
+ "version": "0.5.305",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -661,7 +661,8 @@ export function UsersPage() {
661
661
  currentPerms: permGrants,
662
662
  pageRegistry: pageRegistry,
663
663
  onSave: savePermissions,
664
- onClose: function() { setPermTarget(null); }
664
+ onClose: function() { setPermTarget(null); },
665
+ userObj: permTarget
665
666
  }),
666
667
 
667
668
  // 5-step delete confirmation modal