[PR #349] [MERGED] feat(bot-browser): enable DataCat text search #4572

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/349
Author: @LukaTheHero
Created: 5/2/2026
Status: ✅ Merged
Merged: 5/2/2026
Merged by: @LukaTheHero

Base: main ← Head: feat/datacat-text-search


📝 Commits (1)

  • 5f7b814 feat(bot-browser): enable DataCat text search via recent-public ?search=

📊 Changes

2 files changed (+17 additions, -23 deletions)

View changed files

📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+9 -21)
📝 packages/server/src/routes/bot-browser-datacat.routes.ts (+8 -2)

📄 Description

Summary

  • DataCat's /api/characters/recent-public upstream does support free-text filtering via a search=<text> query param — the previous integration assumed it didn't and disabled the search input on this provider. Verified directly: ?search=anime returns 159 results, ?search=elf returns 472, ?search=samurai returns 25, all vs. the unfiltered 84,339, and it composes cleanly with tagIds + pagination.
  • Server /datacat/recent now accepts an optional q query param and forwards it as search to upstream.
  • Client datacatProvider.search forwards p.query to the backend and forces the recent-public path whenever a query is present (the /fresh endpoint has no search support).
  • Removed the disabled state, custom placeholder, and tooltip on the toolbar search input for DataCat — it now behaves like every other provider.

Test plan

  • Manually verify in browser: switch to DataCat, type "samurai" in search, confirm result count narrows to ~25 and entries are samurai-themed
  • Manually verify combined filtering: type a query and select a tag — both should narrow results together
  • Manually verify pagination: search for a common term ("elf"), confirm page 2 returns different characters than page 1
  • Manually verify clearing the query restores the full library view
  • Manually verify Fresh sort still works when no query is entered (24h trending window)

Summary by CodeRabbit

  • New Features
    • DataCat now supports free-text search in the recent section, allowing users to search for characters by entering text queries.

🔄 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/349 **Author:** [@LukaTheHero](https://github.com/LukaTheHero) **Created:** 5/2/2026 **Status:** ✅ Merged **Merged:** 5/2/2026 **Merged by:** [@LukaTheHero](https://github.com/LukaTheHero) **Base:** `main` ← **Head:** `feat/datacat-text-search` --- ### 📝 Commits (1) - [`5f7b814`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5f7b8142f2acf4d06e7d3c9906e6f0345ef9be60) feat(bot-browser): enable DataCat text search via recent-public ?search= ### 📊 Changes **2 files changed** (+17 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+9 -21) 📝 `packages/server/src/routes/bot-browser-datacat.routes.ts` (+8 -2) </details> ### 📄 Description ## Summary - DataCat's `/api/characters/recent-public` upstream does support free-text filtering via a `search=<text>` query param — the previous integration assumed it didn't and disabled the search input on this provider. Verified directly: `?search=anime` returns 159 results, `?search=elf` returns 472, `?search=samurai` returns 25, all vs. the unfiltered 84,339, and it composes cleanly with `tagIds` + pagination. - Server `/datacat/recent` now accepts an optional `q` query param and forwards it as `search` to upstream. - Client `datacatProvider.search` forwards `p.query` to the backend and forces the `recent-public` path whenever a query is present (the `/fresh` endpoint has no search support). - Removed the `disabled` state, custom placeholder, and tooltip on the toolbar search input for DataCat — it now behaves like every other provider. ## Test plan - [x] Manually verify in browser: switch to DataCat, type "samurai" in search, confirm result count narrows to ~25 and entries are samurai-themed - [x] Manually verify combined filtering: type a query and select a tag — both should narrow results together - [x] Manually verify pagination: search for a common term ("elf"), confirm page 2 returns different characters than page 1 - [x] Manually verify clearing the query restores the full library view - [x] Manually verify Fresh sort still works when no query is entered (24h trending window) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * DataCat now supports free-text search in the recent section, allowing users to search for characters by entering text queries. <!-- 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:08:50 +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#4572
No description provided.