Skip to content

The List Browser's search can ask only the bots that are online (#926) - #931

Merged
Ninja-FSE merged 2 commits into
mainfrom
feat/926-search-online-only
Sep 24, 2026
Merged

Ninja-FSE merged 2 commits into
mainfrom
feat/926-search-online-only

Conversation

@chchatzop

Copy link
Copy Markdown
Collaborator

Item 7 of #926, AutoGet's Online Only.

The cross-list filter searched every held list, including bots that left days ago, so the best match was often a file nobody could send.

  • An Online only checkbox beside the filter sends ?online=1.
  • build_crosslist_search_payload(online_only=True) keeps only the lists whose bot is in one of our channels right now. It uses dcc.user_is_present_in_ram(), the same presence check every request uses. The rest are reported in empty, so the sidebar dims them.
  • With the box unticked, nothing changes.

tests/test_the_search_can_ask_only_bots_that_are_online.py (5) covers the filter off, on, nobody online, and the route and page passing the flag. Removing the presence check fails two of them. Full suite 6614 OK. It merges cleanly with #925, #928, #929 and #930.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AP6LSxkr4n9dMFNSNMogmW

AutoGet's Online Only. An Online only switch beside the cross-list
filter keeps only the lists whose bot is in one of our channels right
now; the rest are reported with the lists that had no match, so the
sidebar dims them. Off, nothing changes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AP6LSxkr4n9dMFNSNMogmW
# Conflicts:
#	docs/UPDATES-PUBLIC.md
#	docs/UPDATES.md
@Ninja-FSE
Ninja-FSE merged commit b8b7fdf into main Sep 24, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants