Skip to content

Add selectedMarker to the console APIs#5107

Merged
canova merged 3 commits into
firefox-devtools:mainfrom
canova:console-selected-marker
Sep 4, 2024
Merged

Add selectedMarker to the console APIs#5107
canova merged 3 commits into
firefox-devtools:mainfrom
canova:console-selected-marker

Conversation

@canova

@canova canova commented Sep 3, 2024

Copy link
Copy Markdown
Member

This PR adds window.selectedMarker to the console API so we can access is easily.

It also has 2 more commits, one of them fixes a silly problem I had with the firefox profile ascii art. It always had uneven whitespaces which was triggering my OCD side :D
And the other commit fixes the console message styling which was broken after #5105.

I know that this is a silly commit, but I really wanted to fix this for
years to make my OCD side happy. Now when I select the message on
devtools console, it will show a proper block of whitespace instead of
the uneven whitespace
@canova canova requested a review from julienw September 3, 2024 11:43
@codecov

codecov Bot commented Sep 3, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.41%. Comparing base (6d19e07) to head (da763a3).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/utils/window-console.js 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5107      +/-   ##
==========================================
- Coverage   88.42%   88.41%   -0.01%     
==========================================
  Files         304      304              
  Lines       27549    27552       +3     
  Branches     7450     7450              
==========================================
+ Hits        24360    24361       +1     
- Misses       2961     2963       +2     
  Partials      228      228              

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

@canova canova force-pushed the console-selected-marker branch from 36d9812 to da763a3 Compare September 3, 2024 11:59

@julienw julienw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Comment on lines +309 to +314
// "window.retrieveRawProfileDataFromBrowser"
bold,
reset,
// "window.saveToDisk"
bold,
reset,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops

@canova canova merged commit 662dc4a into firefox-devtools:main Sep 4, 2024
@canova canova deleted the console-selected-marker branch September 4, 2024 10:02
@canova canova mentioned this pull request Sep 5, 2024
canova added a commit that referenced this pull request Sep 5, 2024
[Tatsuyuki Ish] Fix type error in getPagesMap (#5063)
[Nazım Can Altınova] [Tab selector 1] Add a redux state for the tab
filter (#5072)
[Markus Stange] Remove a test for the inverted stack chart. (#5075)
[Markus Stange] Add an inverted tree test for getSamplesSelectedStates
and getTreeOrderComparator (#5076)
[Nazım Can Altınova] [Tab selector 2] Extract the page data in the full
view (#5073)
[Nazım Can Altınova] Do not crash on timeline hover/selection when a
profile doesn't have any samples or markers (#5086)
[Nazım Can Altınova] [Tab selector 3] Generate page information for all
tabs (#5082)
[Nazım Can Altınova] [Tab selector 4] Add a getTabToThreadIndexesMap
selector to get relevant threads per tab (#5087)
[joshuaobrien] Use the word 'archive' instead of 'zip file' in copy
(#5081)
[Markus Stange] Send a UserAgent header to the symbolication server
again (#5103)
[Julien Wajsberg] Add some console utilities to retrieve the current
profile and save it to disk (#5105)
[Nazım Can Altınova]  Add `selectedMarker` to the console APIs (#5107)
And various dependency updates.
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