Skip to content

Conversation

@Chillln
Copy link
Contributor

@Chillln Chillln commented Oct 1, 2025

  • 更新前端依赖至最新版本
  • 修复登录报错
  • 优化服务器设置弹窗
  • 优化告警规则弹窗

2025-10-01 101611 2025-10-01 101745 2025-10-01 101612 2025-10-01 101613

TODO: 完善前端国际化

更新所有UI组件中的forwardRef类型,从ElementRef改为ComponentRef以保持一致性
迁移postcss配置至mjs格式并更新依赖版本
移除自定义的 asOptionalField 工具函数,直接使用 Zod 的 optional() 方法,并明确定义表单数据类型。
将主题风格从default切换为new-york,并重构CSS变量使用OKLCH色彩空间。同时添加tailwindcss-animate插件支持。
优化多个页面头部按钮组的布局样式,增加响应式设计和flex-wrap支持
修复对话框关闭逻辑并阻止外部交互,同时禁用SWR的自动重新验证功能以提升性能。
实现基于 react-day-picker 的日历组件,并添加账单管理相关的多语言支持
为删除和禁用按钮添加text-white类名,同时调整ServerCard组件中的代码缩进格式。
调整Vite构建配置,改进第三方依赖的分组逻辑并添加UUID支持到安装命令组件
将CronPage和ServicePage的标题从"Server"分别改为"Task"和"Service",并优化NotificationGroupPage的按钮组布局。
优化登录错误提示,添加多语言支持并移除控制台错误日志。同时修复头部组件透明度样式问题。
为服务器卡片添加统一的下拉菜单操作入口,整合终端、配置和安装命令功能。
重构告警规则组件代码结构,提升渲染效率并减少内存占用。
为界面添加"Add"、"Delete"、"AdvancedJSON"和"Save"等关键操作的翻译字段,支持中英文双语显示。
重构 manualChunks 逻辑,按功能类别分组依赖项,并增加大型库的独立分包规则。
在所有确认操作的弹窗按钮中添加白色文字样式,保持视觉一致性。
根据菜单项状态动态设置下拉菜单的对齐方向和起始位置。
添加ModelOnlineUserApi接口类型,包含分页信息,并移除index.ts中重复的类型定义。
@github-actions
Copy link

github-actions bot commented Oct 1, 2025

Linting and formatting issues were automatically fixed. Please review the changes.

@naiba naiba requested review from Copilot and uubulb October 1, 2025 04:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR performs a comprehensive frontend dependency update and UI improvements, including updating all React and UI-related packages to their latest versions, fixing login error handling, and optimizing dialogs/popovers with better responsive design.

  • Updates frontend dependencies to latest versions (React 19, Tailwind CSS 4, etc.)
  • Improves login error messages with proper internationalization
  • Enhances server settings and alert rule dialogs with structured form components

Reviewed Changes

Copilot reviewed 59 out of 62 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
package.json Updates all frontend dependencies to latest versions
vite.config.ts Refactors build configuration with improved manual chunks for better performance
src/index.css Migrates to Tailwind CSS v4 with new theme configuration
src/components/ui/* Updates UI component type references from ElementRef to ComponentRef
src/components/server.tsx Adds structured public note editor with calendar and validation
src/components/alert-rule.tsx Implements structured rule editor with UI components
src/hooks/useAuth.tsx Enhances login error handling with translated messages

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

为英文和中文翻译文件添加"NoExpiry"、"SetNoExpiry"等无过期相关字段的翻译。

fix(components): 移除重复的图标按钮选项

从IconButton组件中删除重复的"more"图标选项。
为日期选择器添加下拉布局和年份范围限制,并在公共笔记区域增加下拉项生效提示文本。
@github-actions
Copy link

github-actions bot commented Oct 1, 2025

Linting and formatting issues were automatically fixed. Please review the changes.

统一按钮悬停样式并简化国际化文本调用,移除冗余的单位显示和空值判断逻辑。
删除 ServerCard 组件中与 plan.networkRoute 相关的字段验证和错误显示逻辑。
@github-actions
Copy link

github-actions bot commented Oct 1, 2025

Linting and formatting issues were automatically fixed. Please review the changes.

@naiba naiba requested a review from uubulb October 1, 2025 14:02
@naiba
Copy link
Member

naiba commented Oct 1, 2025

@uubulb review ok 吗?

@uubulb
Copy link
Contributor

uubulb commented Oct 1, 2025

@uubulb review ok 吗?

pr有点大 暂时没有时间review

- 新增Radix UI Switch组件依赖及实现
- 将IPv4/IPv6输入改为开关控件,优化用户体验
- 添加"按量付费"选项和新的翻译字段
- 改进网络路由和备注输入的占位提示
- 修复暗黑模式下的按钮背景色
@github-actions
Copy link

github-actions bot commented Oct 2, 2025

Linting and formatting issues were automatically fixed. Please review the changes.

调整日期选择器的宽度和高度限制,添加滚动容器以解决内容溢出问题
使用!!操作符简化controllerField.value的布尔值转换,使代码更简洁
为告警规则组件添加多语言支持,包括服务器监控选项、忽略提示和示例文本。同时将搜索框的占位文本替换为国际化字段。
@github-actions
Copy link

github-actions bot commented Oct 2, 2025

Linting and formatting issues were automatically fixed. Please review the changes.

@naiba
Copy link
Member

naiba commented Oct 2, 2025

Hi @Chillln 感谢做了这么多优化,准备合并了,麻烦把 pnpm-lock 和 bun lock 删除,很难 review 这种lock文件

@naiba naiba requested a review from Copilot October 2, 2025 03:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 60 out of 63 changed files in this pull request and generated 4 comments.

Comments suppressed due to low confidence (1)

src/components/ui/calendar.tsx:1

  • The useEffect hook that focuses the button when modifiers.focused is true should include modifiers.focused in its dependency array to ensure it only runs when the focus state changes, not on every render.
import { Button, buttonVariants } from "@/components/ui/button"

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Chillln
Copy link
Contributor Author

Chillln commented Oct 2, 2025

@naiba 已删除lock文件

@naiba naiba merged commit bb288c5 into nezhahq:main Oct 2, 2025
1 check passed
@naiba
Copy link
Member

naiba commented Oct 2, 2025

https://qio.ng/dashboard/

index-Bu8s1osn.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'displayName')
at index-Bu8s1osn.js:1:69890

@BigPig02
Copy link

BigPig02 commented Oct 2, 2025

更新以后 点击登陆后变成空白页了 没办法登录

@Chillln
Copy link
Contributor Author

Chillln commented Oct 2, 2025

@naiba sorry 依赖包问题

@Chillln Chillln deleted the fix-and-update branch October 2, 2025 11:23
@uubulb
Copy link
Contributor

uubulb commented Oct 7, 2025

@Chillln 你好,请问是否有时间再优化一下公开备注的代码?公开备注是可选项,目前的写法不论怎样发送表单时都会发送默认值,导致前端渲染相关信息

另外希望能同时提供直接编辑原始文本或类似能自定义字段的功能,公开备注用途是由前端自行定义的,现在把 schema 写死不是太好

refs: #140

@Chillln
Copy link
Contributor Author

Chillln commented Oct 7, 2025

@uubulb 好的 明天我看下

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.

4 participants