fix(admin): clarify Overview Recent Activity scope - #1079
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Hi @igorwfaoro, thanks for picking this up, and the direction is right: the middle option is what the issue asked for. Before I review it properly, one thing to sort out. This diff is the same change as #1002, which I closed on 19 Sep. Not the same approach, the same code: the same wrapper classes, the same That PR is closed but public, so there is nothing hidden here. I just want the PR to say where the code came from. If you built on #1002, please note that in the body and credit it. If you did not, tell me and I will take your word for it. Why I am asking at all, rather than just merging working code. I closed #1002 because it came from an account that opened 171 PRs in one day across about 50 repos. The Two notes either way, since #1002 was better on both: keep the empty-state Separately, "No application-recorded events in this preview." points at a "preview" that is not named anywhere on the card. The card reads "Recent Activity". Something like "No recent activity here. The Audit tab has the full record." says the same thing without the dangling referent. |
|
@cevheri Thanks for pointing this out. I did see that #1002 existed, but I didn't read or use its code as a reference for my implementation. I worked from #992 and used an AI coding agent (OpenCode) to help implement and test the change. So I wasn't aware that the resulting code was this similar to #1002. I understand your concern, especially given the context you explained around good first issues. I'll make the changes you suggested: restore the empty-state data-testid, add the comment explaining why the link is unconditional, and improve the empty-state wording. Thanks for taking the time to explain the reasoning behind it. |
|
Thanks, I'll take your word for it, and thanks for picking up the three changes. One correction to my own suggestion before you push it: "The Audit tab has the full record" is wrong. The Audit tab reads the same buffer and says so in its own disclosure (proxy-recorded denials are missing there too), which is the exact gap #992 is about. Something like "No recent activity here. The Audit tab explains what this feed does not capture." keeps the pointer without claiming completeness. Any wording that does not call the Audit tab complete is fine. |
|
Applied the requested follow-ups in commit |
|
thanks, merging after finishing CI |
Description
The Overview tab's Recent Activity widget reads an application-recorded audit preview and browser-local query history. Because proxy-recorded boundary denials are not present in that preview, the old empty state could be read as a complete statement that no activity occurred.
This takes the middle option accepted in #992: keep the existing preview, provide an always-visible path to the Audit tab, and make the empty state explicit without changing the audit buffer or proxy.
Type of Change
Related Issue
Closes #992
Changes Made
Testing
Test Environment
Checks run
Screenshots (if applicable)
Not included — the behavior was verified through component tests and Playwright UAT.
Checklist
Additional Notes
The PR intentionally does not attempt to make the per-process audit buffer complete. That is outside #992 and would require a separate audit-sink design.