Граф коммитов

553 Коммитов

Автор SHA1 Сообщение Дата
Tanner Barlow 54d5ca7b12
refactor:Refactor canvas component to utilize internal state (#594)
Refactors the canvas component to utilize internal state as opposed to directly modifying the selected asset from the properties. Fixes some race conditions when making changes to assets and their regions.

[AB#17114]
2019-02-20 14:43:47 -08:00
Luisa de Miranda aea056ea26 rebasing and squashing wabrez/integrat-vott-react (#591)
* rebasing and squashing wabrez/integrat-vott-react

* updated canvas tools
2019-02-20 07:27:50 -08:00
Tom Miller 2e5acb6f92
Only hook video state change on non-preview assets AB#17076 (#575)
* Only hook video state change on non-preview assets

* Updating tests

* Adding unit test
2019-02-18 20:02:14 -08:00
Wallace Breza 43a7bec341
Fixes previous/next buttons to navigate between assets (#576)
* Updated editor page state to not include child assets

* Added more unit tests to verify asset metadata saving

* Reverted changes to sidebar

* Renamed `isChildAssetType` to `isTaggableAssetType`

* Renamed parentAsset to rootAsset to make this more clear

* Address PR feedback
2019-02-15 16:58:19 -08:00
My 1cff53dda6 add keyboard shorcut for navigating video frames (#588)
1. q/e for navigating between tagged frames
1. a/d & left/right-arrow for navigating between non-tagged frames
2019-02-15 16:54:58 -08:00
Wallace Breza 5ebe0ae341
Removed toolbar items that are not implemented (#589)
* Removed toolbar items that are not implemented

* Removed commented out copyRect toolbar item

* Removed unused reference to copy rectangle component
2019-02-15 16:54:33 -08:00
My 9579d83c48
fix sidebar so it's in sync with asset navigation (#584) 2019-02-15 10:21:02 -08:00
P.J. Little 1b249ebaff
Updating report CI scripts to be more robust. (#581) 2019-02-15 10:10:17 -08:00
Wallace Breza db6d8a2385
Refactor region tags to only be a string array (#587)
* Refactor region tags to only be a string array

* Removed unused variable
2019-02-15 09:49:01 -08:00
Jacopo Mangiavacchi 5cd7e9128e
Fix Asset detection from path (#578)
* Fix Asset detection from path

* do not override fileName

* Generilize extension multi split detection
2019-02-14 22:54:25 -08:00
Tom Miller 6a84effee7 Inital user docs for video player AB#17082 (#580)
* Inital doc for video player

* Updating docs based on PR feedback

* Updating based on PR feedback
2019-02-14 17:09:13 -08:00
Tom Miller dff6aaa2c5
EditorPage does not have correct state when navigating directly via URL- AB#17079 (#577)
* Updating EditorPage state when navigating directly to the page via URL once props have been received.

* Adding test to verify bug fix
2019-02-14 11:57:41 -08:00
P.J. Little 44df6597b5 Added CI script for updating complexity reports, pushing to blob (#574) 2019-02-13 22:04:32 -08:00
Jacopo Mangiavacchi c715bc34d8
Import region metadata from TFRecords (#566)
* WIP: Started refactoring canvas based assets

* Wired up editor page for basic experience

* WIP: Updated canvas to support single child element

* Making progress

* Got per frame tagging to work

* Load and set child assets

* Updated to filter out child assets from displaying in side bar

* Fixed issue with image regions now redrawing

* Integrated next/previous tagged frame buttons

* Wabrez/video test coverage (#549)

* Added unit tests for custom video player button

* Added unit tests for image asset component

* Added unit tests for video asset component

* Wired up editor page for basic experience

* WIP: Updated canvas to support single child element

* Making progress

* Load and set child assets

* Wabrez/video test coverage (#549)

* Added unit tests for custom video player button

* Added unit tests for image asset component

* Added unit tests for video asset component

* Canvas / Editor Page Test Coverage (#552)

* Added unit tests for asset preview component

* Moved components into correct location

* Re-enabled canvas unit tests

* Added more canvas unit tests

* Refactored canvas and editor page tests

* Fixed issue instantiating canvas tools editor

* Update TFRecords functions

* WIP: Adding TFRecord Asset Preview

* Loading Image from TFRecord file

* Adding State to TFRecord asset component

* Fix async read tfrecords attributes

* Removed image ref on TFRecord asset

* Ripristinated image ref in tfrecord asset

* Fix issues on render called before componentWillMount

* Update state only if asset changes

* Moved tfrecordAsset to new folder

* WIP: Adding tfrecordAsset unit test

* Updated tfrecordAsset to last refactor changes

* Updated path

* Refactored based on last changes and removed duplicates

* added docs

* init state with property and removed constructor

* Fixed unit test

* WIP: Started refactoring canvas based assets

* Wired up editor page for basic experience

* Wired up editor page for basic experience

* WIP: Updated canvas to support single child element

* WIP: Updated canvas to support single child element

* WIP: Adding TFRecord Asset Preview

* Making progress

* Making progress

* Got per frame tagging to work

* Load and set child assets

* Updated to filter out child assets from displaying in side bar

* Fixed issue with image regions now redrawing

* WIP: Reading Region metadata from TFRecord

* Integrated next/previous tagged frame buttons

* Added Features Array capability to TFRecords Reader

* Wabrez/video test coverage (#549)

* Added unit tests for custom video player button

* Added unit tests for image asset component

* Added unit tests for video asset component

* Creating IRegion array

* Adding Interface for TFRecord Object arrays

* Canvas / Editor Page Test Coverage (#552)

* Added unit tests for asset preview component

* Moved components into correct location

* Re-enabled canvas unit tests

* Added more canvas unit tests

* Refactored canvas and editor page tests

* Fixed issue instantiating canvas tools editor

* Fix TFRecord Object Array Interface

* Separated function for converting Region from TFRecord

* Replaced setTimeout() with setImmediate() in TFRecord asset test

* Removed HEAD file created in rebase

* Imported Tag name and color

* Test import metadata from tfrecord file

* Test region transformation

* Added comments and localization

* Fixed region bounding box calculus

* Fixed TFRecords region width/height export

* WIP: Started refactoring canvas based assets

* WIP: Started refactoring canvas based assets

* Wired up editor page for basic experience

* Wired up editor page for basic experience

* Wired up editor page for basic experience

* WIP: Updated canvas to support single child element

* WIP: Updated canvas to support single child element

* WIP: Updated canvas to support single child element

* Update TFRecords functions

* Add TFRecord new asset type changes

* WIP: Adding TFRecord Asset Preview

* Loading Image from TFRecord file

* Making progress

* Making progress

* Making progress

* Adding State to TFRecord asset component

* Got per frame tagging to work

* Got per frame tagging to work

* Fix async read tfrecords attributes

* Removed image ref on TFRecord asset

* Ripristinated image ref in tfrecord asset

* Fix issues on render called before componentWillMount

* Load and set child assets

* Load and set child assets

* Load and set child assets

* Update state only if asset changes

* Updated to filter out child assets from displaying in side bar

* Updated to filter out child assets from displaying in side bar

* Fixed issue with image regions now redrawing

* Integrated next/previous tagged frame buttons

* Wabrez/video test coverage (#549)

* Added unit tests for custom video player button

* Added unit tests for image asset component

* Added unit tests for video asset component

* Wabrez/video test coverage (#549)

* Added unit tests for custom video player button

* Added unit tests for image asset component

* Added unit tests for video asset component

* Moved tfrecordAsset to new folder

* WIP: Adding tfrecordAsset unit test

* Canvas / Editor Page Test Coverage (#552)

* Added unit tests for asset preview component

* Moved components into correct location

* Re-enabled canvas unit tests

* Added more canvas unit tests

* Refactored canvas and editor page tests

* Fixed issue instantiating canvas tools editor

* Updated tfrecordAsset to last refactor changes

* Updated path

* Refactored based on last changes and removed duplicates

* added docs

* init state with property and removed constructor

* Fixed unit test

* Removed ~HEAD files created by rebase

* Added comments and localization

* Fixed code duplication in test

* Removed duplicated mock

* Fixed test error

* Wired up editor page for basic experience

* WIP: Updated canvas to support single child element

* WIP: Adding TFRecord Asset Preview

* Making progress

* Fixed issue with image regions now redrawing

* WIP: Reading Region metadata from TFRecord

* Integrated next/previous tagged frame buttons

* Wabrez/video test coverage (#549)

* Added unit tests for custom video player button

* Added unit tests for image asset component

* Added unit tests for video asset component

* Creating IRegion array

* Canvas / Editor Page Test Coverage (#552)

* Added unit tests for asset preview component

* Moved components into correct location

* Re-enabled canvas unit tests

* Added more canvas unit tests

* Refactored canvas and editor page tests

* Fixed issue instantiating canvas tools editor

* Fix TFRecord Object Array Interface

* Replaced setTimeout() with setImmediate() in TFRecord asset test

* Removed HEAD file created in rebase

* Fixed code duplication in test

* Resolved some PR feedback

* Fixed import regions test

* temporary comment some code

* Removed comments from previous commit

* Moved ITFRecordMetadata interface to applicationState

* Fixed SonarCloud issue

* Removed duplicated test

* Removed empty prop interfaces

* Addressed feedback from PR
2019-02-13 17:17:20 -08:00
Wallace Breza faf11890c7
Added context menu option in electron for all input fields AB#16922 (#570)
* Added context menu option in electron for all input fields

* Reverted single quote change on comments

* Fixed typo
2019-02-13 14:06:28 -08:00
Tom Miller 99e5b2ae09
Adding visited/tagged marks on video timeline AB #16772 (#556)
* Adding marks (yellow visited/green tagged) on video timeline
* Adding tests
* Cleaning up seeking of video to all go through same method, and adding new helpers
* Next/Previous "frame"
* Tests/strings
* Lock video frames to project settings keyframe rate
2019-02-13 14:04:08 -08:00
Wallace Breza 1d7e674faa
Fixed issue where validation was not showing up for source/target connection in project settings (#571) 2019-02-13 12:43:51 -08:00
Jacopo Mangiavacchi e2f1afef31
TFRecords import refactoring (#553)
* WIP: Started refactoring canvas based assets

* Wired up editor page for basic experience

* WIP: Updated canvas to support single child element

* Making progress

* Got per frame tagging to work

* Load and set child assets

* Updated to filter out child assets from displaying in side bar

* Fixed issue with image regions now redrawing

* Integrated next/previous tagged frame buttons

* Wabrez/video test coverage (#549)

* Added unit tests for custom video player button

* Added unit tests for image asset component

* Added unit tests for video asset component

* Wired up editor page for basic experience

* WIP: Updated canvas to support single child element

* Update TFRecords functions

* Add TFRecord new asset type changes

* WIP: Adding TFRecord Asset Preview

* Loading Image from TFRecord file

* Making progress

* Adding State to TFRecord asset component

* Fix async read tfrecords attributes

* Removed image ref on TFRecord asset

* Ripristinated image ref in tfrecord asset

* Fix issues on render called before componentWillMount

* Load and set child assets

* Update state only if asset changes

* Wabrez/video test coverage (#549)

* Added unit tests for custom video player button

* Added unit tests for image asset component

* Added unit tests for video asset component

* Moved tfrecordAsset to new folder

* WIP: Adding tfrecordAsset unit test

* Canvas / Editor Page Test Coverage (#552)

* Added unit tests for asset preview component

* Moved components into correct location

* Re-enabled canvas unit tests

* Added more canvas unit tests

* Refactored canvas and editor page tests

* Fixed issue instantiating canvas tools editor

* Updated tfrecordAsset to last refactor changes

* Updated path

* Refactored based on last changes and removed duplicates

* added docs

* init state with property and removed constructor

* Fixed unit test

* Removed ~HEAD files created by rebase

* Added comments and localization

* Update videoAsset comments

* Fixes from PR feedback

* Fixes from PR feedback

* Fixes from PR feedback

* Removed wrong rebased line in EditorPage
2019-02-13 10:20:58 -08:00
Wallace Breza f51e996cfc
Added data-tag-name attr to the tag element (#569) 2019-02-13 09:57:06 -08:00
P.J. Little c804afbfe8
Added v2 complexity report scripts. (#550) 2019-02-13 09:00:10 -08:00
Phil b1c8cb3538
Update canvastools and fix tests (#567)
* Udate canvastools and fix tests

* Update package
2019-02-12 17:40:49 -08:00
Wallace Breza 1e7c1ef955
Fixed delete project bug AB#17024 (#568)
* Fixed delete project bug

* Added localized error for deleting project

* Address PR feedback
2019-02-12 16:16:57 -08:00
My 7a193a2c48
[Fixes AB#16951] - support up/down & w/s key for navigating assets (#547)
* support up/down & w/s key for navigating assets

1. replace toolbar left/right button with up/down buttons
to match keyboard
1. add support for up/down & w/s key for moving between assets
2019-02-12 13:44:10 -08:00
Wallace Breza 7d7ad854ee
Update project when in-use connection changes AB#16921 (#564)
* Update current project when connection changes

* Removed redundant test in editor page

* Updated toolbar to remove duplicate logic

* Addressed PR feedback
2019-02-12 12:54:34 -08:00
Wallace Breza 2887677701
Added localization for export JSON files AB#16387 (#554)
* Added localization for export JSON files

* Added missing description field for asset state

* Updated display name properties on export providers
2019-02-12 09:36:02 -08:00
Wallace Breza 42bda7247d
Enhanced video support (#544)
* WIP: Started refactoring canvas based assets

* Wired up editor page for basic experience

* WIP: Updated canvas to support single child element

* Making progress

* Got per frame tagging to work

* Load and set child assets

* Updated to filter out child assets from displaying in side bar

* Fixed issue with image regions now redrawing

* Integrated next/previous tagged frame buttons

* Mixed rebase issues

* Wabrez/video test coverage (#549)

* Added unit tests for custom video player button

* Added unit tests for image asset component

* Added unit tests for video asset component

* Canvas / Editor Page Test Coverage (#552)

* Added unit tests for asset preview component

* Moved components into correct location

* Re-enabled canvas unit tests

* Added more canvas unit tests

* Refactored canvas and editor page tests

* Addressed rebase/merge issues

* Fixed issue instantiating canvas tools editor

* Addressed PR feedback
2019-02-11 08:48:25 -08:00
Tanner Barlow 2db1be53e7
Add support for keyUp and keyPress events (#539)
* Add support for keyUp and keyPress

* Add prop to keyboard binding for registering on key event type

* Rename key event handler and added enums to event listener

* lint fix

* Add tests for keypress and keyup

* Add tests for keyboard registration manager

* Add key event type to JSDocs

* response to PR feedback
2019-02-08 08:32:50 -08:00
Tanner Barlow 3835123870
Small refactor of canvas and editor page (#538)
* Replace ITagMetadata with ITag, Refactor pieces of Canvas to make it easier for cut, copy, paste

* Cleanup extraneous info

* Remove unnecessary casts

* Initial tests for canvas helpers

* Update regex for color

* Lint fix

* Fix canvas helpers tests

* Added test cases for canvas and helper

* Dummy commit to kick off build

* Add more helper unit tests

* Lint fix
2019-02-07 09:26:47 -08:00
My 0157db697a
enable sonarcloud pr scan (#530)
* update readme
   * update ci build badge link
   * add sonar cloud badges
2019-02-05 10:20:19 -08:00
Wallace Breza 4dbbfa05ad
Reved package version and fixed minor bugs (#525) 2019-02-01 16:48:02 -08:00
Wallace Breza 39fb38b7a0
Keyboard Manager Component (#523)
* WIP - Started on keyboard manager

* Added keyboard binding component

* Updated existing unit tests

* Added unit tests for keyboard registration manager

* Added unit tests for keyboard manager component

* Added unit tests for keyboard binding component

* Added unit tests for previous/next asset in editor page

* Updated unit tests for toolbar item

* Removed direct reference to keyboard manager context - no longer needed
2019-02-01 16:00:16 -08:00
Luisa de Miranda 488f80a9ea fixed typos and edited for clarity in README (#524) 2019-02-01 15:39:57 -08:00
Elizabeth Halper db9176097e Elhalper/encoded filename (#518)
* encodeurlcomponent not working

* encoded files are loaded and getting rid of comments

* moving logic to asset service

* add encoded name test

* remove unused code

* remove comments

* remove console statements

* proper test and regex

* fix lintint errors
2019-02-01 15:37:40 -08:00
P.J. Little d03f561edc
Updating docs for preview release (#520) 2019-02-01 12:54:57 -08:00
Jacopo Mangiavacchi 1627fa7033
TFRecords Reader and Builder-Reader integration tests (#517)
* Use boundigBox

* WIP: Adding TFRecords Reader

* Read TFRecords with multiple records

* change length as a property

* Added TFRecords Builder-Reader integration tests

* Adding Guard and resolving other pr feedback
2019-02-01 10:55:40 -08:00
Wallace Breza 01d6fb6948
Simplify canvas component (#521) 2019-02-01 10:53:31 -08:00
Wallace Breza a51dd06417
Updated video position css (#519) 2019-02-01 08:45:00 -08:00
Tom Miller 9a5fa965f6
Updating Canvas to handle Videos and allow tagging - AB#16580 (#516)
- Video player hooked into canvas tools
- Simplified AssetPreview to not use Video player, instead use still image from video @ timestamp 5s
- Update to only allow tag selection on videos when video is not playing
- Updated tests to include regions and mock state callbacks for videos
- Added Canvas error code type
2019-01-30 13:20:00 -08:00
Jacopo Mangiavacchi 8198c41775
Separate TFRecords code on different file (#514)
* WIP: adding TFRecords Builder class

* Added TFRecordsBuilder class

* added unit test

* Refactored AddFeature and AddFeatureArray interface

* removed import
2019-01-29 13:57:21 -08:00
Wallace Breza f0982c369e
Updated editor/canvas CSS to take up full screen real estate (#511)
* Updated editor/canvas CSS to take up full real estate

* Fix lint error
2019-01-28 10:01:50 -08:00
Jacopo Mangiavacchi 7a5a059be5
Moved asset path check in AssetService (#512)
* adding file:// protocol to asset src

* fix linting errors

* package-lock

* Moved path check in AssetService

* Re-inserted jsdoc

* add path protocol unit test
2019-01-28 09:03:05 -08:00
Phil d54281c4b5 Fix shape save issue after toolbar refactor (#505)
* Fix shape save issue after toolbar refactor

* Add initial test

* Added MockFactory.waitForCondition(...) method

* Add copyRect, remove unused modes
2019-01-28 07:50:59 -08:00
Jacopo Mangiavacchi 03e9cb87c3
TFRecords exporter (#495)
* WIG using TFRecord package

* Testing Protocol Buffer generation

* WIP Adding support for TFRecords ProtoBuf main containers

* WIP Adding internal methods for TFRecord Features

* WIP saving base64 and sha256 in TFRecords

* get asset tags/region

* WIP saving on TFRecords feature arrays

* Exported Features and FeatureLists on TFRecords

* WIG using TFRecord package

* Testing Protocol Buffer generation

* WIP Adding support for TFRecords ProtoBuf main containers

* WIP Adding internal methods for TFRecord Features

* WIP saving base64 and sha256 in TFRecords

* get asset tags/region

* WIP saving on TFRecords feature arrays

* Exported Features and FeatureLists on TFRecords

* removed test tag data

* update tests

* replaced string to utf-8 bytearray with custom implementation

* testing also pbtxt file

* excluded protocol buffer generated js file in codeconv

* rename TFRecord/ProtoBuf features object

* Added CRC to TFRecords

* Added 32bit and 64bit CRCs

* fix crc masking

* Write all Int in Low Endian

* Adding CRC to Buffer reusing V1 code

* try different crc package (buffer-crc32)

* Added TFRecords Helper file with utility methods for CRC and Buffer conversion

* Added unit tests for TFRecords Helper functions

* Fix Image encoding in TFRecords

* Refactored asset image download

* Added small comment on TFRecords write catch

* Export tag index position too

* Fix TFRecords features persistence

* Fixed last TFRecords features
2019-01-25 17:36:16 -08:00
Wallace Breza ae7dc90d4d
Fix issue with saving project files (#509)
* Fixed issue with saving project file

* Fixed unit test for project service
2019-01-25 15:19:55 -08:00
Wallace Breza 6d97cef60e
Catch and display errors (#508)
* Added error codes to known errors

* Restructured errors for localization

* Added localized error messages for errors and messages

* Created error handler component to display application errors

* Added unit tests for error handler component

* Added unit tests for error handler component

* Updated setting AppError properties to resolve weird unit test failure

* Addressed PR feedback
2019-01-25 14:08:58 -08:00
Wallace Breza ed98ef2ce3
Encrypt sensitive project settings (#506)
* Split out appSettingsForm from appSettingsPage

* Added tests for app settings page

* Fixed merge conflictd issues

* Added string localizations for app settings form updates

* Started adding security token input component

* Updating security token input component

* Integrate security token into project settings

* Renamed to proected input and reused for all senstive data fields

* Added project encryption/decryption

* Making progress on syncing encrypted/decrypted project data

* Added unit tests to encrypt/decrypt object

* Updated project service unit tests

* Updated encrypted/decrypted data sync

* Updated project action tests

* Cleaned up unit tests

* Fixed editor page unit tests

* Fixing unit tests

* Updated editor page tests

* Refactored connection form tests

* Added unit tests for protected input component

* Added unit tests for security token picker

* Merged unit test changes

* Added unit test to verify new security token is created for new projects

* Addressed PR feedback
2019-01-25 10:51:55 -08:00
My 50bd9a3d86
[AB#16776] fix error alert to not cover up app (#502) 2019-01-24 15:38:22 -08:00
My 9eb0cec3b8
enable CI for greenkeeper created branches (#504)
in order to test and integrate greenkeeper I have to enable CI on branches (right now it's disable). But I don't want this to run for all branches, so only enable it on greenkeeper-created branches which always starts with greenkeeper/
2019-01-24 13:33:04 -08:00
Phil b8b1176a29
v2 Editor Page (#417)
* Start ct integration

* Add componentdidmount

* Update ct library

* Update images in editor

* Begin saving regions

* Integrate ct as npm module

* Cleanup a bit

* Change ct back to git for now

* Fix ct package

* Saveregions after creation

* Expose public methods of region manager in canvas

* Fix IRegion type

* Correctly bind exposed api calls

* Add jsdocs and add types to exposed methods

* Updated canvastool and fix scaling issue

* Clean up comments

* Fix linting issues

* Updated canvastools and temporarily removed edoitorpage tests

* Clean up onComponentDidMount and add snapsvg types temoporarily

* Fixed linting..

* fix file location issue

* Begin footer work

* Preserve first tag color and remove svg

* Add tag control from footer. Still need to update canvstools for colors, toolbar removal/integration.

* Update canvastools and hook up toolabr

* Addimg tests back in

* Update canvastools and fix scaling issue

* Update region id to use shortid

* Add integration tests from footer and linting

* Add polygon support

* Start adding mock canvas

* install packages

* Continue testing

* Expose editor methods for testing and stub out canvas tests

* Still testing

* Setup canvas tools editor / regions manager mock

* Add most tests

* Add tests and change region to store tagmetadata

* Remove ct toolbar style (depricated)

* Fix tests

* Fix test

* Add toolbar integration tests

* Small change for CI/CD

* Refactor toolbar items to not take canvas or editormodechange

* Address pr comments

* Fix canvas test

* Address more PR comments

* Address latest comments, clean up

* Fix conflict

* Removed localStorage middleware from test runs
2019-01-23 16:42:46 -08:00
Tom Miller fd464691b0
Adding video player to editor page - AB#16699 (#496)
* Initial implementation of video player on editor page
* Includes video player with customizable playback speed
* Auto plays selected videos
* No longer auto plays videos in side bar
* Supports custom image to display when video not playing (defaults to 1st video frame)
* Updates tests
* Refactors a few other tests to centralize test asset creation
* Updates version of React to 16.7.0
* Rename IVideoSettings to IProjectVideoSettings for clarity
2019-01-23 11:46:47 -08:00