Create new Query Diff tab#1070
Create new Query Diff tab#1070leonidasmi wants to merge 83 commits intojohnbillion:client-side-rendering-featurefrom
Conversation
Label element has no meaning without being associated with a form field. Buttons are self-labeling through their internal content or aria-label, and don't need a label associated.
This reverts commit 4b78701.
All toggle buttons had the same text "Toggle more information", requiring screen reader users to explore the surrounding context on every button to determine context. Having immediate access to context makes locating information or verifying that you are toggling to correct data significantly faster.
# Conflicts: # output/html/block_editor.php # output/html/hooks.php # output/html/http.php # output/html/languages.php # output/html/timing.php
# Conflicts: # output/Html.php
# Conflicts: # output/html/http.php
# Conflicts: # assets/query-monitor.js
|
This looks interesting! I will say that this is probably best done properly once version 4 is out and we've switched to rendering the panels with Preact and gotten rid of the jQuery soup. But I like the idea a lot. |
|
Glad you like it! I'll come back to it once v4 is out, good luck with that. |
|
By the way, I'd love to take a stab at it now, even if 4.0.0 isn't out, if you think it's not a terribly bad idea. For that, I can branch out of release-4.0.0-alpha.2 and (slowly) port what I have here into the new rendering logic. |
|
It's up to you. The branch is fairly stable now (although I still need to make changes to the way stack traces are recorded) but I've not written much documentation yet. Data collection hasn't really changed but the CONTRIBUTING.md file details how the data classes are now generated and passed from php to react. |
Disclaimer: This is a POC and not a finished product. The code has been briefly validated, but may very well lack proper security, privacy or performance measures.
Context
Relevant technical choices:
db_queriescollector.How to use:
Possible next steps:
UPDATE `wp_usermeta` SET `meta_value` = '1770383389' WHERE `user_id` = 1 AND `meta_key` = 'wc_last_active'query is repeated with different meta valuesAcceptance Test Instructions
Toggling the new setting
qm-query-diff-enabledentry.Enable query diff trackingsettingqm-query-diff-enabledentry in local storage and it is true.qm-query-diff-dataentry in the session storageqm-query-diff-dataentry in the session storage data via the Application tab in dev toolsEnable query diff trackingsettingqm-query-diff-dataentries anymore in the session storage dataqm-query-diff-enabledentry as true in your local storage. It should be false now.Moving to a different page:
qm-query-diff-dataentry in the session storage has a URL attribute that's equal to the current page's URLqm-query-diff-dataentry in the session storage has been updates so the URL attribute is now equal to the new page's URLRefresh this page to compare queries between page loadsmessage in the Query Diff panel.