Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

tool tip #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
evaSUry wants to merge 68 commits into open-source-labs:master from oslabs-beta:eva/debugging
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
619fb93
got ax tree console.logging in background.js
Oliver-Cho Jan 29, 2024
e9cc9a2
Merge pull request #1 from oslabs-beta/ax_tree
Oliver-Cho Jan 29, 2024
7bee9cd
resolved promise bug due to not detaching chrome.debugger
Oliver-Cho Jan 29, 2024
6664123
Merge pull request #2 from oslabs-beta/ax_tree
Oliver-Cho Jan 29, 2024
dd81c7b
added trigger
Oliver-Cho Jan 30, 2024
055aeab
fixed looping bug. Now ax tree is console.logged upon state change
Oliver-Cho Jan 30, 2024
d84a449
removed TOE console.logs
Oliver-Cho Jan 30, 2024
83e6d0d
Merge pull request #3 from oslabs-beta/new_ax_tree
Oliver-Cho Jan 30, 2024
e3a1236
working on background.js
Oliver-Cho Jan 30, 2024
d6d5912
added old jest-environment-jsdom package and changed setupFilesAfterE...
Oliver-Cho Jan 30, 2024
c79795a
added recordAXSnap when target app is checked if valid react app
Oliver-Cho Jan 30, 2024
a60e6ae
saved pruned properties of chrome ax tree in tabsObj through the prop...
ay7991 Jan 30, 2024
12eabc3
Merge pull request #4 from oslabs-beta/amy/addAxSnapshots
Oliver-Cho Jan 30, 2024
2adef8f
intial experimentation with JSONTree formatting and importinf that us...
evaSUry Jan 30, 2024
64846b4
Merge branch 'develop' into eva/axComponents
evaSUry Jan 30, 2024
da5e69a
original code replaced snapshots in axSnapshots array, now they are p...
ay7991 Jan 30, 2024
216199c
Merge pull request #5 from oslabs-beta/amy/addAxSnapshots
ay7991 Jan 30, 2024
d59c143
removed window message for recordAXSnap and instead piggy back on rec...
Oliver-Cho Jan 31, 2024
0af4849
removed recordAXSnap switch case
Oliver-Cho Jan 31, 2024
bd7f002
removed recordAXSnap switch case entirely
Oliver-Cho Jan 31, 2024
2fadabf
removed window.postmessage recordAXSnap
Oliver-Cho Jan 31, 2024
1271a22
added axtree console.log on connect too
Oliver-Cho Jan 31, 2024
c0bd206
successfully creating a mimicked fiber tree structure rendered in new...
evaSUry Jan 31, 2024
ce8a5ae
AxSnapshot now added to hierarchy
Oliver-Cho Jan 31, 2024
07ecd78
removed console.logs
Oliver-Cho Jan 31, 2024
04d79f6
changed an error log
Oliver-Cho Jan 31, 2024
6d1001f
removed axSnap parameter from HistoryNode constructor
Oliver-Cho Jan 31, 2024
061ea4c
now console.logging deep copy of tabsObj[tabId] so that when object i...
Oliver-Cho Feb 1, 2024
300ad6d
Merge pull request #8 from oslabs-beta/oliver/ax-time-travel
jguerrero35 Feb 1, 2024
5c2c92f
merging developMerge branch 'develop' into eva/axComponents
jguerrero35 Feb 1, 2024
0e8bd84
Merge pull request #9 from oslabs-beta/eva/axComponents
jguerrero35 Feb 1, 2024
8430fd3
added ax array to accessibility tab
jguerrero35 Feb 3, 2024
eddac0b
worked on clearing axsnapshots properly
Oliver-Cho Feb 3, 2024
dd8fe75
added ax array to accessibility tab
jguerrero35 Feb 3, 2024
288cf6a
added ax array to accessibility tab
jguerrero35 Feb 3, 2024
38f1117
Merge pull request #11 from oslabs-beta/jesse/access
ay7991 Feb 3, 2024
70155c3
fixed typo in Routes.navigage error message
Oliver-Cho Feb 3, 2024
4d4bba5
accessibliity tab now has time travel instead of whole axsnapshots array
Oliver-Cho Feb 3, 2024
f90ad7f
Merge pull request #12 from oslabs-beta/oliver/ax-time-travel
ay7991 Feb 3, 2024
72ae712
made minor changes
Oliver-Cho Feb 3, 2024
6ed2126
added more comments about emptySnap action
Oliver-Cho Feb 3, 2024
e55f799
Merge branch 'develop' into oliver/ax-time-travel
Oliver-Cho Feb 3, 2024
6c1c4e1
added comments about a potential bugfix in background.js (should also...
Oliver-Cho Feb 3, 2024
a02dee0
refactored clear button, which was keeping last state recorded withou...
Oliver-Cho Feb 3, 2024
f8445f5
testing visx visualization with example data
ay7991 Feb 10, 2024
5793383
Merge pull request #13 from oslabs-beta/oliver/ax-time-travel
evaSUry Feb 12, 2024
3f92293
giving all ax nodes currently without a name a name
evaSUry Feb 12, 2024
5168e97
Merge pull request #15 from oslabs-beta/eva/nonexistentName
ay7991 Feb 12, 2024
6a4f045
nodes currently lay on top of one another, working to expand into tre...
ay7991 Feb 12, 2024
832fc03
attempting to pass in height referencing the parent size component of...
ay7991 Feb 12, 2024
d7d87ac
attempting to pass in height referencing the parent size component of...
ay7991 Feb 12, 2024
1ccf620
attempted to provide values to undefined name property when pruning t...
ay7991 Feb 12, 2024
8021478
referencing defaultMargins correctly based on updated prop drilling, ...
ay7991 Feb 12, 2024
3b9b225
console logged through component map tree to identify population of v...
ay7991 Feb 12, 2024
7c37f56
Merge branch 'develop' into amy/visualizeAxTree
ay7991 Feb 12, 2024
ac435cd
incorporating new name data into tool tip
evaSUry Feb 12, 2024
970dd04
converted root node from a circle to a rectangle shape
ay7991 Feb 13, 2024
831713d
included console logs to get the data type of node list and current s...
ay7991 Feb 13, 2024
3dceab2
removed commented code within the prune ax tree function
ay7991 Feb 13, 2024
f6cfcbb
refactored organizeAxTree function to not use the built in includes m...
ay7991 Feb 14, 2024
d9edf47
removed excessive console logs
ay7991 Feb 14, 2024
1f20b70
refactored prune ax tree function to only push nodes with the role ty...
ay7991 Feb 14, 2024
2dc08c8
adjusted nodeLength values to test spacing for ax tree nodes in acces...
ay7991 Feb 14, 2024
fce58c6
Merge pull request #18 from oslabs-beta/amy/visualizeAxTree
jguerrero35 Feb 14, 2024
daf99c3
initial tooltip rendered for ax
evaSUry Feb 14, 2024
e044280
Merge branch 'develop' into eva/debugging
evaSUry Feb 14, 2024
4af16ca
tool tip with ignored state and properties
evaSUry Feb 15, 2024
e6440a8
cleaning up console logs and unnecessary lines
evaSUry Feb 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
got ax tree console.logging in background.js
  • Loading branch information
Oliver-Cho committed Jan 29, 2024
commit 619fb9319d0bbb6e4ca9aef77fc683a7a76c3859
30 changes: 30 additions & 0 deletions src/extension/background.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,23 @@ function changeCurrLocation(tabObj, rootNode, index, name) {
}
}

// get ax tree
// function getAccessibilityTree(tabId) {
// chrome.debugger.attach({ tabId: tabId }, '1.3', function () {
// chrome.debugger.sendCommand({ tabId: tabId }, '1.3', 'Accessibility.enable', {}, function () {
// chrome.debugger.sendCommand(
// { tabId: tabId },
// '1.3',
// 'Accessibility.getFullAxTree',
// {},
// function (response) {
// console.log(response);
// },
// );
// });
// });
// }

/*
The 'chrome.runtime' API allows a connection to the background service worker (background.js).
This allows us to set up listener's for when we connect, message, and disconnect the script.
Expand Down Expand Up @@ -248,6 +265,19 @@ chrome.runtime.onConnect.addListener((port) => {
return true;

case 'jumpToSnap':
// console.log('background.js: jumpToSnap:', getAccessibilityTree(tabId));
chrome.debugger.attach({ tabId: tabId }, '1.3', () => {
chrome.debugger.sendCommand({ tabId: tabId }, 'Accessibility.enable', () => {
chrome.debugger.sendCommand(
{ tabId: tabId },
'Accessibility.getFullAXTree',
{},
(response) => {
console.log(response);
},
);
});
});
chrome.tabs.sendMessage(tabId, msg);
return true; // attempt to fix message port closing error, consider return Promise

Expand Down
2 changes: 1 addition & 1 deletion src/extension/build/manifest.json
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"matches": ["<all_urls>"]
}
],
"permissions": ["contextMenus", "tabs", "activeTab", "scripting", "system.display"],
"permissions": ["contextMenus", "tabs", "activeTab", "scripting", "system.display", "debugger"],
"host_permissions": ["<all_urls>"]
}

AltStyle によって変換されたページ (->オリジナル) /