Repository navigation
feat(log-viewer): say what each debug level adds in the header dropdowns - #1198
Open
lukecotter wants to merge 7 commits into
Open
lukecotter wants to merge 7 commits into
lukecotter wants to merge 7 commits into
Conversation
The labels came from the Salesforce event table, but the level filter hides events by the level the parser gives them. Ten levels with events had no label, among them APEX_CODE WARN and every WAVE level. Add the ten labels, and a test that fails when the labelled levels and the parser's levels differ, or a label is empty. The dropdown test now checks which levels are described, not their wording, plus the APEX_CODE FINE example.
APEX_PROFILING FINEST said 'Limit usage', which read as if a log needs FINEST to show limit usage. An INFO log already shows it in the governor limits block. FINE said 'variables', the word APEX_CODE FINEST uses for variable assignments. FINEST now names per-statement limit usage and referenced objects, and FINE names variable lists.
The base select moves the highlight only when the row itself is the event target, and the row's text spans covered most of it, so the highlight moved only at a row's edge. A disabled row, such as a level the log was not captured at, became active on hover with no highlight: the dropdown foot showed its description, and Enter picked it. The text spans now pass the pointer to the row, and a disabled row is ignored.
The dropdown draws the active option's description as plain text at its foot, which a screen reader does not announce. Each option row now carries its description as aria-description.
Log levels shipped in 1.24.0, so the level descriptions get a new entry under Unreleased. The highlight and Enter fixes are bugs users of 1.24 can hit.
lukecotter
marked this pull request as ready for review
November 28, 2026 01:37
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 PR Overview
Each debug level in the header dropdowns now says what it adds to the log, e.g.
APEX_CODEFINEsaysMethods. Before, a user had to know the Salesforce event table to pick a level.🛠️ Changes made
DBERROR, shows no text.🧩 Type of change (check all applicable)
📷 Screenshots / gifs / video [optional]
Dark theme:
🔗 Related Issues
relates to #530
✅ Tests added?
📚 Docs updated?
🧪badge — see RELEASING.md)Anything else we need to know? [optional]
Done before review:
mainis on parser 0.5.0. Ten levels with events had no label, and now have one.DATA_ACCESS_EVALUATIONandPOLICY_RULE_*theDATA_ACCESScategory, atFINEandFINER.VF_APEX_CALL_START: the filter hides by the parser's level,VISUALFORCEFINE, so the label follows the parser:Apex calls.LIMIT_USAGE_FOR_NS:Governor limitsatINFOstill holds. The parser puts the line atAPEX_PROFILINGFINEST, but real logs write it inside theINFOlimit block, soFINESTnow saysPer-statement limit usage, referenced objects. The parser's level for this line is a separate issue.