Skip to content

feat(frontend): filter console messages by type - #8515

Open
sshiv012 wants to merge 2 commits into
apache:mainfrom
sshiv012:feat/console-message-type-filter
Open

feat(frontend): filter console messages by type#8515
sshiv012 wants to merge 2 commits into
apache:mainfrom
sshiv012:feat/console-message-type-filter

Conversation

@sshiv012

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

The console badges every message with its type but offers no way to act on it. A Python UDF that prints per tuple buries a single ERROR under its output, and the panel auto-scrolls, pushing it out of view.

Adds a filter menu beside the settings gear: a checkbox per message type plus a select-all, and a line above the list reporting how many messages are hidden. The gear keeps the display options it already had.

Each filter option carries the same badge colour as the rows it controls. Every type is visible by default, and a type the console has not seen before stays visible rather than being hidden by an unknown-type default.

Both toolbar controls become buttons so the menus can be reached by keyboard — the settings gear could not be, as a bare <a> with no href. Verified by focusing the trigger and pressing Enter.

Any related issues, documentation, discussions?

Closes #8495

How was this PR tested?

42 unit tests in console-frame.component.spec.ts, up from 33 before this change.

Verified live against a 1-out Python UDF emitting 23 PRINT messages, one ERROR, plus COMMAND and DEBUGGER from the debug console — unticking Print leaves the error alone at the top.

The DOM tests were checked by mutation: swapping two checkbox bindings, and replacing the hidden-count interpolation with a literal, each fail a test.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5)

🤖 Generated with Claude Code

https://claude.ai/code/session_016m8VBHFdnbBvNovMonAK9t

The console badges every message with its type but offers no way to act
on it, so a UDF that prints per tuple buries a single ERROR under its
output and the panel scrolls it out of view.

Add a filter menu beside the settings gear holding a checkbox per type
and a select-all, and a line above the list reporting how many messages
are hidden. The gear keeps the display options it already had.

Every type is visible by default, and a type the console has not seen
before stays visible rather than being hidden by an unknown-type
default.

Both toolbar controls become buttons so the menus can be reached by
keyboard, which the settings gear could not be as a bare anchor. They
open on click and stay open while their options are used.

Closes apache#8495

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016m8VBHFdnbBvNovMonAK9t
@github-actions github-actions Bot added feature frontend Changes related to the frontend GUI labels Sep 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @aglinxinyuan, @kunwp1, @Yicong-Huang
    You can notify them by mentioning @aglinxinyuan, @kunwp1, @Yicong-Huang in a comment.

@codecov-commenter

codecov-commenter commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.91667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 93.81%. Comparing base (069cd20) to head (4bbb8ac).

Files with missing lines Patch % Lines
...t-panel/console-frame/console-frame.component.html 96.29% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8515      +/-   ##
============================================
+ Coverage     93.63%   93.81%   +0.18%     
+ Complexity     4858     4812      -46     
============================================
  Files          1212     1208       -4     
  Lines         50037    49769     -268     
  Branches       6132     6088      -44     
============================================
- Hits          46850    46691     -159     
+ Misses         1675     1592      -83     
+ Partials       1512     1486      -26     
Flag Coverage Δ *Carryforward flag
access-control-service 81.00% <ø> (+0.81%) ⬆️ Carriedforward from 1cbe857
agent-service 99.32% <ø> (ø) Carriedforward from 1cbe857
amber 89.91% <ø> (+0.04%) ⬆️ Carriedforward from 1cbe857
computing-unit-managing-service 75.69% <ø> (-1.46%) ⬇️ Carriedforward from 1cbe857
config-service 87.12% <ø> (ø) Carriedforward from 1cbe857
file-service 87.91% <ø> (+4.26%) ⬆️ Carriedforward from 1cbe857
frontend 96.16% <97.91%> (-0.01%) ⬇️
notebook-migration-service 83.53% <ø> (-0.20%) ⬇️ Carriedforward from 1cbe857
pyamber 98.47% <ø> (ø) Carriedforward from 1cbe857
workflow-compiling-service 77.19% <ø> (+3.09%) ⬆️ Carriedforward from 1cbe857

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Console messages cannot be filtered by type

2 participants