Skip to content

feat(ui): remove Organization settings form - #34

Merged
argszero merged 1 commit into
mainfrom
feat/ui-no-org-settings
Aug 17, 2026
Merged

argszero merged 1 commit into
mainfrom
feat/ui-no-org-settings

Conversation

@argszero

Copy link
Copy Markdown
Owner

Summary

Remove the "组织设置 Organization settings" form from the admin Org page. The org management page now keeps only the department list (CRUD + monthly point allocation). The removed form held: org name, default member quota, the "成员自助申请加额需管理员审批" toggle, the "关闭外部注册" switch, and a save button.

Rant reference

Host instruction (rant 2026-08-17T10:59:23, 移除"组织设置 Organization settings"表单):

宿主指出:不需要"组织设置 Organization settings"这个表单。组织管理页保留部门列表(部门 CRUD + 每月点数分配),移除底部的"组织设置"表单(组织名称 / 默认成员配额 / 开关)。

Changes

  • ui/index.html: removed the 组织设置 card from data-admin-pane="org" (org name input, default member quota, org-approval-toggle, 关闭外部注册 checkbox, 保存设置 button); department list kept as-is
  • ui/js/app.js confirmRaise(): removed the needApproval toggle read and the direct-topup (else) branch — raise requests now always go through admin approval (default behavior)
  • docs/user-stories.md: bumped to v1.12 — US-16 marked as deployment config, not set in the UI; US-20 AC updated (default requires approval, toggle removed); E-06 no longer references "按组织设置"
  • ui/README.md: synced admin section (无组织设置表单), role-difference line, and wallet raise-request description

Verification

  • grep 组织设置|org-approval-toggle|needApproval|保存设置 in ui/js + ui/index.html → only the intentional explanatory code comment
  • node --check ui/js/app.js passes
  • cargo test passes (1 passed)
  • cargo fmt --check passes

The org management page keeps the department list (CRUD + monthly quota)
only; the bottom "组织设置 Organization settings" form (org name,
default member quota, approval toggle, 关闭外部注册 switch, save button)
is removed. The raise-request flow defaults to admin approval (the
"需审批" toggle is gone). "关闭外部注册" is a deployment config item,
not set in the UI (US-16). Syncs docs v1.12 (US-16 / US-20 / E-06) and
ui/README.md.

Refs: rant 2026-08-17T10:59:23 (移除"组织设置 Organization settings"表单)
@argszero
argszero merged commit 9a37d2d into main Aug 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant