You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .docs/inspector/README.md
+27-15Lines changed: 27 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,35 @@ Scope: `fix(inspector)`
6
6
7
7
Toggling inspector pane (right panel) trong cửa sổ nhỏ gây nội dung tràn ra ngoài frame. Ba pane có tổng `minimumThickness` (~954pt) vượt `window.minSize.width` (720pt).
8
8
9
-
## Fix
10
-
11
-
`MainSplitViewController` recompute `window.minSize.width` động mỗi khi pane visibility thay đổi. Nếu cửa sổ đang nhỏ hơn min mới, cửa sổ tự expand.
9
+
> **Reconcile 2026-06-09 (verified vs PR thật).** PR đã PIVOT. Commit `58cd1102`
10
+
> ("refactor(inspector): grow the window via NSSplitViewItem.collapseBehavior instead of
11
+
> custom min-size code") **bỏ hẳn** toàn bộ cơ chế recompute: xóa `recomputeWindowMinSize()`,
12
+
> xóa override `splitViewDidResizeSubviews`, không còn `PaneMinimum`/`resolvedContentMinSize`/
13
+
> `originalContentMinSize`, và **không còn** test `MainSplitViewControllerWindowMinimumSizeTests`.
14
+
> Cách cuối: set `inspectorSplitItem.collapseBehavior = .preferResizingSplitViewWithFixedSiblings`
15
+
> để AppKit tự nới window khi inspector bật. Floor 720×480 vẫn nằm tĩnh ở `TabWindowController`.
16
+
> Toàn bộ kế hoạch "GỘP vào recomputeWindowMinSize" + ADR-006/007/010 bên dưới là **moot**
17
+
> (xem `decisions.md` ADR-011).
18
+
>
19
+
> Conflict đã resolve (merge `upstream/main` vào `fix/inspector`, commit local `69e3555e`):
20
+
> hết conflict, net diff vs main = chỉ `MainSplitViewController.swift` (collapseBehavior) + 1
21
+
> dòng `CHANGELOG.md`. 3 fix kèm theo (mcp/connections/editor) bị bản trên main (#1587) thay hết.
22
+
> **Push đang chờ**: bị GitHub chặn vì commit mang email `longnn@senprints.com` (account bật
23
+
> block push lộ email). Build/lint **chưa verify cục bộ** (máy không có Xcode/swiftlint) → CI là cổng.
24
+
25
+
## Fix (cách cuối — collapseBehavior)
26
+
27
+
`inspectorSplitItem.collapseBehavior = .preferResizingSplitViewWithFixedSiblings`: khi inspector
28
+
bật, AppKit nới window thay vì ép detail pane co lại. Bỏ toàn bộ code recompute `window.minSize`
29
+
thủ công. Floor cố định 720×480 vẫn do `TabWindowController` set.
|`TablePro/Core/Services/Infrastructure/TabWindowController.swift`|`window.minSize` baseline 720×480 (`:75`) — floor tĩnh duy nhất sau khi bỏ recompute|
Copy file name to clipboardExpand all lines: .docs/inspector/brief.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Inspector pane overflow — brief
2
2
3
+
> **Reconcile 2026-06-09.** Cách fix cuối của PR đã đổi sang native `NSSplitViewItem.collapseBehavior`
4
+
> (commit `58cd1102`), **bỏ hẳn** mọi thứ về `recomputeWindowMinSize`/`PaneMinimum`/
5
+
> `resolvedContentMinSize`/`originalContentMinSize` và geometry test. Mục "Open fork PR #1463",
6
+
> "Kết quả", và bảng pane-sum bên dưới mô tả cách CŨ, nay **superseded**. Floor 720×480 vẫn tĩnh ở
7
+
> `TabWindowController:75`. Chi tiết: `README.md`, `decisions.md` ADR-011, `tasks.md`.
8
+
3
9
## Vấn đề
4
10
5
11
Khi user toggle inspector pane (panel bên phải) trong một cửa sổ hẹp (~720pt), nội dung và toolbar bị tràn ra ngoài viền window. AppKit cố gắng fit 954pt content vào 720pt frame.
Copy file name to clipboardExpand all lines: .docs/inspector/changelog.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,18 @@
1
1
# inspector — changelog
2
2
3
+
## 2026-06-09 — PR pivot sang collapseBehavior + conflict resolved
4
+
5
+
| Date | Event |
6
+
|---|---|
7
+
|~2026-06 | PR pivot: commit `58cd1102` ("refactor(inspector): grow the window via NSSplitViewItem.collapseBehavior instead of custom min-size code") **xóa hẳn**`recomputeWindowMinSize()`, override `splitViewDidResizeSubviews`, `PaneMinimum`/`resolvedContentMinSize`/`originalContentMinSize`, và test `MainSplitViewControllerWindowMinimumSizeTests`. Thay bằng `inspectorSplitItem.collapseBehavior = .preferResizingSplitViewWithFixedSiblings` + helper `setCollapsed(_:for:)`. |
8
+
| 2026-06-09 | Resolve conflict: merge `upstream/main` vào `fix/inspector` (commit local `69e3555e`). Hết conflict. 3 conflict file: `SQLContextAnalyzer.swift` + `PasswordSourceResolver.swift` lấy bản main (bị #1581/#1587/#1601 thay), `CHANGELOG.md` giữ wording main + chèn lại dòng inspector. Net diff vs main = `MainSplitViewController.swift` (collapseBehavior) + 1 dòng CHANGELOG. |
9
+
| 2026-06-09 | Cập nhật PR description cho khớp collapseBehavior (bỏ mô tả recomputeWindowMinimumSize + test cũ). |
10
+
| 2026-06-09 | Push **chưa xong**: GitHub chặn vì commit mang email `longnn@senprints.com` (account bật block push lộ email). Build/lint chưa verify cục bộ (không có Xcode/swiftlint) → CI là cổng. |
11
+
12
+
> Supersede note: toàn bộ timeline 2026-05-25/28/30 bên dưới dựa trên cách `recomputeWindowMinSize`
13
+
> (recompute `window.minSize` thủ công). PR đã pivot sang collapseBehavior nên các fix đó **moot**.
0 commit comments