Skip to content

Dev#5892

Merged
KouShenhai merged 5 commits intomasterfrom
dev
Mar 18, 2026
Merged

Dev#5892
KouShenhai merged 5 commits intomasterfrom
dev

Conversation

@KouShenhai
Copy link
Owner

@KouShenhai KouShenhai commented Mar 18, 2026

Summary by Sourcery

调整登录页面布局,并从代码仓库中移除未使用的基于 Go 的 IoT 和网关模块。

Enhancements:

  • 微调登录页面样式,使用相对百分比定位登录面板,以提升布局的响应式表现。

Documentation:

  • 在主 README 中将记录的 Flyway 版本更新为 12.1.1。

Chores:

  • 删除 KCloud-Platform-IoT-Go 服务和 KEdge-Gateway-Go 模块,包括其源码、配置和测试。
Original summary in English

Summary by Sourcery

Adjust login page layout and remove unused Go-based IoT and gateway modules from the repository.

Enhancements:

  • Tweak login page styling to position the login panel using relative percentages for improved layout responsiveness.

Documentation:

  • Update documented Flyway version in the main README to 12.1.1.

Chores:

  • Delete the KCloud-Platform-IoT-Go service and KEdge-Gateway-Go modules, including their source, configuration, and tests.

Summary by CodeRabbit

  • Chores

    • Removed obsolete IoT and Gateway service modules and related configuration files to streamline codebase.
    • Updated Flyway dependency to version 12.1.1.
    • Removed unused module definitions and test files.
  • Style

    • Adjusted login page layout positioning for improved visual alignment.

@netlify
Copy link

netlify bot commented Mar 18, 2026

Deploy Preview for kcloud-platform-iot ready!

Name Link
🔨 Latest commit dfe6cc5
🔍 Latest deploy log https://app.netlify.com/projects/kcloud-platform-iot/deploys/69ba2be8fda4b30008d0d990
😎 Deploy Preview https://deploy-preview-5892--kcloud-platform-iot.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sourcery-ai
Copy link

sourcery-ai bot commented Mar 18, 2026

审阅者指南(在小型 PR 上折叠)

审阅者指南

此 PR 调整了登录页面的布局以获得更好的相对定位,更新了文档中记录的 Flyway 依赖版本,并从仓库中移除了若干基于 Go 的物联网(IoT)和边缘网关模块及其相关文件。

文件级变更

变更 详情 文件
将登录页面容器定位从固定像素布局调整为相对布局。
  • 将登录容器的固定像素左外边距替换为基于百分比的外边距
  • 将垂直位移从较大的固定像素偏移改为基于百分比的 transform,以提升响应式表现
laokou-service/laokou-auth/laokou-auth-start/src/main/resources/templates/login.html
更新项目文档中记录的 Flyway 版本。
  • 将主 README 中的 Flyway 版本从 12.1.0 修改为 12.1.1,以反映当前依赖
README.md
移除 Go IoT 服务和 KEdge Gateway Go 模块及其相关的源码、配置和文档文件。
  • 删除 KCloud-Platform-IoT-Go IoT 服务模块,包括 adapter、app、core、domain、infrastructure、main 以及 go.mod 文件
  • 删除 KEdge-Gateway-Go 模块,包括核心逻辑、配置、加密、网络、与 SQLite 相关的测试,以及 go.mod
  • 移除 KEdge-Gateway-Go 的 README 和 Docker/SQLite 文档文件
KCloud-Platform-IoT-Go/service/iot/adapter/adapter.go
KCloud-Platform-IoT-Go/service/iot/app/app.go
KCloud-Platform-IoT-Go/service/iot/core/http.go
KCloud-Platform-IoT-Go/service/iot/core/mqtt.go
KCloud-Platform-IoT-Go/service/iot/domain/domain.go
KCloud-Platform-IoT-Go/service/iot/go.mod
KCloud-Platform-IoT-Go/service/iot/infrastructure/infrastructure.go
KCloud-Platform-IoT-Go/service/iot/main.go
KEdge-Gateway-Go/README.md
KEdge-Gateway-Go/core/Docker\351\203\250\347\275\262SQLite.md
KEdge-Gateway-Go/core/aes.go
KEdge-Gateway-Go/core/aes_test.go
KEdge-Gateway-Go/core/application.yaml
KEdge-Gateway-Go/core/config.go
KEdge-Gateway-Go/core/log.go
KEdge-Gateway-Go/core/log_test.go
KEdge-Gateway-Go/core/net.go
KEdge-Gateway-Go/core/net_test.go
KEdge-Gateway-Go/core/sqlite_test.go
KEdge-Gateway-Go/go.mod

提示与命令

与 Sourcery 交互

  • 触发新的审阅: 在 pull request 中评论 @sourcery-ai review
  • 继续讨论: 直接回复 Sourcery 的审阅评论。
  • 从审阅评论生成 GitHub Issue: 在某条审阅评论下回复,要求 Sourcery 从该评论创建一个 issue。你也可以直接回复该评论 @sourcery-ai issue 来从中创建 issue。
  • 生成 pull request 标题: 在 pull request 标题的任意位置写上 @sourcery-ai,即可随时生成标题。你也可以在 pull request 中评论 @sourcery-ai title 来(重新)生成标题。
  • 生成 pull request 摘要: 在 pull request 正文的任意位置写上 @sourcery-ai summary,即可在你想要的位置生成 PR 摘要。你也可以在 pull request 中评论 @sourcery-ai summary 来(重新)生成摘要。
  • 生成审阅者指南: 在 pull request 中评论 @sourcery-ai guide,即可随时(重新)生成审阅者指南。
  • 解决所有 Sourcery 评论: 在 pull request 中评论 @sourcery-ai resolve,即可将所有 Sourcery 评论标记为已解决。如果你已经处理完所有评论且不想再看到它们,这会很有用。
  • 忽略所有 Sourcery 审阅: 在 pull request 中评论 @sourcery-ai dismiss,即可忽略所有现有的 Sourcery 审阅。如果你想从一次全新的审阅开始,这尤其有用——别忘了再评论 @sourcery-ai review 来触发新的审阅!

自定义你的使用体验

访问你的 控制台 以:

  • 启用或禁用审阅功能,例如 Sourcery 生成的 pull request 摘要、审阅者指南等。
  • 修改审阅语言。
  • 添加、删除或编辑自定义审阅说明。
  • 调整其他审阅设置。

获取帮助

Original review guide in English
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR adjusts the login page layout for better relative positioning, updates the documented Flyway dependency version, and removes several Go-based IoT and edge gateway modules and their related files from the repository.

File-Level Changes

Change Details Files
Adjust login page container positioning to be relative rather than fixed pixel-based layout.
  • Replace fixed pixel left margin with percentage-based margin for the login container
  • Change vertical translation from a large fixed pixel offset to a percentage-based transform for improved responsiveness
laokou-service/laokou-auth/laokou-auth-start/src/main/resources/templates/login.html
Update documented Flyway version in project documentation.
  • Change Flyway version in the main README from 12.1.0 to 12.1.1 to reflect the current dependency
README.md
Remove Go IoT service and KEdge Gateway Go modules and their associated source, configuration, and documentation files.
  • Delete KCloud-Platform-IoT-Go IoT service module including adapter, app, core, domain, infrastructure, main, and go.mod files
  • Delete KEdge-Gateway-Go module including core logic, configuration, crypto, networking, SQLite-related tests, and go.mod
  • Remove KEdge-Gateway-Go README and Docker/SQLite documentation file
KCloud-Platform-IoT-Go/service/iot/adapter/adapter.go
KCloud-Platform-IoT-Go/service/iot/app/app.go
KCloud-Platform-IoT-Go/service/iot/core/http.go
KCloud-Platform-IoT-Go/service/iot/core/mqtt.go
KCloud-Platform-IoT-Go/service/iot/domain/domain.go
KCloud-Platform-IoT-Go/service/iot/go.mod
KCloud-Platform-IoT-Go/service/iot/infrastructure/infrastructure.go
KCloud-Platform-IoT-Go/service/iot/main.go
KEdge-Gateway-Go/README.md
KEdge-Gateway-Go/core/Docker\351\203\250\347\275\262SQLite.md
KEdge-Gateway-Go/core/aes.go
KEdge-Gateway-Go/core/aes_test.go
KEdge-Gateway-Go/core/application.yaml
KEdge-Gateway-Go/core/config.go
KEdge-Gateway-Go/core/log.go
KEdge-Gateway-Go/core/log_test.go
KEdge-Gateway-Go/core/net.go
KEdge-Gateway-Go/core/net_test.go
KEdge-Gateway-Go/core/sqlite_test.go
KEdge-Gateway-Go/go.mod

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai
Copy link

coderabbitai bot commented Mar 18, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 0a5213e5-eb51-4c9a-a093-74e619240f01

📥 Commits

Reviewing files that changed from the base of the PR and between cc05b29 and dfe6cc5.

📒 Files selected for processing (23)
  • KCloud-Platform-IoT-Go/service/iot/adapter/adapter.go
  • KCloud-Platform-IoT-Go/service/iot/app/app.go
  • KCloud-Platform-IoT-Go/service/iot/core/http.go
  • KCloud-Platform-IoT-Go/service/iot/core/mqtt.go
  • KCloud-Platform-IoT-Go/service/iot/domain/domain.go
  • KCloud-Platform-IoT-Go/service/iot/go.mod
  • KCloud-Platform-IoT-Go/service/iot/infrastructure/infrastructure.go
  • KCloud-Platform-IoT-Go/service/iot/main.go
  • KEdge-Gateway-Go/README.md
  • KEdge-Gateway-Go/core/Docker部署SQLite.md
  • KEdge-Gateway-Go/core/aes.go
  • KEdge-Gateway-Go/core/aes_test.go
  • KEdge-Gateway-Go/core/application.yaml
  • KEdge-Gateway-Go/core/config.go
  • KEdge-Gateway-Go/core/log.go
  • KEdge-Gateway-Go/core/log_test.go
  • KEdge-Gateway-Go/core/net.go
  • KEdge-Gateway-Go/core/net_test.go
  • KEdge-Gateway-Go/core/sqlite_test.go
  • KEdge-Gateway-Go/go.mod
  • README.adoc
  • README.md
  • laokou-service/laokou-auth/laokou-auth-start/src/main/resources/templates/login.html

Walkthrough

This PR removes multiple entire modules and application packages from the IoT and Gateway services, including core utilities (HTTP, MQTT, AES encryption, network configuration), logging infrastructure, and configuration management. Minor version bumps for Flyway and a styling adjustment to the login page are also included.

Changes

Cohort / File(s) Summary
IoT Service Module Complete Removal
KCloud-Platform-IoT-Go/service/iot/adapter/adapter.go, KCloud-Platform-IoT-Go/service/iot/app/app.go, KCloud-Platform-IoT-Go/service/iot/domain/domain.go, KCloud-Platform-IoT-Go/service/iot/infrastructure/infrastructure.go, KCloud-Platform-IoT-Go/service/iot/main.go
Entire IoT service package structure removed; includes adapter, app, domain, and infrastructure layers.
IoT Core Utilities Removal
KCloud-Platform-IoT-Go/service/iot/core/http.go, KCloud-Platform-IoT-Go/service/iot/core/mqtt.go
HTTP client utilities (SendRequest, GetFormFile, SendRequestAndGetBody) and complete MQTT wrapper implementation with client lifecycle management, subscription, and publishing functionality removed. Note: These are critical external-facing integrations; verify no dependent code remains.
IoT Module Manifest
KCloud-Platform-IoT-Go/service/iot/go.mod
Go module declaration and all direct/indirect dependencies removed; eliminates entire IoT service module definition.
Gateway Cryptography Module
KEdge-Gateway-Go/core/aes.go, KEdge-Gateway-Go/core/aes_test.go
AES-GCM encryption and decryption functions with symmetric key operations removed.
Gateway Network Configuration System
KEdge-Gateway-Go/core/net.go, KEdge-Gateway-Go/core/net_test.go
Extensive netplan-based network configuration system for Linux removed, including DHCP/static IP setup, MAC address management, and gateway/DNS configuration. Note: This represents substantial infrastructure functionality; confirm no active usage.
Gateway Logging & Configuration Infrastructure
KEdge-Gateway-Go/core/log.go, KEdge-Gateway-Go/core/config.go, KEdge-Gateway-Go/core/application.yaml, KEdge-Gateway-Go/core/log_test.go
Logging configuration (LogConfig, InitLogger), system configuration loading (GetSystemConfig), application YAML schema, and associated test coverage removed.
Gateway Module Manifest
KEdge-Gateway-Go/go.mod
Go module definition for "network" module and all dependency declarations removed.
Test Files & Documentation
KEdge-Gateway-Go/core/sqlite_test.go, KEdge-Gateway-Go/README.md, KEdge-Gateway-Go/core/Docker部署SQLite.md
SQLite integration tests, Go dependency management documentation, and Docker deployment guide removed.
Version Updates
README.adoc, README.md
Flyway version bumped from 12.1.0 to 12.1.1 in archived and main component tables.
UI Styling Adjustment
laokou-service/laokou-auth/laokou-auth-start/src/main/resources/templates/login.html
Login container repositioning: margin-left changed from 1100px to 65%, vertical offset (translateY) changed from 300px to 60%.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~50 minutes

Possibly related PRs

  • PR #5656: Removes deployment configuration (docker-compose-dev.yml); indicates broader infrastructure and service deprecation/consolidation effort.

Suggested labels

Review effort 3/5, Possible security concern

Poem

🐰 The warren clears with steady paws,
Old modules fade—no more, because—
We hop to heights where code is lean,
With MQTT and configs cleaned,
A fresher path, a lighter way! ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev
📝 Coding Plan
  • Generate coding plan for human review comments

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 and usage tips.

Tip

You can generate walkthrough in a markdown collapsible section to save space.

Enable the reviews.collapse_walkthrough setting to generate walkthrough in a markdown collapsible section.

@qodo-code-review
Copy link

Review Summary by Qodo

Remove Go code and fix login page responsive design

✨ Enhancement 📦 Other

Grey Divider

Walkthroughs

Description
• Remove Go-related code from main project to separate repository
• Fix login page responsive design with percentage-based positioning
• Update Flyway dependency version from 12.1.0 to 12.1.1
• Delete Go modules and configuration files for IoT and Gateway services
Diagram
flowchart LR
  A["Go Code Removal"] --> B["KCloud-Platform-IoT-Go"]
  A --> C["KEdge-Gateway-Go"]
  D["Login Page Fix"] --> E["Responsive Design Update"]
  F["Dependency Update"] --> G["Flyway 12.1.1"]
Loading

Grey Divider

File Changes

1. laokou-service/laokou-auth/laokou-auth-start/src/main/resources/templates/login.html 🐞 Bug fix +2/-2

Fix login page responsive layout positioning

laokou-service/laokou-auth/laokou-auth-start/src/main/resources/templates/login.html


2. KCloud-Platform-IoT-Go/service/iot/adapter/adapter.go Miscellaneous +0/-18

Remove Go adapter package file

KCloud-Platform-IoT-Go/service/iot/adapter/adapter.go


3. KCloud-Platform-IoT-Go/service/iot/app/app.go Miscellaneous +0/-18

Remove Go app package file

KCloud-Platform-IoT-Go/service/iot/app/app.go


View more (20)
4. KCloud-Platform-IoT-Go/service/iot/core/http.go Miscellaneous +0/-84

Remove HTTP utility functions for Go

KCloud-Platform-IoT-Go/service/iot/core/http.go


5. KCloud-Platform-IoT-Go/service/iot/core/mqtt.go Miscellaneous +0/-105

Remove MQTT client implementation for Go

KCloud-Platform-IoT-Go/service/iot/core/mqtt.go


6. KCloud-Platform-IoT-Go/service/iot/domain/domain.go Miscellaneous +0/-18

Remove Go domain package file

KCloud-Platform-IoT-Go/service/iot/domain/domain.go


7. KCloud-Platform-IoT-Go/service/iot/infrastructure/infrastructure.go Miscellaneous +0/-18

Remove Go infrastructure package file

KCloud-Platform-IoT-Go/service/iot/infrastructure/infrastructure.go


8. KCloud-Platform-IoT-Go/service/iot/main.go Miscellaneous +0/-18

Remove Go main package file

KCloud-Platform-IoT-Go/service/iot/main.go


9. KEdge-Gateway-Go/core/aes.go Miscellaneous +0/-63

Remove AES encryption utility functions

KEdge-Gateway-Go/core/aes.go


10. KEdge-Gateway-Go/core/aes_test.go Miscellaneous +0/-19

Remove AES encryption test file

KEdge-Gateway-Go/core/aes_test.go


11. KEdge-Gateway-Go/core/config.go Miscellaneous +0/-41

Remove system configuration utility functions

KEdge-Gateway-Go/core/config.go


12. KEdge-Gateway-Go/core/log.go Miscellaneous +0/-107

Remove logging configuration and initialization

KEdge-Gateway-Go/core/log.go


13. KEdge-Gateway-Go/core/log_test.go Miscellaneous +0/-39

Remove logging test file

KEdge-Gateway-Go/core/log_test.go


14. KEdge-Gateway-Go/core/net.go Miscellaneous +0/-354

Remove network configuration management functions

KEdge-Gateway-Go/core/net.go


15. KEdge-Gateway-Go/core/net_test.go Miscellaneous +0/-78

Remove network configuration test file

KEdge-Gateway-Go/core/net_test.go


16. KEdge-Gateway-Go/core/sqlite_test.go Miscellaneous +0/-48

Remove SQLite database test file

KEdge-Gateway-Go/core/sqlite_test.go


17. KCloud-Platform-IoT-Go/service/iot/go.mod Dependencies +0/-15

Remove Go module definition file

KCloud-Platform-IoT-Go/service/iot/go.mod


18. KEdge-Gateway-Go/README.md 📝 Documentation +0/-20

Remove Go build instructions documentation

KEdge-Gateway-Go/README.md


19. KEdge-Gateway-Go/core/Docker部署SQLite.md 📝 Documentation +0/-4

Remove Docker SQLite deployment guide

KEdge-Gateway-Go/core/Docker部署SQLite.md


20. KEdge-Gateway-Go/core/application.yaml ⚙️ Configuration changes +0/-47

Remove application configuration file

KEdge-Gateway-Go/core/application.yaml


21. KEdge-Gateway-Go/go.mod Dependencies +0/-38

Remove Go module definition file

KEdge-Gateway-Go/go.mod


22. README.adoc 📝 Documentation +1/-1

Update Flyway version to 12.1.1

README.adoc


23. README.md 📝 Documentation +1/-1

Update Flyway version to 12.1.1

README.md


Grey Divider

Qodo Logo

@qodo-code-review
Copy link

qodo-code-review bot commented Mar 18, 2026

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Action required

1. Login form offscreen 🐞 Bug ✓ Correctness
Description
login.html sets .container { margin-left: 65% } while keeping a fixed max width (420px), which
pushes the login form past the right edge for any viewport narrower than ~1200px. Because body
also sets overflow-x: hidden, the overflow is clipped and parts of the login form become
inaccessible.
Code

laokou-service/laokou-auth/laokou-auth-start/src/main/resources/templates/login.html[R24-25]

+            margin-left: 65%;
+            transform: translateY(60%);
Evidence
The container width can be up to 420px while its left margin is 65% of the containing block width
(here, the .container is a direct child of body, so the containing block is the page/viewport).
For any width W < 1200px, 0.65*W + 420 > W, so the element extends beyond the right edge;
overflow-x: hidden then hides the overflowed portion.

laokou-service/laokou-auth/laokou-auth-start/src/main/resources/templates/login.html[12-26]
laokou-service/laokou-auth/laokou-auth-start/src/main/resources/templates/login.html[86-88]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The login form container is positioned using `margin-left: 65%` while it can still be up to 420px wide. This causes horizontal overflow for many viewport widths, and since `body` uses `overflow-x: hidden`, the form is clipped.

## Issue Context
This is the auth server HTML login page template.

## Fix Focus Areas
- laokou-service/laokou-auth/laokou-auth-start/src/main/resources/templates/login.html[12-26]

## Suggested direction
- Prefer a non-overflowing alignment strategy, for example:
 - Make `body` (or a wrapper) `display: flex; justify-content: flex-end; align-items: center;` and set `.container { margin: 0 32px 0 0; transform: none; }`
 - Or use `position: absolute; right: 32px; top: 50%; transform: translateY(-50%);` (ensuring a suitable positioned ancestor).
- Verify on widths like 375px, 768px, 1024px, 1366px that the entire form remains visible and usable.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@KouShenhai KouShenhai merged commit 123f48c into master Mar 18, 2026
14 of 16 checks passed
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - 我在这里给出了一些总体反馈:

  • 删除 KCloud-Platform-IoT-GoKEdge-Gateway-Go 目录是一个比较重大的变更;建议说明这些模块是已经废弃还是迁移到了其他位置,以避免给仓库的使用者造成困惑。
  • 登录表单目前通过同时使用 margin-left: 65%transform: translateY(60%) 来定位,在不同屏幕尺寸下可能会表现不一致;建议使用更健壮的布局方式(例如 flexbox 或 grid)来实现居中和响应式布局。
给 AI Agents 的提示
Please address the comments from this code review:

## Overall Comments
- The removal of the KCloud-Platform-IoT-Go and KEdge-Gateway-Go directories is substantial; consider clarifying whether these modules are deprecated or moved elsewhere to avoid confusion for consumers of the repo.
- The login form’s positioning using a combination of `margin-left: 65%` and `transform: translateY(60%)` may behave inconsistently across different screen sizes; consider using a more robust layout approach (e.g., flexbox or grid) for centering and responsiveness.

Sourcery 对开源项目是免费的——如果你觉得这些 review 有帮助,欢迎分享 ✨
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续的 review。
Original comment in English

Hey - I've left some high level feedback:

  • The removal of the KCloud-Platform-IoT-Go and KEdge-Gateway-Go directories is substantial; consider clarifying whether these modules are deprecated or moved elsewhere to avoid confusion for consumers of the repo.
  • The login form’s positioning using a combination of margin-left: 65% and transform: translateY(60%) may behave inconsistently across different screen sizes; consider using a more robust layout approach (e.g., flexbox or grid) for centering and responsiveness.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The removal of the KCloud-Platform-IoT-Go and KEdge-Gateway-Go directories is substantial; consider clarifying whether these modules are deprecated or moved elsewhere to avoid confusion for consumers of the repo.
- The login form’s positioning using a combination of `margin-left: 65%` and `transform: translateY(60%)` may behave inconsistently across different screen sizes; consider using a more robust layout approach (e.g., flexbox or grid) for centering and responsiveness.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment on lines +24 to +25
margin-left: 65%;
transform: translateY(60%);

Choose a reason for hiding this comment

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

Action required

1. Login form offscreen 🐞 Bug ✓ Correctness

login.html sets .container { margin-left: 65% } while keeping a fixed max width (420px), which
pushes the login form past the right edge for any viewport narrower than ~1200px. Because body
also sets overflow-x: hidden, the overflow is clipped and parts of the login form become
inaccessible.
Agent Prompt
## Issue description
The login form container is positioned using `margin-left: 65%` while it can still be up to 420px wide. This causes horizontal overflow for many viewport widths, and since `body` uses `overflow-x: hidden`, the form is clipped.

## Issue Context
This is the auth server HTML login page template.

## Fix Focus Areas
- laokou-service/laokou-auth/laokou-auth-start/src/main/resources/templates/login.html[12-26]

## Suggested direction
- Prefer a non-overflowing alignment strategy, for example:
  - Make `body` (or a wrapper) `display: flex; justify-content: flex-end; align-items: center;` and set `.container { margin: 0 32px 0 0; transform: none; }`
  - Or use `position: absolute; right: 32px; top: 50%; transform: translateY(-50%);` (ensuring a suitable positioned ancestor).
- Verify on widths like 375px, 768px, 1024px, 1366px that the entire form remains visible and usable.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.33%. Comparing base (cc05b29) to head (dfe6cc5).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #5892   +/-   ##
=========================================
  Coverage     58.33%   58.33%           
  Complexity     1146     1146           
=========================================
  Files           270      270           
  Lines          5364     5364           
  Branches        339      339           
=========================================
  Hits           3129     3129           
  Misses         2059     2059           
  Partials        176      176           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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