Skip to content

feat(web): configure session preview limit#629

Merged
tiann merged 1 commit into
tiann:mainfrom
NightWatcher314:feat/session-preview-limit
May 17, 2026
Merged

feat(web): configure session preview limit#629
tiann merged 1 commit into
tiann:mainfrom
NightWatcher314:feat/session-preview-limit

Conversation

@NightWatcher314
Copy link
Copy Markdown
Contributor

Summary

  • add a persisted session preview limit preference with default 8 and 1-99 clamping
  • add a compact number stepper on the settings page
  • wire the session list folding threshold to the setting with same-tab updates

Test plan

  • bun typecheck
  • bun run test:web
  • local UI check on /settings with mocked API auth

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Findings
No issues found in the added or modified lines.

Summary
Review mode: initial
Reviewed the full PR diff for the configurable session preview limit, including the new storage hook, settings UI, locale strings, and SessionList folding integration. Residual risk: I could not execute the web test/typecheck suite in this runner because bun is not installed.

Testing
Not run (automation: bun unavailable in runner).

HAPI Bot

@tiann tiann merged commit 7bb7c7d into tiann:main May 17, 2026
2 checks passed
junmo-kim added a commit to junmo-kim/hapi that referenced this pull request May 17, 2026
Rebase onto upstream/main (c5e80e9) replayed the UriConfirmDialog commit
(2f933b7) which originally modified en.ts and zh-CN.ts from the old base
(60af983). Three upstream-added i18n keys that were introduced after the
old base were absent from our rebased commit:

- sessions.group.new (from tiann#627 preview linked session files)
- file.page.imagePreviewAlt (from tiann#627)
- settings.display.sessionPreviewLimit{,.decrease,.increase} (from tiann#629)

Restore all 5 keys in both en.ts and zh-CN.ts so upstream features
(directory new-session action, file image preview, session preview limit
setting) remain fully functional.
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.

2 participants