[PR #983] [MERGED] Remember character library sort during session #4870

Closed
opened 2026-10-22 04:11:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/983
Author: @cha1latte
Created: 5/18/2026
Status: ✅ Merged
Merged: 5/18/2026
Merged by: @cha1latte

Base: staging ← Head: feature/issue-960-character-sort-session


📝 Commits (1)

  • a248bc5 Remember character library sort during session

📊 Changes

1 file changed (+32 additions, -2 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterLibraryView.tsx (+32 -2)

📄 Description

Linked issue

Closes #960

Why this change

  • Users who prefer browsing character cards by newest currently have to reselect Newest each time they reopen or reload the character library during a browser session.

What changed

  • Remember the selected character library sort option in sessionStorage.
  • Restore a valid stored sort option when the character library mounts.
  • Fall back to Name A-Z if session storage is unavailable or contains an invalid value.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex ran pnpm check locally on the staging-based branch; it passed.
  • Codex ran a local browser verification against the dev app: opened the character library, confirmed the default sort was Name A-Z, selected Newest, confirmed sessionStorage stored newest, closed and reopened the library, and reloaded the page in the same session. The sort stayed on Newest after both reopen and reload.
  • Bunny review passed on the current staging-based diff before PR creation and again after the branch was pushed.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

No screenshot embedded; the browser verification was state-based and confirmed the character library sort select value plus session storage behavior.


🔄 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/Pasta-Devs/Marinara-Engine/pull/983 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/18/2026 **Status:** ✅ Merged **Merged:** 5/18/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `feature/issue-960-character-sort-session` --- ### 📝 Commits (1) - [`a248bc5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a248bc5b21e18fe76b3e9dd73bc04b864c68f43b) Remember character library sort during session ### 📊 Changes **1 file changed** (+32 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterLibraryView.tsx` (+32 -2) </details> ### 📄 Description ## Linked issue Closes #960 ## Why this change - Users who prefer browsing character cards by newest currently have to reselect Newest each time they reopen or reload the character library during a browser session. ## What changed - Remember the selected character library sort option in `sessionStorage`. - Restore a valid stored sort option when the character library mounts. - Fall back to Name A-Z if session storage is unavailable or contains an invalid value. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Codex ran `pnpm check` locally on the staging-based branch; it passed. - Codex ran a local browser verification against the dev app: opened the character library, confirmed the default sort was Name A-Z, selected Newest, confirmed `sessionStorage` stored `newest`, closed and reopened the library, and reloaded the page in the same session. The sort stayed on Newest after both reopen and reload. - Bunny review passed on the current staging-based diff before PR creation and again after the branch was pushed. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) No screenshot embedded; the browser verification was state-based and confirmed the character library sort select value plus session storage behavior. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:19 +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
Pasta-Devs/Marinara-Engine#4870
No description provided.