[PR #6672] [MERGED] fix(clients): balance renewal form layout and mode guidance #6402

Closed
opened 2026-11-02 04:08:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6672
Author: @JacktheRanger
Created: 9/28/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @MHSanaei

Base: main ← Head: fix/client-renewal-form-layout


📝 Commits (5)

  • 033716f fix(clients): balance renewal form layout and mode guidance
  • ea36591 chore(clients): merge main and resolve renewal locale conflicts
  • 02539e8 refactor(clients): drop the renewal CSS that #6662 made redundant
  • ce256bf Merge branch 'main' into fix/client-renewal-form-layout
  • 0d77be5 test(tuic): wait for downstream association activity refresh

📊 Changes

19 files changed (+226 additions, -117 deletions)

View changed files

📝 docs/content/docs/en/config/clients.mdx (+6 -0)
📝 docs/content/docs/zh/config/clients.mdx (+5 -0)
📝 frontend/src/pages/clients/ClientFormModal.tsx (+13 -14)
📝 frontend/src/pages/clients/ClientRenewalFields.tsx (+81 -59)
➕ frontend/src/test/client-renewal-help.test.tsx (+42 -0)
📝 internal/tuic/stream_udp_lifecycle_test.go (+14 -5)
📝 internal/web/translation/ar-EG.json (+5 -3)
📝 internal/web/translation/en-US.json (+5 -3)
📝 internal/web/translation/es-ES.json (+5 -3)
📝 internal/web/translation/fa-IR.json (+5 -3)
📝 internal/web/translation/id-ID.json (+5 -3)
📝 internal/web/translation/ja-JP.json (+5 -3)
📝 internal/web/translation/pt-BR.json (+5 -3)
📝 internal/web/translation/ru-RU.json (+5 -3)
📝 internal/web/translation/tr-TR.json (+5 -3)
📝 internal/web/translation/uk-UA.json (+5 -3)
📝 internal/web/translation/vi-VN.json (+5 -3)
📝 internal/web/translation/zh-CN.json (+5 -3)
📝 internal/web/translation/zh-TW.json (+5 -3)

📄 Description

Motivation

The client editor currently places Traffic Reset beside the entire auto-renewal block in two half-width columns (introduced by a33b2341e9). When renewal is enabled, the right column contains several fields, help and a preview while the left often contains just one selector. This leaves a large blank area and pushes subsequent fields down.

The same block also shows calendar/month-end guidance for fixed-day intervals and weekly schedules, even though those modes do not share monthly boundaries.

Changes

  • Give auto-renewal its own full-width area. On desktop, the mode, its active parameter and the renewal limit share three equal columns; below the existing md breakpoint, they stack. Help and the preview use the width below the controls.
  • Keep independent traffic reset in a separate row, with its monthly reset day alongside the selector when applicable. Do not change its behavior or defaults.
  • Preserve the bulk-create form's existing stacked, horizontally labelled fields instead of compressing them into thirds.
  • Reuse the full-width preview and wrapping first-cutoff button styles already merged in #6662. The maintainer removed this PR's redundant CSS file and wrapper in 02539e84; those changes are preserved.
  • Show fixed 24-hour-day guidance for interval mode, calendar guidance for weekly/monthly modes, and the day-1/month-end note only for monthly mode. Disabled mode shows none of these hints. The independent-reset warning remains available for every enabled mode.
  • Update all 13 locales and the English/Chinese client guides. Remove obsolete instructions to enter zero in the positive-only interval/day inputs; changing modes is handled by the mode selector.
  • Add a regression test that switches modes through the real ClientFormModal and checks both appearing and disappearing guidance. No markup snapshots or CSS-class assertions are used as substitutes for browser layout validation.

This follows the existing Ant Design/RHF conventions in frontend/CLAUDE.md, the root CLAUDE.md test-first/local-gate rules, and the schedule semantics documented in docs/content/docs/en/config/clients.mdx.

Upstream sync (2026-10-07)

Merged upstream main at f21721224757062066597a84e3137fadfde70c73 into the existing PR branch without rewriting its history. The only manual conflicts were in the 13 locale files: upstream's native TUIC support removed the obsolete pages.clients.tuicTotalGBDesc key beside this PR's new renewal descriptions. The resolution keeps that deletion and both renewal descriptions in every locale. It does not restore the old TUIC limitation.

The client form, #6662 preview changes and client guides merged automatically and were reviewed together. At that merge, comparing the added/deleted lines of all 19 PR files against the original patch confirmed that the original edits were preserved on top of the new base. Each locale differs from current main only in the original four intended renewal keys; other upstream strings are preserved.

CI follow-up (2026-10-08)

The race job on head ce256bf0 failed in TestDownstreamUDPResponseRefreshesAssociationIdleTime, not with a race-detector report. Receiving a QUIC datagram does not synchronize with the sender's subsequent associations.touch call. The test could therefore read the old timestamp even though the response had arrived successfully.

The follow-up changes only internal/tuic/stream_udp_lifecycle_test.go: poll the mutex-protected timestamp until it advances, with a one-second deadline, before exercising idle reaping. Keep the exact payload, association ID, idle-survival and relay-shutdown assertions. Missing activity updates still fail. No production code, network timeout, dependency or CI configuration is changed, and no check is disabled.

Not included

  • No production backend, API, schema, database, scheduler, traffic-reset or saved-value changes. Choosing a mode still does not change an existing expiry; the first-cutoff action remains explicit.
  • No additional renewal-date formatting, timezone-label or estimate-wording changes. #6662 is now merged upstream; its preview markup, date formatting and labels are preserved alongside this PR's renewal-field layout.
  • No general redesign of the client/bulk dialogs, CI changes, dependency updates or production-panel configuration changes.

Known costs

  • The independent reset selector may leave the other half of its single row empty when no reset-day input is needed; it no longer inherits the height of the entire renewal block.
  • Mobile forms still require vertical scrolling. The bulk modal retains its existing scrolling and label layout.
  • Chromium geometry checks used local synthetic API responses to exercise full add/edit/bulk dialogs. They verify rendering, not a live backend renewal execution; no production client details are used in screenshots or fixtures.
  • The layout check is a local QA harness, not a new CI job. The committed mode-guidance regression runs in the existing component test project.

Validation

After the CI test fix (2026-10-08)

Validated on macOS arm64 with Go 1.27.1, Node 26.4.0, golangci-lint 2.14.0 and the existing upstream lockfiles. Go commands used PATH=/tmp/three-x-ui-conflict.Y0D4lY/go/bin:$PATH and GODEBUG=tlsmlkem=0,http2client=0.

  • go test -race -shuffle=1791424023316329240 -count=1 -timeout=3m ./internal/tuic — passed using the failing CI package's shuffle seed.
  • make race — passed across the full local package list, with uncached shuffled race-enabled tests. Environment-gated PostgreSQL, master/node and other opt-in integration paths were not enabled locally.
  • go test -race -run '^TestDownstreamUDPResponseRefreshesAssociationIdleTime$' -count=200 -timeout=2m ./internal/tuic — passed on the final unmodified production code.
  • Controlled scheduling reproduction: temporarily insert a 20 ms delay immediately before the production activity update. The original test failed with the same timestamp assertion using go test -race -run '^TestDownstreamUDPResponseRefreshesAssociationIdleTime$' -count=1 -timeout=30s ./internal/tuic; the fixed test passed 50 repetitions using -count=50 -timeout=2m. Temporarily removing the activity update entirely made the fixed test fail within its deadline with the same -count=1 -timeout=30s command. All temporary production edits were removed before final validation.
  • Stress limitation: go test -race -run '^TestDownstreamUDPResponseRefreshesAssociationIdleTime$' -count=1000 -timeout=3m ./internal/tuic was not fully green: one iteration timed out during QUIC connection setup, before the activity assertion. No activity-refresh assertion failed in that run. The subsequent 200-repetition run above passed; this is not a claim that the unrelated connection-setup timeout was fixed.
  • PATH=/tmp/three-x-ui-conflict.Y0D4lY/go/bin:/tmp/three-x-ui-conflict.Y0D4lY/golangci-lint-2.14.0-darwin-arm64:$PATH GODEBUG=tlsmlkem=0,http2client=0 CI=true make verify — generated-file freshness, Go/frontend lint, formatting and typecheck passed, then the existing upstream MSW worker mismatch stopped the gate. The tracked worker is still 2.15.0 while the locked runtime is 3.0.2; this is separate from the failed GitHub race job.
  • PATH=/tmp/three-x-ui-conflict.Y0D4lY/go/bin:$PATH GODEBUG=tlsmlkem=0,http2client=0 CI=true make test build build-storybook — passed: uncached shuffled Go tests, 184 frontend test files / 1800 tests, frontend and Go builds, and Storybook build.
  • git diff --check and gofmt -d internal/tuic/stream_udp_lifecycle_test.go — clean. Verified that only the intended test file differs from ce256bf0, with no remaining production fault injection. No frontend tests, shared setup, user-facing behavior or documentation semantics changed in this follow-up.

After upstream sync (2026-10-07)

Environment: Node 26.4.0, Go 1.27.1, golangci-lint 2.14.0, Vitest 5.0.3 and installed Playwright Chromium. Dependencies were installed from the updated upstream lockfiles using npm ci --no-audit --no-fund in frontend/ and pnpm install --frozen-lockfile in docs/; no manifest or lockfile changes are introduced by this PR.

  • PATH=/tmp/three-x-ui-conflict.Y0D4lY/go/bin:/tmp/three-x-ui-conflict.Y0D4lY/golangci-lint-2.14.0-darwin-arm64:$PATH GODEBUG=tlsmlkem=0,http2client=0 CI=true make verify — not fully green: code generation/freshness, Go/frontend lint, formatting and typecheck passed, then msw-worker-check failed. Upstream's lockfile installs MSW 3.0.2, while the tracked worker still declares 2.15.0. git show origin/main:frontend/public/mockServiceWorker.js | cmp - frontend/node_modules/msw/lib/mockServiceWorker.js reproduces the same mismatch using the unmodified upstream worker. This dependency-sync issue is intentionally not folded into the conflict resolution.
  • PATH=/tmp/three-x-ui-conflict.Y0D4lY/go/bin:/tmp/three-x-ui-conflict.Y0D4lY/golangci-lint-2.14.0-darwin-arm64:$PATH GODEBUG=tlsmlkem=0,http2client=0 CI=true make test build build-storybook — passed: uncached shuffled Go tests, 184 frontend test files / 1800 tests, frontend production build, Go build and Storybook build.
  • From frontend/: npm test -- --project components src/test/client-renewal-help.test.tsx src/test/client-renewal-preview-display.test.tsx src/test/client-calendar-renewal.test.tsx src/test/client-bulk-calendar-renewal.test.tsx — 4 files / 6 tests passed, covering mode-specific guidance, preview timezone/offset formatting, save payloads and explicit-cutoff/first-use behavior.
  • From docs/: pnpm typecheck && pnpm lint && pnpm format:check && pnpm test — passed, 12 files / 107 tests.
  • git diff --cached --check — passed; git ls-files -u returned no unresolved entries. Parsed and compared all 13 locale JSON files against upstream and the original PR to verify preservation of both sides.
  • No tests or shared setup files were changed by the manual resolution. The original browser-layout evidence below is historical; the 16-scenario layout harness was not rerun for this locale-only conflict resolution. Live PostgreSQL, race, fuzz, master/node integration and other opt-in backend jobs were not run locally.

Original submission (2026-09-28, head 033716f)

The results below apply to the original pre-sync tree, not the updated dependency state.

Environment: Node 26.4.0, Go 1.27.1, golangci-lint 2.14.0 and installed Playwright Chromium. The manifest/lockfile comparison with the previously installed checkout was empty, so no dependency or lockfile changes were needed.

  • PATH=/tmp/three-x-ui-display-tools.44XpWH/go/bin:/tmp/three-x-ui-display-tools.44XpWH/golangci-lint-2.14.0-darwin-arm64:$PATH GODEBUG=tlsmlkem=0,http2client=0 make verify — passed: generated-file check, Go/frontend lint, formatting, typecheck, MSW worker check, uncached shuffled Go tests, 175 frontend test files / 1743 tests, frontend/Go builds and Storybook build. This is the repository's local gate; live PostgreSQL, race and fuzz CI jobs were not run locally.
  • From frontend/: npm test -- --project components src/test/client-renewal-help.test.tsx src/test/client-calendar-renewal.test.tsx src/test/client-bulk-calendar-renewal.test.tsx — 3 files / 3 tests passed, including existing save-payload and explicit-cutoff/first-use behavior.
  • From frontend/: npm test -- --project components src/test/client-renewal-help.test.tsx — the single new case passed in its own process. Restoring the pre-fix component made the same case fail because interval mode displayed calendar guidance.
  • From docs/, using the bundled pnpm executable: pnpm typecheck && pnpm lint && pnpm format:check && pnpm test — passed, 12 files / 106 tests.
  • node /tmp/three-x-ui-layout-qa.DOliaq/check-layout.mjs — 16 Chromium scenarios passed, covering disabled/interval/weekly/monthly modes, add/edit/bulk dialogs, monthly traffic reset, unset expiry, delayed start, English/Chinese, Arabic RTL, 375 px mobile, 1280 px desktop and the 767/768 px breakpoint. Checks cover same-row/equal-width desktop controls, stacked mobile/bulk controls and horizontal clipping/overflow. The same harness with --baseline and the original components failed the desktop same-row assertion. A final Chrome check confirmed the cutoff button's 32 px minimum height.
  • git diff --check — passed. Documentation/locale searches found no remaining zero-value mode-switch instructions in these tooltips.
  • git merge-tree --write-tree HEAD fix/renewal-preview-time-display — passed with no conflicts against #6662 at cf54f748d010b6e371964def0c166f1b981354b1. This is a merge-compatibility check, not a claim that the combined branch ran the full suite.

Manual reproduction

Open Clients -> Edit Client, enable a renewal mode, and compare the reset/renewal area at desktop and mobile widths. Switch among interval, weekly, monthly and disabled: the parameter and help must follow the selected mode. Enable monthly independent traffic reset to reveal its adjacent day field. With no expiry set, select a calendar mode and verify that the first-cutoff button wraps without clipping. Repeat in Add Client and Add Bulk; the bulk fields should remain stacked.

Screenshots

Full-dialog desktop and mobile screenshots were generated and visually reviewed using synthetic client data. Attaching them here was blocked by the Chrome extension's file-upload permission, so this description currently has no hosted screenshot attachments. No browser permission was changed and no production-panel screenshot was uploaded.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6672 **Author:** [@JacktheRanger](https://github.com/JacktheRanger) **Created:** 9/28/2026 **Status:** ✅ Merged **Merged:** 10/8/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/client-renewal-form-layout` --- ### 📝 Commits (5) - [`033716f`](https://github.com/MHSanaei/3x-ui/commit/033716f7fdd14ae9f3ebf04256ed963dbee80830) fix(clients): balance renewal form layout and mode guidance - [`ea36591`](https://github.com/MHSanaei/3x-ui/commit/ea36591155fe1d03b8598aed3f61d5532066eb4d) chore(clients): merge main and resolve renewal locale conflicts - [`02539e8`](https://github.com/MHSanaei/3x-ui/commit/02539e84ca44d5ee369473fc23c861081cb34bcd) refactor(clients): drop the renewal CSS that #6662 made redundant - [`ce256bf`](https://github.com/MHSanaei/3x-ui/commit/ce256bf0091f5a89f8f34a01240413eab573dd6b) Merge branch 'main' into fix/client-renewal-form-layout - [`0d77be5`](https://github.com/MHSanaei/3x-ui/commit/0d77be523a9dc12210103a3ac1180d009485ce26) test(tuic): wait for downstream association activity refresh ### 📊 Changes **19 files changed** (+226 additions, -117 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/en/config/clients.mdx` (+6 -0) 📝 `docs/content/docs/zh/config/clients.mdx` (+5 -0) 📝 `frontend/src/pages/clients/ClientFormModal.tsx` (+13 -14) 📝 `frontend/src/pages/clients/ClientRenewalFields.tsx` (+81 -59) ➕ `frontend/src/test/client-renewal-help.test.tsx` (+42 -0) 📝 `internal/tuic/stream_udp_lifecycle_test.go` (+14 -5) 📝 `internal/web/translation/ar-EG.json` (+5 -3) 📝 `internal/web/translation/en-US.json` (+5 -3) 📝 `internal/web/translation/es-ES.json` (+5 -3) 📝 `internal/web/translation/fa-IR.json` (+5 -3) 📝 `internal/web/translation/id-ID.json` (+5 -3) 📝 `internal/web/translation/ja-JP.json` (+5 -3) 📝 `internal/web/translation/pt-BR.json` (+5 -3) 📝 `internal/web/translation/ru-RU.json` (+5 -3) 📝 `internal/web/translation/tr-TR.json` (+5 -3) 📝 `internal/web/translation/uk-UA.json` (+5 -3) 📝 `internal/web/translation/vi-VN.json` (+5 -3) 📝 `internal/web/translation/zh-CN.json` (+5 -3) 📝 `internal/web/translation/zh-TW.json` (+5 -3) </details> ### 📄 Description ## Motivation The client editor currently places Traffic Reset beside the entire auto-renewal block in two half-width columns (introduced by a33b2341e9fd39ae8756b014748afc316d32026f). When renewal is enabled, the right column contains several fields, help and a preview while the left often contains just one selector. This leaves a large blank area and pushes subsequent fields down. The same block also shows calendar/month-end guidance for fixed-day intervals and weekly schedules, even though those modes do not share monthly boundaries. ## Changes - Give auto-renewal its own full-width area. On desktop, the mode, its active parameter and the renewal limit share three equal columns; below the existing `md` breakpoint, they stack. Help and the preview use the width below the controls. - Keep independent traffic reset in a separate row, with its monthly reset day alongside the selector when applicable. Do not change its behavior or defaults. - Preserve the bulk-create form's existing stacked, horizontally labelled fields instead of compressing them into thirds. - Reuse the full-width preview and wrapping first-cutoff button styles already merged in #6662. The maintainer removed this PR's redundant CSS file and wrapper in `02539e84`; those changes are preserved. - Show fixed 24-hour-day guidance for interval mode, calendar guidance for weekly/monthly modes, and the day-1/month-end note only for monthly mode. Disabled mode shows none of these hints. The independent-reset warning remains available for every enabled mode. - Update all 13 locales and the English/Chinese client guides. Remove obsolete instructions to enter zero in the positive-only interval/day inputs; changing modes is handled by the mode selector. - Add a regression test that switches modes through the real `ClientFormModal` and checks both appearing and disappearing guidance. No markup snapshots or CSS-class assertions are used as substitutes for browser layout validation. This follows the existing Ant Design/RHF conventions in `frontend/CLAUDE.md`, the root `CLAUDE.md` test-first/local-gate rules, and the schedule semantics documented in `docs/content/docs/en/config/clients.mdx`. ## Upstream sync (2026-10-07) Merged upstream `main` at `f21721224757062066597a84e3137fadfde70c73` into the existing PR branch without rewriting its history. The only manual conflicts were in the 13 locale files: upstream's native TUIC support removed the obsolete `pages.clients.tuicTotalGBDesc` key beside this PR's new renewal descriptions. The resolution keeps that deletion and both renewal descriptions in every locale. It does not restore the old TUIC limitation. The client form, #6662 preview changes and client guides merged automatically and were reviewed together. At that merge, comparing the added/deleted lines of all 19 PR files against the original patch confirmed that the original edits were preserved on top of the new base. Each locale differs from current main only in the original four intended renewal keys; other upstream strings are preserved. ## CI follow-up (2026-10-08) The [race job on head ce256bf0](https://github.com/MHSanaei/3x-ui/actions/runs/37714418009/job/113107515012) failed in `TestDownstreamUDPResponseRefreshesAssociationIdleTime`, not with a race-detector report. Receiving a QUIC datagram does not synchronize with the sender's subsequent `associations.touch` call. The test could therefore read the old timestamp even though the response had arrived successfully. The follow-up changes only `internal/tuic/stream_udp_lifecycle_test.go`: poll the mutex-protected timestamp until it advances, with a one-second deadline, before exercising idle reaping. Keep the exact payload, association ID, idle-survival and relay-shutdown assertions. Missing activity updates still fail. No production code, network timeout, dependency or CI configuration is changed, and no check is disabled. ## Not included - No production backend, API, schema, database, scheduler, traffic-reset or saved-value changes. Choosing a mode still does not change an existing expiry; the first-cutoff action remains explicit. - No additional renewal-date formatting, timezone-label or estimate-wording changes. #6662 is now merged upstream; its preview markup, date formatting and labels are preserved alongside this PR's renewal-field layout. - No general redesign of the client/bulk dialogs, CI changes, dependency updates or production-panel configuration changes. ## Known costs - The independent reset selector may leave the other half of its single row empty when no reset-day input is needed; it no longer inherits the height of the entire renewal block. - Mobile forms still require vertical scrolling. The bulk modal retains its existing scrolling and label layout. - Chromium geometry checks used local synthetic API responses to exercise full add/edit/bulk dialogs. They verify rendering, not a live backend renewal execution; no production client details are used in screenshots or fixtures. - The layout check is a local QA harness, not a new CI job. The committed mode-guidance regression runs in the existing component test project. ## Validation ### After the CI test fix (2026-10-08) Validated on macOS arm64 with Go 1.27.1, Node 26.4.0, golangci-lint 2.14.0 and the existing upstream lockfiles. Go commands used `PATH=/tmp/three-x-ui-conflict.Y0D4lY/go/bin:$PATH` and `GODEBUG=tlsmlkem=0,http2client=0`. - `go test -race -shuffle=1791424023316329240 -count=1 -timeout=3m ./internal/tuic` — passed using the failing CI package's shuffle seed. - `make race` — passed across the full local package list, with uncached shuffled race-enabled tests. Environment-gated PostgreSQL, master/node and other opt-in integration paths were not enabled locally. - `go test -race -run '^TestDownstreamUDPResponseRefreshesAssociationIdleTime$' -count=200 -timeout=2m ./internal/tuic` — passed on the final unmodified production code. - Controlled scheduling reproduction: temporarily insert a 20 ms delay immediately before the production activity update. The original test failed with the same timestamp assertion using `go test -race -run '^TestDownstreamUDPResponseRefreshesAssociationIdleTime$' -count=1 -timeout=30s ./internal/tuic`; the fixed test passed 50 repetitions using `-count=50 -timeout=2m`. Temporarily removing the activity update entirely made the fixed test fail within its deadline with the same `-count=1 -timeout=30s` command. **All temporary production edits were removed** before final validation. - Stress limitation: `go test -race -run '^TestDownstreamUDPResponseRefreshesAssociationIdleTime$' -count=1000 -timeout=3m ./internal/tuic` was **not fully green**: one iteration timed out during QUIC connection setup, before the activity assertion. No activity-refresh assertion failed in that run. The subsequent 200-repetition run above passed; this is not a claim that the unrelated connection-setup timeout was fixed. - `PATH=/tmp/three-x-ui-conflict.Y0D4lY/go/bin:/tmp/three-x-ui-conflict.Y0D4lY/golangci-lint-2.14.0-darwin-arm64:$PATH GODEBUG=tlsmlkem=0,http2client=0 CI=true make verify` — generated-file freshness, Go/frontend lint, formatting and typecheck passed, then the existing upstream MSW worker mismatch stopped the gate. The tracked worker is still 2.15.0 while the locked runtime is 3.0.2; this is separate from the failed GitHub race job. - `PATH=/tmp/three-x-ui-conflict.Y0D4lY/go/bin:$PATH GODEBUG=tlsmlkem=0,http2client=0 CI=true make test build build-storybook` — passed: uncached shuffled Go tests, **184 frontend test files / 1800 tests**, frontend and Go builds, and Storybook build. - `git diff --check` and `gofmt -d internal/tuic/stream_udp_lifecycle_test.go` — clean. Verified that only the intended test file differs from `ce256bf0`, with no remaining production fault injection. No frontend tests, shared setup, user-facing behavior or documentation semantics changed in this follow-up. ### After upstream sync (2026-10-07) Environment: Node 26.4.0, Go 1.27.1, golangci-lint 2.14.0, Vitest 5.0.3 and installed Playwright Chromium. Dependencies were installed from the updated upstream lockfiles using `npm ci --no-audit --no-fund` in `frontend/` and `pnpm install --frozen-lockfile` in `docs/`; no manifest or lockfile changes are introduced by this PR. - `PATH=/tmp/three-x-ui-conflict.Y0D4lY/go/bin:/tmp/three-x-ui-conflict.Y0D4lY/golangci-lint-2.14.0-darwin-arm64:$PATH GODEBUG=tlsmlkem=0,http2client=0 CI=true make verify` — **not fully green**: code generation/freshness, Go/frontend lint, formatting and typecheck passed, then `msw-worker-check` failed. Upstream's lockfile installs MSW **3.0.2**, while the tracked worker still declares **2.15.0**. `git show origin/main:frontend/public/mockServiceWorker.js | cmp - frontend/node_modules/msw/lib/mockServiceWorker.js` reproduces the same mismatch using the unmodified upstream worker. This dependency-sync issue is intentionally not folded into the conflict resolution. - `PATH=/tmp/three-x-ui-conflict.Y0D4lY/go/bin:/tmp/three-x-ui-conflict.Y0D4lY/golangci-lint-2.14.0-darwin-arm64:$PATH GODEBUG=tlsmlkem=0,http2client=0 CI=true make test build build-storybook` — **passed**: uncached shuffled Go tests, **184 frontend test files / 1800 tests**, frontend production build, Go build and Storybook build. - From `frontend/`: `npm test -- --project components src/test/client-renewal-help.test.tsx src/test/client-renewal-preview-display.test.tsx src/test/client-calendar-renewal.test.tsx src/test/client-bulk-calendar-renewal.test.tsx` — **4 files / 6 tests passed**, covering mode-specific guidance, preview timezone/offset formatting, save payloads and explicit-cutoff/first-use behavior. - From `docs/`: `pnpm typecheck && pnpm lint && pnpm format:check && pnpm test` — **passed**, **12 files / 107 tests**. - `git diff --cached --check` — passed; `git ls-files -u` returned no unresolved entries. Parsed and compared all 13 locale JSON files against upstream and the original PR to verify preservation of both sides. - No tests or shared setup files were changed by the manual resolution. The original browser-layout evidence below is historical; the 16-scenario layout harness was not rerun for this locale-only conflict resolution. Live PostgreSQL, race, fuzz, master/node integration and other opt-in backend jobs were not run locally. ### Original submission (2026-09-28, head `033716f`) The results below apply to the original pre-sync tree, not the updated dependency state. Environment: Node 26.4.0, Go 1.27.1, golangci-lint 2.14.0 and installed Playwright Chromium. The manifest/lockfile comparison with the previously installed checkout was empty, so no dependency or lockfile changes were needed. - `PATH=/tmp/three-x-ui-display-tools.44XpWH/go/bin:/tmp/three-x-ui-display-tools.44XpWH/golangci-lint-2.14.0-darwin-arm64:$PATH GODEBUG=tlsmlkem=0,http2client=0 make verify` — passed: generated-file check, Go/frontend lint, formatting, typecheck, MSW worker check, uncached shuffled Go tests, **175 frontend test files / 1743 tests**, frontend/Go builds and Storybook build. This is the repository's local gate; live PostgreSQL, race and fuzz CI jobs were not run locally. - From `frontend/`: `npm test -- --project components src/test/client-renewal-help.test.tsx src/test/client-calendar-renewal.test.tsx src/test/client-bulk-calendar-renewal.test.tsx` — **3 files / 3 tests passed**, including existing save-payload and explicit-cutoff/first-use behavior. - From `frontend/`: `npm test -- --project components src/test/client-renewal-help.test.tsx` — the single new case passed in its own process. Restoring the pre-fix component made the same case fail because interval mode displayed calendar guidance. - From `docs/`, using the bundled pnpm executable: `pnpm typecheck && pnpm lint && pnpm format:check && pnpm test` — passed, **12 files / 106 tests**. - `node /tmp/three-x-ui-layout-qa.DOliaq/check-layout.mjs` — **16 Chromium scenarios passed**, covering disabled/interval/weekly/monthly modes, add/edit/bulk dialogs, monthly traffic reset, unset expiry, delayed start, English/Chinese, Arabic RTL, 375 px mobile, 1280 px desktop and the 767/768 px breakpoint. Checks cover same-row/equal-width desktop controls, stacked mobile/bulk controls and horizontal clipping/overflow. The same harness with `--baseline` and the original components failed the desktop same-row assertion. A final Chrome check confirmed the cutoff button's 32 px minimum height. - `git diff --check` — passed. Documentation/locale searches found no remaining zero-value mode-switch instructions in these tooltips. - `git merge-tree --write-tree HEAD fix/renewal-preview-time-display` — passed with no conflicts against #6662 at `cf54f748d010b6e371964def0c166f1b981354b1`. This is a merge-compatibility check, not a claim that the combined branch ran the full suite. ### Manual reproduction Open Clients -> Edit Client, enable a renewal mode, and compare the reset/renewal area at desktop and mobile widths. Switch among interval, weekly, monthly and disabled: the parameter and help must follow the selected mode. Enable monthly independent traffic reset to reveal its adjacent day field. With no expiry set, select a calendar mode and verify that the first-cutoff button wraps without clipping. Repeat in Add Client and Add Bulk; the bulk fields should remain stacked. ### Screenshots Full-dialog desktop and mobile screenshots were generated and visually reviewed using synthetic client data. Attaching them here was blocked by the Chrome extension's file-upload permission, so this description currently has no hosted screenshot attachments. No browser permission was changed and no production-panel screenshot was uploaded. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:08:30 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6402
No description provided.