[PR #4472] [MERGED] fix(noodle): hide uninvited and ambient profiles from Noodle search #6393

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4472
Author: @Gunterlie
Created: 8/2/2026
Status: ✅ Merged
Merged: 8/2/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/noodle-search-profile-access


📝 Commits (4)

  • 5bc5825 fix(noodle): hide uninvited profiles from search
  • ae6ff6b fix(noodle): recompute account search when invites change
  • a2fd2b5 Merge branch 'staging' into fix/noodle-search-profile-access
  • de82f2a Merge branch 'staging' into fix/noodle-search-profile-access

📊 Changes

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

View changed files

📝 packages/client/src/components/noodle/NoodleHome.tsx (+13 -2)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #4469

Why this change

  • Uninvited character profiles and ambient (random_user) profiles stayed discoverable through Noodle's @ search, even after uninviting and resetting the Noodle timeline. Users had no way to make an unwanted profile go away.
  • Expected behavior per the report: an uninvited profile keeps its stored row but is inaccessible unless re-invited.

What changed

  • packages/client/src/components/noodle/NoodleHome.tsx: new accountIsDiscoverable helper gating @ search results — character accounts must be invited directly or via an invited folder, random_user accounts only appear while allowRandomUsers is on, personas always appear.
  • Reuses the exact invited expression already used for mention suggestions and follow eligibility (mentionableCharacterAccounts, canFollowAccount), so search now agrees with the rest of the Noodle UI instead of having its own looser rule.
  • No server change: character deletion already removes the Noodle account (characters.routes.ts delete handler) and ghost accounts are reconciled on every Noodle open (noodle-public-support.ts), so a deleted character has no row left to match in search.

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

Needs manual verification in the app (not yet done — treat as a to-do list):

  • Manually verify: invite a character, search its @handle → profile appears.
  • Manually verify: uninvite that character, reset the Noodle timeline, search the @handle again → no result.
  • Manually verify: re-invite the character → the profile is searchable again.
  • Manually verify: invite a character only via a folder (invitedCharacterGroupIds) → still searchable (folder invites must not regress).
  • Manually verify: enable ambient profiles, let some post, then disable ambient profiles → their @handles no longer return results.
  • Manually verify: existing posts from an uninvited profile still render their author name/avatar from the post snapshot.
  • Manually verify: the invite panel still shows correct "Invited / Not invited" labels for uninvited characters.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Summary by CodeRabbit

  • Bug Fixes
    • Improved account search results by excluding users and characters that aren’t discoverable.
    • Continued showing invited characters and accounts with permitted visibility settings.

🔄 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/4472 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/2/2026 **Status:** ✅ Merged **Merged:** 8/2/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/noodle-search-profile-access` --- ### 📝 Commits (4) - [`5bc5825`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5bc5825495aa51c2b56290c6e0ebf23de50737cd) fix(noodle): hide uninvited profiles from search - [`ae6ff6b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ae6ff6b8e9709f98139b0f0ec94441f45a4f625c) fix(noodle): recompute account search when invites change - [`a2fd2b5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a2fd2b58ea9fe9f662811d61ed180e07b41cf07f) Merge branch 'staging' into fix/noodle-search-profile-access - [`de82f2a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/de82f2a15bf81ce1acd2f885c9ea4a3b6ccf6506) Merge branch 'staging' into fix/noodle-search-profile-access ### 📊 Changes **1 file changed** (+13 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/noodle/NoodleHome.tsx` (+13 -2) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #4469 ## Why this change - Uninvited character profiles and ambient (`random_user`) profiles stayed discoverable through Noodle's `@` search, even after uninviting and resetting the Noodle timeline. Users had no way to make an unwanted profile go away. - Expected behavior per the report: an uninvited profile keeps its stored row but is inaccessible unless re-invited. ## What changed - `packages/client/src/components/noodle/NoodleHome.tsx`: new `accountIsDiscoverable` helper gating `@` search results — character accounts must be invited directly or via an invited folder, `random_user` accounts only appear while `allowRandomUsers` is on, personas always appear. - Reuses the exact invited expression already used for mention suggestions and follow eligibility (`mentionableCharacterAccounts`, `canFollowAccount`), so search now agrees with the rest of the Noodle UI instead of having its own looser rule. - No server change: character deletion already removes the Noodle account (`characters.routes.ts` delete handler) and ghost accounts are reconciled on every Noodle open (`noodle-public-support.ts`), so a deleted character has no row left to match in search. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Needs manual verification in the app (not yet done — treat as a to-do list): - Manually verify: invite a character, search its `@handle` → profile appears. - Manually verify: uninvite that character, reset the Noodle timeline, search the `@handle` again → no result. - Manually verify: re-invite the character → the profile is searchable again. - Manually verify: invite a character only via a folder (`invitedCharacterGroupIds`) → still searchable (folder invites must not regress). - Manually verify: enable ambient profiles, let some post, then disable ambient profiles → their `@handles` no longer return results. - Manually verify: existing posts from an uninvited profile still render their author name/avatar from the post snapshot. - Manually verify: the invite panel still shows correct "Invited / Not invited" labels for uninvited characters. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved account search results by excluding users and characters that aren’t discoverable. * Continued showing invited characters and accounts with permitted visibility settings. <!-- 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-23 04:10:00 +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#6393
No description provided.