[PR #1597] [MERGED] Narrow feature hook export surface #5132

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

📋 Pull Request Information

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

Base: refactor ← Head: codex/knip-feature-export-slice


📝 Commits (1)

  • 750ec4e Narrow feature hook export surface

📊 Changes

7 files changed (+7 additions, -18 deletions)

View changed files

📝 src/features/catalog/chats/hooks/use-chat-folders.ts (+1 -1)
📝 src/features/catalog/connections/hooks/use-connection-folders.ts (+1 -1)
📝 src/features/catalog/personas/hooks/use-personas.ts (+0 -2)
📝 src/features/modes/game-assets/hooks/use-game-assets.ts (+1 -1)
📝 src/features/shell/settings/hooks/use-extensions.ts (+1 -1)
📝 src/features/shell/settings/hooks/use-prompt-overrides.ts (+2 -11)
📝 src/features/shell/settings/hooks/use-themes.ts (+1 -1)

📄 Description

Linked issue: Refs #1566

Why: Continue the practical Knip restore/classification queue by narrowing feature-owned hook exports that are implementation-only.

What changed:

  • Made several React Query key factories private to their hook modules.
  • Removed the unused personaKeys re-export from persona hooks.
  • Narrowed prompt override hook type re-exports to the types consumed by feature UI.

Validation:

  • pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code
  • pnpm typecheck
  • pnpm check:architecture
  • pnpm check:unused
  • pnpm build
  • pnpm check
  • git diff --check

UI evidence: N/A, export-surface-only cleanup.

Summary by CodeRabbit

  • Refactor
    • Internal code reorganization: Query and configuration keys have been made module-private to reduce public API surface and improve encapsulation. No changes to user-facing functionality or behavior.

Review Change Stack


🔄 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/1597 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/29/2026 **Status:** ✅ Merged **Merged:** 5/29/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `codex/knip-feature-export-slice` --- ### 📝 Commits (1) - [`750ec4e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/750ec4e3c548c6825944f43da5fe9f54fda72629) Narrow feature hook export surface ### 📊 Changes **7 files changed** (+7 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `src/features/catalog/chats/hooks/use-chat-folders.ts` (+1 -1) 📝 `src/features/catalog/connections/hooks/use-connection-folders.ts` (+1 -1) 📝 `src/features/catalog/personas/hooks/use-personas.ts` (+0 -2) 📝 `src/features/modes/game-assets/hooks/use-game-assets.ts` (+1 -1) 📝 `src/features/shell/settings/hooks/use-extensions.ts` (+1 -1) 📝 `src/features/shell/settings/hooks/use-prompt-overrides.ts` (+2 -11) 📝 `src/features/shell/settings/hooks/use-themes.ts` (+1 -1) </details> ### 📄 Description Linked issue: Refs #1566 Why: Continue the practical Knip restore/classification queue by narrowing feature-owned hook exports that are implementation-only. What changed: - Made several React Query key factories private to their hook modules. - Removed the unused `personaKeys` re-export from persona hooks. - Narrowed prompt override hook type re-exports to the types consumed by feature UI. Validation: - pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code - pnpm typecheck - pnpm check:architecture - pnpm check:unused - pnpm build - pnpm check - git diff --check UI evidence: N/A, export-surface-only cleanup. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Internal code reorganization: Query and configuration keys have been made module-private to reduce public API surface and improve encapsulation. No changes to user-facing functionality or behavior. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1597?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:35 +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#5132
No description provided.