[PR #1729] [MERGED] Type BotBrowser provider responses #5240

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1729
Author: @Xelvanis
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @Xelvanis

Base: refactor ← Head: chore/bot-browser-any-slice


📝 Commits (4)

  • 0e5051c Type BotBrowser provider responses
  • 1a254c6 Merge remote-tracking branch 'origin/refactor' into chore/bot-browser-any-slice
  • 4bf33a8 Fix BotBrowser total count and CI checks
  • 470c6da Merge remote-tracking branch 'origin/refactor' into chore/bot-browser-any-slice

📊 Changes

2 files changed (+357 additions, -64 deletions)

View changed files

📝 src/features/shell/bot-browser/components/BotBrowserView.tsx (+92 -64)
➕ src/features/shell/bot-browser/types/provider-responses.ts (+265 -0)

📄 Description

Linked issue

No linked issue; this continues the local explicit-any cleanup chore.

Why this change

  • BotBrowser provider integrations still used broad any response casts, which blocked a future no-explicit-any lint gate and made provider mapping drift harder to review.

What changed

  • Added feature-owned provider response DTOs for Chub, Janny, CharacterTavern, Pygmalion, Wyvern, and DataCat.
  • Replaced BotBrowser provider search/detail any casts with those DTOs.
  • Normalized DataCat tag handling through a typed helper while preserving existing behavior.

Refactor impact

Primary owner:

Shell Bot Browser feature.

Impact areas reviewed:

  • BotBrowser provider search and detail mapping.
  • Feature-local bot-browser API wrapper usage.
  • Existing provider error/retry tests.

Boundary notes:

  • Feature-only type cleanup under src/features/shell/bot-browser.
  • No engine, shared API, Rust command, or remote-runtime behavior changed.
  • Existing botBrowserGet / botBrowserPost wrapper path remains intact.

Pressure points touched:

  • None of the named pressure points were touched.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • pnpm check passed after the final diff.
  • pnpm typecheck passed.
  • pnpm test src/features/shell/bot-browser/components/BotBrowserView.test.tsx passed, 4 tests.
  • pnpm check:architecture passed.
  • pnpm exec eslint src/features/shell/bot-browser/components/BotBrowserView.tsx src/features/shell/bot-browser/types/provider-responses.ts passed.
  • pnpm exec prettier --check src/features/shell/bot-browser/components/BotBrowserView.tsx src/features/shell/bot-browser/types/provider-responses.ts passed.
  • rg -n ": any|as any|<any>|any\[\]" src/features/shell/bot-browser/components/BotBrowserView.tsx src/features/shell/bot-browser/types/provider-responses.ts returned no matches.
  • No browser/Tauri manual provider QA was run; this is a compile-time cleanup with no intended behavior change.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

No docs or release-note changes were made; this is an internal type cleanup.

UI evidence

Not applicable; no visible UI change intended.

Summary by CodeRabbit

  • Refactor
    • Enhanced bot browser integrations across multiple providers (ChubAI, JannyAI, CharacterTavern, Pygmalion, Wyvern, DataCat). Improved search and character detail response handling for consistent data retrieval across all provider endpoints.

🔄 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/1729 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `chore/bot-browser-any-slice` --- ### 📝 Commits (4) - [`0e5051c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0e5051cfe3f6c21f2bacbbc08617adf1bcea21ea) Type BotBrowser provider responses - [`1a254c6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1a254c6d3d8d6c41cfd16569fc879e2ff5e0382a) Merge remote-tracking branch 'origin/refactor' into chore/bot-browser-any-slice - [`4bf33a8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4bf33a86551acff450a298ba711a43a26d0f3791) Fix BotBrowser total count and CI checks - [`470c6da`](https://github.com/Pasta-Devs/Marinara-Engine/commit/470c6daaafc7d116b2a3c868a077693cdd97f9e5) Merge remote-tracking branch 'origin/refactor' into chore/bot-browser-any-slice ### 📊 Changes **2 files changed** (+357 additions, -64 deletions) <details> <summary>View changed files</summary> 📝 `src/features/shell/bot-browser/components/BotBrowserView.tsx` (+92 -64) ➕ `src/features/shell/bot-browser/types/provider-responses.ts` (+265 -0) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue No linked issue; this continues the local explicit-`any` cleanup chore. ## Why this change - BotBrowser provider integrations still used broad `any` response casts, which blocked a future `no-explicit-any` lint gate and made provider mapping drift harder to review. ## What changed - Added feature-owned provider response DTOs for Chub, Janny, CharacterTavern, Pygmalion, Wyvern, and DataCat. - Replaced BotBrowser provider search/detail `any` casts with those DTOs. - Normalized DataCat tag handling through a typed helper while preserving existing behavior. ## Refactor impact Primary owner: Shell Bot Browser feature. Impact areas reviewed: - BotBrowser provider search and detail mapping. - Feature-local bot-browser API wrapper usage. - Existing provider error/retry tests. Boundary notes: - Feature-only type cleanup under `src/features/shell/bot-browser`. - No engine, shared API, Rust command, or remote-runtime behavior changed. - Existing `botBrowserGet` / `botBrowserPost` wrapper path remains intact. Pressure points touched: - None of the named pressure points were touched. ## Validation - [x] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [x] `pnpm build` passes locally - [x] `pnpm check:architecture` passes locally - [x] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - `pnpm check` passed after the final diff. - `pnpm typecheck` passed. - `pnpm test src/features/shell/bot-browser/components/BotBrowserView.test.tsx` passed, 4 tests. - `pnpm check:architecture` passed. - `pnpm exec eslint src/features/shell/bot-browser/components/BotBrowserView.tsx src/features/shell/bot-browser/types/provider-responses.ts` passed. - `pnpm exec prettier --check src/features/shell/bot-browser/components/BotBrowserView.tsx src/features/shell/bot-browser/types/provider-responses.ts` passed. - `rg -n ": any|as any|<any>|any\[\]" src/features/shell/bot-browser/components/BotBrowserView.tsx src/features/shell/bot-browser/types/provider-responses.ts` returned no matches. - No browser/Tauri manual provider QA was run; this is a compile-time cleanup with no intended behavior change. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims No docs or release-note changes were made; this is an internal type cleanup. ## UI evidence Not applicable; no visible UI change intended. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Enhanced bot browser integrations across multiple providers (ChubAI, JannyAI, CharacterTavern, Pygmalion, Wyvern, DataCat). Improved search and character detail response handling for consistent data retrieval across all provider endpoints. <!-- 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:14:31 +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#5240
No description provided.