Commit 49d71d1
feat(browser_extension) add browser_extension and openadapt.browser (#744)
* add old chrome extension files
* add old changes back, related to chrome extension, in openadapt dir
* try web socket solution, add asyncio and websockets libraries to poetry
* now we can log the dom changes ina a desctop running python process
* remove the old nativeMessaging extension code
* rename dir
* save the dom chages into dummy db: chrome.db
* fix actions tests
* ran `poetry run black --preview . --exclude 'alembic'`
* remove sockets.py
* fix falke8 formatting issues
* ran `poetry run black --preview . --exclude 'alembic'`
* add browser event code
* chrome extension work wip
* fix reset_db python file.
* now, extension messages can be seen in logs when the recording is started.
* till trying to fix the issue: record functione execution gets stuck at read_browser_events due to asyncio.runForever
* browser_events can be seen in db
* ran black and flake8
* add documentation in extension side js files and remove unused files
* #744 (review)
Update readme.md
* #744 (comment)
remove mlds logo
* #744 (comment)
add todo
* #744 (comment)
add NAMED_CONSTANT
* #744 (comment)
remove unused lines in content.js
* #744 (comment)
uncomment for `alembic upgrade`
* #744 (comment)
resolve this
* #744 (comment)
remove unwanted obfuscate keys
* #744 (comment)
used joinedload
* #744 (comment)
remove unwanted return
* #744 (comment)
Ran the following:
- `alembic revision --autogenerate -m "regenrate with browser_event table"`
- `alembic upgrade head`
* #744 (comment)
remove unwanted commetns lines
* #744 (comment)
remove commented lines
* https://github.com/OpenAdaptAI/OpenAdapt/pull/744/files#r1668802201
added this todo
* #744 (comment)
optimize browser events record by adding an option to include to record or not like audio
* #744 (comment)
move constants to config
* #744 (comment)
update readme
* update readme again
* #744 (comment)
update config default for RECORD_BROWSER_EVENTS
* #744 (comment)
removed unessary comment in events.py
* Update openadapt/models.py
#744 (comment)
Co-authored-by: Richard Abrich <[email protected]>
* #744 (comment)
resolve d
* https://github.com/OpenAdaptAI/OpenAdapt/pull/744/files/3836c3d165bb11c5615c83a0df65f6cdc155f93f#r1676068390
resolved
* ran black on openadapt dir
`poetry run black --preview openadapt/`
* #744 (comment)
fixed faiing tests
* update the form type script
* add the record browser flag in classification group
* #744 (comment)
Co-authored-by: Richard Abrich <[email protected]>
* #744 (comment)
Co-authored-by: Richard Abrich <[email protected]>
* #744 (comment)
Co-authored-by: Richard Abrich <[email protected]>
* Update openadapt/config.py: #744 (comment)
#744 (comment)
Co-authored-by: Richard Abrich <[email protected]>
* Update openadapt/record.py
#744 (comment)
Co-authored-by: Richard Abrich <[email protected]>
* Update openadapt/config.py: https://github.com/OpenAdaptAI/OpenAdapt/pull/744/files/aa7b1ae7df8fb7045abb5d71d1d41a09f2d8bea2#r1691430453
https://github.com/OpenAdaptAI/OpenAdapt/pull/744/files/aa7b1ae7df8fb7045abb5d71d1d41a09f2d8bea2#r1691430453
Co-authored-by: Richard Abrich <[email protected]>
* Remove 3 unused functions owing to:
#744 (comment)
#744 (comment)
#744 (comment)
* Update openadapt/record.py: #744 (comment)
#744 (comment)
Co-authored-by: Richard Abrich <[email protected]>
* Rename owing to: #744 (comment)
* Rename const: #744 (comment)
* Remove unused: #744 (comment)
* Use ClassVar again: #744 (comment)
* Update openadapt/models.py: #744 (comment)
#744 (comment)
Co-authored-by: Richard Abrich <[email protected]>
* Update openadapt/record.py: #744 (comment)
#744 (comment)
Co-authored-by: Richard Abrich <[email protected]>
* Update openadapt/record.py: #744 (comment)
#744 (comment)
Co-authored-by: Richard Abrich <[email protected]>
* Move string to const: #744 (comment)
* Correct Grammatical errors: #744 (comment)
* fix visualize and reformat
* fix alembic migrations
* Intersection/MutationObserver; _repr_ignore_attrs; fix process_events
* synchronize timestamps
* attachWindowEventListeners
* recreate alembic migration
* sync; buffer
* add dtw.py (wip)
* remove sorting and syncing; working experiments/dtw.py
* fix content.js
* report screenX/screenY; fix getScreenCoordinates; compute coordinate differences
* wip
* remove observers; composite distance; task_by_name
* replace eventBuffer with coordMappings; compute tlbr-screen in browser.py
* assign_browser_events in events.py
* black; docstrings
* flake8
* update test
* black
* add test_browser.py
---------
Co-authored-by: pate1595 <[email protected]>
Co-authored-by: Krish Patel <[email protected]>1 parent 1476966 commit 49d71d1
File tree
27 files changed
+2152
-75
lines changed- chrome_extension
- icons
- openadapt
- alembic
- versions
- app/dashboard
- app/settings/record_and_replay
- components/ActionEvent
- types
- db
- extensions
- scripts
- tests/openadapt
27 files changed
+2152
-75
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
167 | 199 | | |
168 | 200 | | |
169 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments