Commit Graph

5 Commits

Author SHA1 Message Date
lianjianwei2024
5fdac9902d feat(suffix): 支持根目录重命名、列宽保存、锚定值与文件发布
Some checks failed
Check / delivery-static (push) Has been cancelled
Check / api (push) Has been cancelled
Check / web (push) Has been cancelled
2026-10-31 09:17:28 +08:00
lianjianwei2024
ac4b4a1c06 feat: suffix naming rules, extension consistency, column widths, compact layout
- suffix rows are named by the suffix at creation (prompt); names are
  immutable afterwards; duplicates auto-suffix -1/-2 (global)
- new-group dialog takes group name + first suffix name; backend creates
  group and its first workspace row in one transaction
- upload validation: file extension must match the row's suffix
  (whole-row consistency), enforced client- and server-side
- column sort dialog gains per-column width inputs (persisted via
  PATCH /columns/:id, table renders fixed widths, 0 = auto)
- compact layout: denser tables/bars, viewport-height shell with
  independent scrollbars, cleanup step in e2e flow
2026-10-30 16:17:17 +08:00
lianjianwei2024
4ebf0afc22 feat: new suffix group auto-creates one workspace row
新建分组即自动带一行工作行(双击命名、上传模板/向下插入行/↑/↓/×按钮齐全),
消灭空分组死步骤;集成测试清理只清自建数据的口径下断言按行名定位
2026-10-30 15:26:43 +08:00
lianjianwei2024
2d9dcba800 feat: refine suffix management layout and column ordering
- column sort dialog: reorder via arrows (persisted via new
  POST /dirs/:id/columns/order), precise column insertion after a
  selected position (create column accepts after_id), value columns
  shown in blue text inside the dialog
- workspace cells: edit only after entering the row's 编辑 mode,
  then double-click the cell (matching legacy interaction)
- collapsible global sidebar with edge handle (state persisted);
  suffix panel directory collapses independently; independent
  scrollbars for directory and workspace; 5px gap to the sidebar
- suffix page drops the internal-console heading block and the
  内部管理台 topbar label; 退出 moves to the sidebar footer
  (same line as the admin email, 5px from the edge); brand subtitle
  统一授权管理平台 removed
- integration test covers column reorder/precise insert/dedupe
2026-10-30 13:20:12 +08:00
lianjianwei2024
dd9d5470c2 feat: add suffix management module under business admin
- migration 000017: suffix_dirs tree (info-price style, two-root sidebar),
  suffix_groups, suffixes, per-directory columns with value flag, cells,
  row anchors and template files (stored under PACKAGE_STORAGE_ROOT)
- Go API /api/v1/suffix-admin/*: tree/page/CRUD/reorder for dirs, groups,
  suffixes and columns; cell upsert; anchor toggle; template upload with
  sha256 verification, scoped download/delete; admin session required
- RequiredSchemaVersion 16 -> 17
- Vue panel /suffixes (menu below payment plans): two roots (basic setup +
  info-price directory tree), grouped suffix sheet with template upload,
  add-column dialog with 值设置 checkbox (value cells store {anchor,value});
  removed attribute-table/field-mapping/column-sort/value-setting toolbar
- tests: integration test (MYSQL_TEST_DSN gated) + 3 vitest cases
2026-10-30 11:32:22 +08:00