Commit Graph

13 Commits

Author SHA1 Message Date
690343e642 Before and after views are flipped (#95)
* Before and after view are flipped
Fixes #94

* Test e2e artifacts upload

* Revert "Test e2e artifacts upload"

This reverts commit bcecfd5fc2aa22e108a83a00e3f33f698b4ab294.

* Prettier
2023-04-14 15:49:03 -04:00
f79dfda9c5 Add diff observer, rerunning injection if new elements are late (#82)
* Draft: WIP observer

* Clean up, only one react root

* Typescript 4.9.5

* Clean up

* Better name
2023-04-13 04:49:57 -04:00
0ebcbe118d screen.get*ByRole breaking yarn test (#88) 2023-04-11 05:31:38 -04:00
9f45958083 Better error handling and small wait before element queries (#55)
* Proper error handling and more logs

* Lint

* Add 1sec wait before looking for elements

* Clean up
2023-04-03 05:26:32 -06:00
31eef054b6 Re-enable STL support (#61)
* OBJ as the new default viewer format

* Replace deprecated btoa

* Clean up

* Hide existing STL toggle

* No Box if no before/after

* Adds error message when no geometry
2023-03-30 20:55:38 -04:00
f491739193 Adds support for .step extension, disables .stl (#51)
* New structure to map multiple extensions to type, and disable STL

* Clean up
2023-03-30 04:32:29 -04:00
e8d4798c17 Update viewers on window resize (#52)
* Update three on window resize
Fixes #43

* Clean up
2023-03-30 04:31:58 -04:00
3df22f1116 Add toggle between source and rich diff for CAD (#36)
* Remove await on GetFileDiff
Progress towards #28

* n roots instead of 2n

* Lint

* Trying something with portals

* Portal component, one root

* Fix element clean up, prep for later tasks

* Draft: toolbar element injection

* Working click to select rich or source

* Actually working now

* Fixes

* Clean up

* Polishing here and there

* Add SourceRichToggle component

* e2e test with toolbar

* Update linux snapshots

* Remove failing test (WIP)

* Clean up
2023-03-27 16:37:21 -04:00
0be1f4ef30 Improve diff injection performance (#30)
* Remove await on GetFileDiff
Progress towards #28

* n roots instead of 2n

* Lint

* Trying something with portals

* Portal component, one root

* Fix element clean up, prep for later tasks
2023-03-22 04:46:17 -04:00
f4fa083137 e2e tests (#17)
* Setup playwright for e2e tests
Fixes #12

* Chromium

* First working test, clean up

* Merge actions

* New headless mode

* Clean up, bugfix

* Bug fixes, cleaner sendMessage code

* Rebase

* Rebase

* Load tokens and open public page

* Test CI

* Working test

* Lint

* Try to address flakyness

* Clean up test

* Comment

* No export

* More clean up

* More clean up

* Adds authorized pop up test

* Adds comment

* Add snapshots

* New linux screenshots
2023-03-15 04:32:46 -04:00
f8b891cb47 Stealing the website's viewer (#15)
* Stealing the website's viewer

* Cleaned up, diff colors

* fix test

* Clean up unused logic

* Clean up
2023-03-08 05:45:25 -05:00
a1a90a7d2a Support commit diffs (#8)
* cra boilerplate

* Dummy chrome extension

* eslint and working url popup

* content script and dummy messaging

* replace .obj diffs with dummy test

* comment and in-order multiple type support

* get pull api data from url

* README title and desc

* api/elements match with filename check

* github token signin signout

* manifest v3, service request for CORS

* working kittycad api in service worker

* First real background message

* Clean up,  better types

* Fix settings

* multiservice settings

* Tweaks

* WIP: download file

* Working downloads and kittycad conversion

* Inject react, add three dependencies

* Working stl canvas

* primer for github-like style

* Loading before model

* diff colors

* colorMode auto

* Popup clean up

* clean up

* Working loading

* Logos

* Add GitHub CI

* Working test

* yarn test in ci

* Little tweak

* Update README

* component tests

* Better test

* Clean up

* UserCard test

* working caddiff test

* Note

* Rename App to Settings

* storage test

* Clean up

* Clean up content script

* further content cleanup

* Fix test

* Little tweaks to modelview

* More tests and testing

* Regex fix

* LFS file download test

* prettier config from kittycad/website

* Little tweaks

* comment

* log level

* Tweaks

* README update

* more prettier

* comment

* Irrelevant comment

* No .vscode and readme update

* Remove .vscode

* Package.json update after vscode removal

* Working commit diff

* Start cleaning up

* Clean up

* Add artifact upload

* return when matched

* Better test

* Clean up

* prettier

* Clean up html snippet
2023-03-02 21:16:22 -05:00
fd44076a18 Minimal working version (#1)
* cra boilerplate

* Dummy chrome extension

* eslint and working url popup

* content script and dummy messaging

* replace .obj diffs with dummy test

* comment and in-order multiple type support

* get pull api data from url

* README title and desc

* api/elements match with filename check

* github token signin signout

* manifest v3, service request for CORS

* working kittycad api in service worker

* First real background message

* Clean up,  better types

* Fix settings

* multiservice settings

* Tweaks

* WIP: download file

* Working downloads and kittycad conversion

* Inject react, add three dependencies

* Working stl canvas

* primer for github-like style

* Loading before model

* diff colors

* colorMode auto

* Popup clean up

* clean up

* Working loading

* Logos

* Add GitHub CI

* Working test

* yarn test in ci

* Little tweak

* Update README

* component tests

* Better test

* Clean up

* UserCard test

* working caddiff test

* Note

* Rename App to Settings

* storage test

* Clean up

* Clean up content script

* further content cleanup

* Fix test

* Little tweaks to modelview

* More tests and testing

* Regex fix

* LFS file download test

* prettier config from kittycad/website

* Little tweaks

* comment

* log level

* Tweaks

* README update

* more prettier

* comment

* Irrelevant comment

* No .vscode and readme update

* Remove .vscode

* Package.json update after vscode removal
2023-03-02 04:35:07 -05:00