Skip to content

asdfasdfasdf#6229

Closed
refeiner wants to merge 12 commits into
QuantumNous:mainfrom
eLightCloud:feat/org-bill
Closed

asdfasdfasdf#6229
refeiner wants to merge 12 commits into
QuantumNous:mainfrom
eLightCloud:feat/org-bill

Conversation

@refeiner

@refeiner refeiner commented Jul 15, 2026

Copy link
Copy Markdown

Summary by CodeRabbit

  • New Features

    • Added organization management, member roles, permissions, usage dashboards, billing views, logs, and CSV exports.
    • Added administrator organization management pages and navigation.
    • Introduced a refreshed Lighting-branded homepage with responsive sections, updated authentication presentation, and localized content.
    • Added light-only appearance and updated branding, favicon, and page metadata.
  • Documentation

    • Added structured product, architecture, engineering, operations, UI, research, planning, and marketing documentation.
  • Chores

    • Added local development, documentation validation, ADR creation, and upstream synchronization tools.
  • Tests

    • Added coverage for permissions, membership behavior, billing aggregation, and exports.

refeiner and others added 12 commits July 8, 2026 15:02
- Add glossary, hard constraints, requirements list, and project overview documents.
- Create product-related documents including core business processes, user roles, and acceptance criteria.
- Establish architecture documentation with data models, architectural overview, and engineering guidelines.
- Introduce operations documentation for environment configuration, monitoring, and maintenance procedures.
- Set up planning documentation for roadmap and change logs.
- Create marketing documentation for product positioning and release notes.
- Add research documentation for reference materials and alternative solutions.
- Implement a draft analysis for the billing system and a temporary development record section.
- Establish UI/UX documentation for interaction patterns and page inventory.
- Create an archive section for deprecated documents.
- Add a template for architectural decision records (ADR) and a script for generating new ADRs.
- Introduced types for organization roles, statuses, and related data structures in `types.ts`.
- Created routes for admin organization management, including organization details and listing.
- Implemented organization member management and usage tracking routes.
- Added organization logs and usage pages for authenticated users.
- 更新 AGENTS.md 中的项目规范说明
- 更新术语表,补充 API Gateway 相关术语定义
- 更新技术选型文档,补充架构设计决策
- 更新项目介绍,完善产品定位和功能描述
- 更新定价定义文档,优化计费规则说明

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
新增功能区块:
- capabilities: 核心能力展示区域
- ecosystem: 生态系统展示
- governance: 组织治理功能介绍
- scenarios: 使用场景展示
- why: 产品优势说明
- workflow: 工作流程展示

新增组件:
- home-footer: 首页底部组件
- home-link: 首页链接组件

重构现有组件:
- 优化 hero 区域布局和样式
- 优化 cta 区域交互设计
- 更新首页入口文件结构

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
- 重构 footer 组件,精简冗余代码,保留核心功能
- 重构 public-header 组件,优化响应式布局和导航结构
- 更新 main.tsx 入口文件,改进应用初始化逻辑

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
- 新增首页组件样式(hero、cta、sections 等)
- 新增布局组件样式(footer、header 等)
- 新增通用样式类和动画效果
- 新增响应式布局断点定义

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
新增翻译语言:
- zh.json: 简体中文(新增)

更新翻译内容:
- en.json: 英语
- fr.json: 法语
- ja.json: 日语
- ru.json: 俄语
- vi.json: 越南语
- zh-TW.json: 繁体中文

翻译覆盖:
- 首页区块内容(hero、cta、capabilities 等)
- 布局组件文本(footer、header)
- 通用 UI 文本

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Logo 资源:
- 新增 docs/90-ui-ux/logo.png 系列图片(3 种变体)
- 新增 web/default/public/lighting-*.png 系列(logo、favicon)

设计文档:
- 新增 design-qa.md 设计质量审核文档
- 新增 docs/90-ui-ux/uis/ 下的 HTML 设计稿

配置更新:
- 更新 index.html 页面标题和元信息
- 更新 rsbuild.config.ts 构建配置

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
- 更新产品文档:业务流程、用户与角色、定价模型
- 更新架构文档:数据模型、系统架构
- 更新工程文档:编码规范、本地开发环境
- 更新UI/UX文档:组件规范、设计语言
- 删除docs/80-dev/目录下过时的开发笔记文件
- 新增组织与组织用户功能设计文档
- 删除config-drawer组件(配置抽屉)
- 删除theme-quick-switcher组件(主题快速切换器)
- 删除theme-switch组件(主题切换)
- 优化theme-provider上下文,简化主题管理逻辑
- 精简布局组件:移除app-header、public-header中未使用的代码
- 更新样式文件index.css
- 优化command-menu、auth-layout、home等功能组件
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0b528e87-0c61-4702-bfae-6dbe597d8d62

📥 Commits

Reviewing files that changed from the base of the PR and between a63364d and f8c9ca1.

⛔ Files ignored due to path filters (9)
  • docs/90-ui-ux/logo-a.png is excluded by !**/*.png
  • docs/90-ui-ux/logo-b.png is excluded by !**/*.png
  • docs/90-ui-ux/logo.png is excluded by !**/*.png
  • web/default/public/favicon.ico is excluded by !**/*.ico
  • web/default/public/lighting-favicon.png is excluded by !**/*.png
  • web/default/public/lighting-logo-a.png is excluded by !**/*.png
  • web/default/public/lighting-logo-b.png is excluded by !**/*.png
  • web/default/public/lighting-logo.png is excluded by !**/*.png
  • web/default/public/lighting-mark.png is excluded by !**/*.png
📒 Files selected for processing (117)
  • AGENTS.md
  • Taskfile.yml
  • controller/organization.go
  • controller/organization_e2e_test.go
  • controller/organization_export_test.go
  • controller/testdata/organization_e2e.json
  • design-qa.md
  • docs/00-context/README.md
  • docs/00-context/术语表.md
  • docs/00-context/硬约束.md
  • docs/00-context/需求清单.md
  • docs/00-context/项目简介.md
  • docs/10-product/README.md
  • docs/10-product/核心业务流程.md
  • docs/10-product/用户与角色.md
  • docs/10-product/组织与账单产品设计.md
  • docs/10-product/验收标准.md
  • docs/20-architecture/README.md
  • docs/20-architecture/数据模型.md
  • docs/20-architecture/架构概览.md
  • docs/20-architecture/组织与组织账单架构设计.md
  • docs/30-engineering/AI编码指南.md
  • docs/30-engineering/README.md
  • docs/30-engineering/上游同步与冲突解决指南.md
  • docs/30-engineering/命令清单.md
  • docs/30-engineering/本地环境搭建.md
  • docs/30-engineering/组织模块开发与验证指南.md
  • docs/30-engineering/编码规范.md
  • docs/40-operations/README.md
  • docs/40-operations/环境配置.md
  • docs/40-operations/监控告警.md
  • docs/40-operations/运维手册.md
  • docs/50-planning/README.md
  • docs/50-planning/变更记录.md
  • docs/50-planning/路线图.md
  • docs/60-marketing/README.md
  • docs/60-marketing/产品定位.md
  • docs/60-marketing/发布说明.md
  • docs/70-research/README.md
  • docs/70-research/参考资料.md
  • docs/70-research/备选方案.md
  • docs/80-dev/README.md
  • docs/90-ui-ux/README.md
  • docs/90-ui-ux/uis/homepage-redesign copy 2.html
  • docs/90-ui-ux/uis/homepage-redesign copy 3.html
  • docs/90-ui-ux/uis/homepage-redesign copy 4.html
  • docs/90-ui-ux/uis/homepage-redesign copy.html
  • docs/90-ui-ux/uis/homepage-redesign.html
  • docs/90-ui-ux/交互模式.md
  • docs/90-ui-ux/组织管理与组织账单UI设计.md
  • docs/90-ui-ux/页面清单.md
  • docs/90-ui-ux/默认前端品牌与视觉设计.md
  • docs/99-archive/README.md
  • docs/README.md
  • docs/templates/adr.md
  • model/main.go
  • model/organization.go
  • model/organization_test.go
  • model/task_cas_test.go
  • router/api-router.go
  • scripts/docs/new-adr.sh
  • start.sh
  • sync-upstream.sh
  • web/default/index.html
  • web/default/rsbuild.config.ts
  • web/default/src/components/command-menu.tsx
  • web/default/src/components/layout/components/app-header.tsx
  • web/default/src/components/layout/components/footer.tsx
  • web/default/src/components/layout/components/public-header.tsx
  • web/default/src/components/layout/components/public-layout.tsx
  • web/default/src/components/layout/components/system-brand.tsx
  • web/default/src/components/theme-quick-switcher.tsx
  • web/default/src/components/theme-switch.tsx
  • web/default/src/context/theme-provider.tsx
  • web/default/src/features/auth/auth-layout.tsx
  • web/default/src/features/home/components/home-footer.tsx
  • web/default/src/features/home/components/home-link.tsx
  • web/default/src/features/home/components/index.ts
  • web/default/src/features/home/components/sections/capabilities.tsx
  • web/default/src/features/home/components/sections/cta.tsx
  • web/default/src/features/home/components/sections/ecosystem.tsx
  • web/default/src/features/home/components/sections/governance.tsx
  • web/default/src/features/home/components/sections/hero.tsx
  • web/default/src/features/home/components/sections/scenarios.tsx
  • web/default/src/features/home/components/sections/why.tsx
  • web/default/src/features/home/components/sections/workflow.tsx
  • web/default/src/features/home/index.tsx
  • web/default/src/features/organizations/api.ts
  • web/default/src/features/organizations/index.tsx
  • web/default/src/features/organizations/types.ts
  • web/default/src/features/system-settings/maintenance/config.ts
  • web/default/src/features/system-settings/maintenance/sidebar-modules-section.tsx
  • web/default/src/hooks/use-sidebar-config.ts
  • web/default/src/hooks/use-sidebar-data.ts
  • web/default/src/hooks/use-system-config.ts
  • web/default/src/i18n/locales/en.json
  • web/default/src/i18n/locales/fr.json
  • web/default/src/i18n/locales/ja.json
  • web/default/src/i18n/locales/ru.json
  • web/default/src/i18n/locales/vi.json
  • web/default/src/i18n/locales/zh-TW.json
  • web/default/src/i18n/locales/zh.json
  • web/default/src/lib/branding.ts
  • web/default/src/lib/constants.ts
  • web/default/src/lib/dom-utils.ts
  • web/default/src/lib/format.ts
  • web/default/src/main.tsx
  • web/default/src/routeTree.gen.ts
  • web/default/src/routes/_authenticated/admin/organizations/$id.tsx
  • web/default/src/routes/_authenticated/admin/organizations/index.tsx
  • web/default/src/routes/_authenticated/errors/$error.tsx
  • web/default/src/routes/_authenticated/organization/index.tsx
  • web/default/src/routes/_authenticated/organization/logs.tsx
  • web/default/src/routes/_authenticated/organization/members.tsx
  • web/default/src/routes/_authenticated/organization/usage.tsx
  • web/default/src/stores/system-config-store.ts
  • web/default/src/styles/index.css

Walkthrough

Adds organization management and billing aggregation across the Go backend and default frontend, including member permissions, reports, logs, exports, routes, tests, and fixtures. It also rebrands the frontend as Lighting, introduces a redesigned localized homepage, removes theme switching, adds documentation structure, and provides development automation scripts.

Changes

Organization platform

Layer / File(s) Summary
Organization domain, API, and validation
model/organization.go, controller/organization.go, router/api-router.go, model/main.go
Adds organization and membership models, role validation, lifecycle safeguards, billing aggregation, authenticated/admin APIs, migrations, and CSV exports.
Backend tests and fixtures
model/organization_test.go, controller/organization_e2e_test.go, controller/organization_export_test.go, controller/testdata/organization_e2e.json
Adds model, end-to-end, authorization, billing, membership-isolation, pagination, and export contract coverage.
Organization frontend
web/default/src/features/organizations/*, web/default/src/routes/_authenticated/organization/*, web/default/src/routes/_authenticated/admin/organizations/*
Adds typed clients, organization usage, members, logs, admin organization pages, filters, tables, dialogs, exports, and route guards.
Navigation and localization
web/default/src/hooks/use-sidebar-*, web/default/src/features/system-settings/maintenance/*, web/default/src/i18n/locales/*, web/default/src/routeTree.gen.ts
Adds organization navigation, module configuration, translated organization copy, and generated route contracts.

Lighting frontend and repository tooling

Layer / File(s) Summary
Branding and homepage
web/default/src/lib/*, web/default/src/features/home/*, web/default/src/styles/index.css, web/default/index.html
Changes default branding to Lighting, adds favicon and persisted-branding normalization, replaces the homepage with localized sections, and adds responsive home/auth styling.
Theme and shared layout changes
web/default/src/context/theme-provider.tsx, web/default/src/components/layout/components/*, web/default/src/features/auth/auth-layout.tsx
Pins the frontend to light mode, removes theme/config-drawer controls, updates public header variants, and changes footer/auth layout rendering.
Documentation and automation
docs/*, Taskfile.yml, scripts/docs/new-adr.sh, start.sh, sync-upstream.sh
Adds structured product, architecture, engineering, operations, planning, marketing, research, UI, and archive documentation plus task checks, ADR creation, local startup, and upstream sync scripts.

Estimated code review effort: 5 (Critical) | ~120 minutes

Suggested labels: enhancement

Suggested reviewers: calcium-ion

Poem

A rabbit hops through billing rows,
With carrots counted, status glows.
Lighting blooms in pages bright,
Members join by role and right.
Logs export, docs neatly grow—
Ears up high, ship it so!

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@refeiner refeiner closed this Jul 15, 2026
@refeiner refeiner changed the title 添加组织与组织账单 1 Jul 15, 2026
@refeiner refeiner changed the title 1 asdfasdfasdf Jul 15, 2026
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