Skip to content

fix(heybox-up): show hot ranking on narrower desktops - #274

Merged
CYoJkoY merged 2 commits into
mainfrom
issue-273-hot-ranking-narrow-desktop
Nov 29, 2026
Merged

CYoJkoY merged 2 commits into
mainfrom
issue-273-hot-ranking-narrow-desktop

Conversation

@CYoJkoY

@CYoJkoY CYoJkoY commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Linked Issue

Resolves #273

Change summary

  • Show the desktop right rail from 1200px instead of 1500px.
  • Use a compact 208px rail between 1200px and 1499px and keep the 288px rail at 1500px and above.
  • Limit the compact rail to hot rankings and keep shortcut entries in the left rail to avoid duplication.
  • Let the rail width follow the available grid column when users widen the middle feed.
  • Update the settings hint, user documentation, changelog, version metadata, and regression tests.

Verification & Dependencies

  • pnpm typecheck passed.
  • pnpm test passed: 60 files / 928 tests.
  • pnpm build -- --target heybox-up passed and emitted @version 0.12.24.
  • pnpm check passed.
  • No new runtime dependencies.

Review conclusion

Pending review.

Permission Notice

This userscript change only affects UI/CSS behavior, documentation, and tests. It does not add permissions or call additional site endpoints.

@CYoJkoY CYoJkoY left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Independent Review

Overall score: 4.90 / 5.00 — PASS

No unresolved P0, P1, or P2 findings.

Findings

  • [P3] The compact rail intentionally repeats the hot-ranking only scope rather than reusing the shortcuts block. This is deliberate to avoid duplicated navigation entries in 1200–1499px layouts.
  • [P3] The added CSS regression test is string-based rather than a full layout test. jsdom cannot resolve CSS grid or media queries, so this is the practical contract available without adding a browser harness.
  • [P3] Live rendering at 1200–1499px remains recommended as a post-merge smoke check because jsdom cannot verify viewport paint.

Review notes

  • The root cause is confirmed: the right rail previously only mounted at 1500px, so the hot-ranking setting could not affect 1200–1499px layouts.
  • The change correctly preserves shortcut links in the left rail and hides the duplicate right-rail shortcut block only between 1200px and 1499px.
  • The heybox-up-rail-open override keeps comment preview higher priority than the right rail across the new viewport range.
  • The rail width uses the available grid column as a maximum, reducing the risk of the feed being compressed when users increase the middle-column width.
  • Version, docs, changelog, and publishing tests are updated consistently.
  • Local verification passed for typecheck, 928 tests, target build, and the full check pipeline. CI is green at head 98f0671.

@CYoJkoY
CYoJkoY merged commit 2b827fd into main Nov 29, 2026
1 check passed
@CYoJkoY
CYoJkoY deleted the issue-273-hot-ranking-narrow-desktop branch November 29, 2026 18:22
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.

Hot ranking setting has no visible effect at 1200px–1499px

1 participant