Revert "refactor: move dockiteminfo to shared frame library"#1557
Conversation
This reverts commit 154a3a2.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR reverts the prior refactor that moved dockiteminfo into the shared frame library by moving the implementation back under panels/dock and re‑wiring all CMake targets and includes accordingly, along with narrowing several SPDX copyright year ranges. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In
multitaskview.hthe#include "../dockiteminfo.h"relative path makes the header fragile to directory moves; consider adjusting the include directories in CMake and using a project-level include path instead. - The same
dockiteminfo.cpp/.hpair is now compiled into multiple libraries (dock, appruntimeitem, multitaskview, tray); if this sharing is intentional, consider extracting them into a small dedicated library to avoid duplicate compilation and potential ODR issues. - CMake usage for
dockiteminfo.*mixes${CMAKE_SOURCE_DIR}/panels/dock/...with relative paths like../dockiteminfo.cpp; it would be clearer and less error-prone to standardize on a single style for referencing these sources.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In `multitaskview.h` the `#include "../dockiteminfo.h"` relative path makes the header fragile to directory moves; consider adjusting the include directories in CMake and using a project-level include path instead.
- The same `dockiteminfo.cpp`/`.h` pair is now compiled into multiple libraries (dock, appruntimeitem, multitaskview, tray); if this sharing is intentional, consider extracting them into a small dedicated library to avoid duplicate compilation and potential ODR issues.
- CMake usage for `dockiteminfo.*` mixes `${CMAKE_SOURCE_DIR}/panels/dock/...` with relative paths like `../dockiteminfo.cpp`; it would be clearer and less error-prone to standardize on a single style for referencing these sources.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
deepin pr auto review这份 Git diff 展示了一次代码重构,主要目的是将 以下是对该变更的详细审查意见: 1. 语法逻辑与构建配置
2. 代码质量
3. 代码性能
4. 代码安全
总结建议这次重构的主要逻辑是合理的(将文件移至更合适的目录),但在实现细节上有优化空间:
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy, wjyrich The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/forcemerge |
|
This pr force merged! (status: blocked) |
This reverts commit 154a3a2.
Summary by Sourcery
Revert the migration of dockiteminfo into the shared frame library by relocating it back into the dock panel modules and updating build configuration and includes accordingly.
Enhancements:
Build:
Chores: