Improve activity search empty state#449
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTemplate on ChangesActivity page search-aware empty states
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
GHX5T-SOL
left a comment
There was a problem hiding this comment.
Reviewed current head d676db4b2332acdb3f874e121cf86f9b00817367.
The change is narrowly scoped to /activity search rendering: it adds an active-search notice, replaces the generic empty-ledger copy with search-specific no-match messages, and keeps the existing clear-search path. That behavior matches the source #427 UX bounty and is distinct from the already paid bounty-list empty-state work.
I checked the template against the existing activity serializer: the rendered query value is the normalized escaped context value, and contributors/recent rows are both derived from the same filtered activity result set, so the new empty messages follow the API state rather than inventing separate UI logic.
Validation run locally on this head:
python -m pytest tests/test_activity.py -q-> 3 passedpython -m pytest -q-> 413 passedpython scripts/docs_smoke.py-> docs smoke okpython -m ruff check .-> passedpython -m ruff format --check .-> 79 files already formattedpython -m mypy app-> successgit diff --check origin/main...HEAD-> passed- diff Gitleaks scan -> no leaks
GitHub currently shows the PR open/non-draft, mergeable MERGEABLE/CLEAN, Quality/readiness/docs/image checks successful, and CodeRabbit successful with no actionable comments. No blockers found.
weilixiong
left a comment
There was a problem hiding this comment.
LGTM — empty state UX improvements for activity search. Template-only, conditional rendering isolated. Zero risk.
tolga-tom-nook
left a comment
There was a problem hiding this comment.
Evidence review for MRWK review round 12 (#447):
I checked the current head of this PR against origin/main and the change is narrowly scoped to app/templates/activity.html plus tests/test_activity.py.
What I verified:
- The searched state now renders a positive "Showing accepted work matching ..." notice only when
queryis set. - A no-match search now distinguishes filtered-empty results from the global empty ledger state by showing
No contributors match this search.andNo accepted work matches this search.while suppressing the unfiltered empty-copy strings. - Existing matched-search behavior is preserved:
value="bob"and the existing clear link are still asserted, and the no-match assertions make sure the new branch does not regress the paid/empty page states.
Commands run on the fetched PR head:
/home/ubuntu/hermes-agent/.venv/bin/python -m pytest tests/test_activity.py -q->3 passed in 2.13s/home/ubuntu/hermes-agent/.venv/bin/python -m ruff check tests/test_activity.py->All checks passed!
Verdict: no blockers from this focused review. The PR matches the UX-improvement scope and includes direct regression coverage for the filtered empty state.
Summary
/activityso filtered views say what query is active.Bounty #427
Evidence
qsearch, but a no-match search currently renders the same copy as a completely empty ledger.app/templates/activity.htmlandtests/test_activity.py.Test Evidence
./.venv/bin/python -m pytest tests/test_activity.py -q-> 3 passed./.venv/bin/python scripts/docs_smoke.py-> docs smoke ok./.venv/bin/python -m ruff check .-> passed./.venv/bin/python -m ruff format --check .-> 79 files already formatted./.venv/bin/python -m mypy app-> success./.venv/bin/python -m pytest -q-> 413 passedgit diff --check-> passedMRWK
Related bounty or issue (
Bounty #NorRefs #Nfor multi-award bounties): Bounty #427Summary by CodeRabbit