diff --git a/docs/manual_testing/manual-test-runbook.md b/docs/manual_testing/manual-test-runbook.md index 78300cd55..bcb422308 100644 --- a/docs/manual_testing/manual-test-runbook.md +++ b/docs/manual_testing/manual-test-runbook.md @@ -1,29 +1,56 @@ # Test Runbook +## **Feat: support project sharing via string** + +> ### Feature description ### + +- Support project sharing bettween users who have access to same storage container + +> ### Use Case ### + +**`As`** a user +**`I want`** to be able to share to a project via shared string +**`So`** receiving user don't have to manually copy-paste project info into app settings + +> ### Acceptance criteria ### + +#### Scenario One #### + +**`Given`** I've opened a project, clicked on "..." dropdow in Canvas Commandbar +**`When`** I click "Share Project" I should see tha message that shared string been saved to my clipboard +**`Then`** I can paste the string from clipboard +#### Scenario Two #### + +**`Given`** I've received the string with a project +**`When`** I open the home page of the FOTT and click on "Open Cloud Project" icon, I can paste the string to the input field and click "OK" +**`Then`** FOTT should open the shared project as expected. + +___ + ## Fix: check invalid connection provider options before project actions > ### Feature description ### - check connection provider options are valid before creating a project -- check connection provider options are valid before opening a recent project +- check connection provider options are valid before opening a recent project > ### Use Case ### -**As** a user -**I want** a notification when I try to open or create a project with invalid provider options -**So** I know how to fix invalid provider options issue +**As** a user +**I want** a notification when I try to open or create a project with invalid provider options +**So** I know how to fix invalid provider options issue > ### Acceptance criteria ### #### Scenario One #### -**Given** I've created a connection with invalid provider options (e.g. invalid SAS token for Azure provider). -**When** I try to create a new project with that connection. +**Given** I've created a connection with invalid provider options (e.g. invalid SAS token for Azure provider). +**When** I try to create a new project with that connection. **Then** a notification will be displayed telling me my connection is invalid. #### Scenario Two #### -**Given** I've created a connection with invalid provider options (e.g. invalid SAS token for Azure provider). -**When** I try to open a recent project that now has an invalid connection provider options (e.g. the Azure container was deleted) +**Given** I've created a connection with invalid provider options (e.g. invalid SAS token for Azure provider). +**When** I try to open a recent project that now has an invalid connection provider options (e.g. the Azure container was deleted) **Then** a notification will be displayed telling me my connection is invalid. ___ @@ -35,22 +62,24 @@ ___ > ### Use Case ### -**As** a user -**I want** to release my project as a distributable +**As** a user +**I want** to release my project as a distributable **So** I can easily set up FOTT > ### Acceptance criteria ### #### Scenario One #### -**Given** I've updated dependencies. -**When** I run `yarn release`. + +**Given** I've updated dependencies. +**When** I run `yarn release`. **Then** a distributable installer should be created in the releases folder. #### Scenario Two #### -**Given** I've created a distributable installer. -**When** I execute the installer. + +**Given** I've created a distributable installer. +**When** I execute the installer. **Then** a the FOTT desktop application should install and run as expected. ___ @@ -62,15 +91,15 @@ ___ > ### Use Case ### -**As** a user -**I want** to delete a document and it's files through FOTT +**As** a user +**I want** to delete a document and it's files through FOTT **So** I don't have to delete the document through a storage provider #### Scenario One #### -**Given** I've selected a document in the editor page. -**When** I click the overflow menu item on the canvas command bar and then click "Delete document." -**Then** FoTT should delete the document in the storage provider, remove it from FOTT's current project, and select the project's first document. +**Given** I've selected a document in the editor page. +**When** I click the overflow menu item on the canvas command bar and then click "Delete document." +**Then** FoTT should delete the document in the storage provider, remove it from FOTT's current project, and select the project's first document. ___ @@ -82,39 +111,39 @@ ___ > ### Use Case ### -**As** a user -**I want** to use FoTT's existing features through a desktop app +**As** a user +**I want** to use FoTT's existing features through a desktop app **So** I don't have to use a browser to use FoTT -**As** a user -**I want** to use files in my local file system +**As** a user +**I want** to use files in my local file system **So** I can keep all files on premise > ### Acceptance criteria ### #### Scenario One #### -**Given** I've installed new dependencies and started FoTT in Electron. -**When** I click a command item in the title bar. -**Then** FoTT should perform the command as expected. +**Given** I've installed new dependencies and started FoTT in Electron. +**When** I click a command item in the title bar. +**Then** FoTT should perform the command as expected. #### Scenario Two #### -**Given** I've installed new dependencies and started FoTT in Electron. -**When** I perform an action for any existing feature. -**Then** FoTT should perform as expected (the same as through a browser). +**Given** I've installed new dependencies and started FoTT in Electron. +**When** I perform an action for any existing feature. +**Then** FoTT should perform as expected (the same as through a browser). #### Scenario Three #### -**Given** I've installed new dependencies and started FoTT in Electron. -**When** I create a new connection with local file system as the provider. -**Then** I should be able to create a project with the created connection. +**Given** I've installed new dependencies and started FoTT in Electron. +**When** I create a new connection with local file system as the provider. +**Then** I should be able to create a project with the created connection. #### Scenario Four #### -**Given** I've installed new dependencies and started FoTT in Electron. And, I have an existing project in my local file system. -**When** I click "Open local project" on the home page and select the existing project. -**Then** FoTT should load the project as expected. +**Given** I've installed new dependencies and started FoTT in Electron. And, I have an existing project in my local file system. +**When** I click "Open local project" on the home page and select the existing project. +**Then** FoTT should load the project as expected. ___ @@ -126,16 +155,16 @@ Enable reordering tags quickly > ### Use Case ### -**As** a user -**I want** to be able to move though tags list quickly +**As** a user +**I want** to be able to move though tags list quickly **So** I can reorder long list of tags faster > ### Acceptance criteria ### #### Scenario One #### -**Given** I've opened a project containing documents with long tags list. -**When** I clicking fast on tags buttons 'Move tag up' or 'Move tag down' +**Given** I've opened a project containing documents with long tags list. +**When** I clicking fast on tags buttons 'Move tag up' or 'Move tag down' **Then** it moves without visible jittering. ___ @@ -150,22 +179,22 @@ Adding the following buttons to the canvas command bar: > ### Use Case ### -**As** a user -**I want** to rerun OCR on documents +**As** a user +**I want** to rerun OCR on documents **So** I can update OCR results > ### Acceptance criteria ### #### Scenario One #### -**Given** I've opened a project containing documents and I'm on the Tag Editor page. -**When** I click "Run OCR on current document" in the canvas command bar +**Given** I've opened a project containing documents and I'm on the Tag Editor page. +**When** I click "Run OCR on current document" in the canvas command bar **Then** I should see "Running OCR..." for the current docucment. When running OCR finishes, I should be able to view the document's updated OCR JSON file. #### Scenario Two #### -**Given** I've opened a project containing documents and I'm on the Tag Editor page. -**When** I click "Run OCR on all documents" in the canvas command bar +**Given** I've opened a project containing documents and I'm on the Tag Editor page. +**When** I click "Run OCR on all documents" in the canvas command bar **Then** I should see "Running OCR..." for all documents. When running OCR finishes for each document, I should be ale to view each document's updated OCR JSON file. ___ @@ -178,35 +207,34 @@ ___ > ### Use Case ### -**As** a user -**I want** to give the new train model a customerized name -**So** I can type the name in input field in train page before click train button. +**As** a user +**I want** to give the new train model a customerized name +**So** I can type the name in input field in train page before click train button. -**As** a user -**I want** to generate a new mode through existing model -**So** I can use model compose +**As** a user +**I want** to generate a new mode through existing model +**So** I can use model compose > ### Acceptance criteria ### #### Scenario One #### -**Given** I've opened a project containing documents and I'm on the Train page. -**When** I type customerized name in input field and click train button +**Given** I've opened a project containing documents and I'm on the Train page. +**When** I type customerized name in input field and click train button **Then** I should see typed name shows in Train Record after record shows up. #### Scenario Two #### -**Given** I've opened a project containing documents and I'm on the Model Compose page. There are enough existing models in modelList. -**When** I select more than one models then click compose button -**Then** I should see a pop up modal with a list contains selected models and a input field. -**When** I type customerized model name in input field and click compose button on modal -**Then** I should see "Model is composing, please wait...". After that the list shows up again, new composed model with given name will be on the top of the list. The new composed model also has a "combine" icon. +**Given** I've opened a project containing documents and I'm on the Model Compose page. There are enough existing models in modelList. +**When** I select more than one models then click compose button +**Then** I should see a pop up modal with a list contains selected models and a input field. +**When** I type customerized model name in input field and click compose button on modal +**Then** I should see "Model is composing, please wait...". After that the list shows up again, new composed model with given name will be on the top of the list. The new composed model also has a "combine" icon. #### Scenario Three #### -**Given** I've opened a project containing documents and I'm on the Model Compose page. -**When** I click the header of a column -**Then** I should see the column becomes sorted in either ascending or discending order. -**When** I type some text inside the fliter field on top right +**Given** I've opened a project containing documents and I'm on the Model Compose page. +**When** I click the header of a column +**Then** I should see the column becomes sorted in either ascending or discending order. +**When** I type some text inside the fliter field on top right **Then** I should see items whose id or name contains the text be filtered out. - \ No newline at end of file diff --git a/src/assets/sass/fabric-icons-inline.scss b/src/assets/sass/fabric-icons-inline.scss index 1c879ad0a..b309758af 100644 --- a/src/assets/sass/fabric-icons-inline.scss +++ b/src/assets/sass/fabric-icons-inline.scss @@ -1,139 +1,141 @@ -/* - Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fabric-assets-license -*/ -@font-face { - font-family: 'FabricMDL2Icons'; - src: url('data:application/octet-stream;base64,d09GRgABAAAAAB+UAA4AAAAANsgAA9maAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABRA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ms-Icon { - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - display: inline-block; - font-family: 'FabricMDL2Icons'; - font-style: normal; - font-weight: normal; - speak: none; -} - -// Mixins -@mixin ms-Icon--SortUp { content: "\EE68"; } -@mixin ms-Icon--SortDown { content: "\EE69"; } -@mixin ms-Icon--Table { content: "\ED86"; } -@mixin ms-Icon--TextField { content: "\EDC3"; } -@mixin ms-Icon--Combine { content: "\EDBB"; } -@mixin ms-Icon--TextDocument { content: "\F029"; } -@mixin ms-Icon--StatusCircleCheckmark { content: "\F13E"; } -@mixin ms-Icon--DocumentManagement { content: "\EFFC"; } -@mixin ms-Icon--CircleRing { content: "\EA3A"; } -@mixin ms-Icon--Label { content: "\E932"; } -@mixin ms-Icon--Info { content: "\E946"; } -@mixin ms-Icon--Documentation { content: "\EC17"; } -@mixin ms-Icon--OpenFolderHorizontal { content: "\ED25"; } -@mixin ms-Icon--AddTo { content: "\ECC8"; } -@mixin ms-Icon--Hide3 { content: "\F6AC"; } -@mixin ms-Icon--WarningSolid { content: "\F736"; } -@mixin ms-Icon--BranchMerge { content: "\F295"; } -@mixin ms-Icon--PlugConnected { content: "\F302"; } -@mixin ms-Icon--Plug { content: "\F300"; } -@mixin ms-Icon--AlertSolid { content: "\F331"; } -@mixin ms-Icon--Refresh { content: "\E72C"; } -@mixin ms-Icon--CheckboxComposite { content: "\E73A"; } -@mixin ms-Icon--More { content: "\E712"; } -@mixin ms-Icon--Settings { content: "\E713"; } -@mixin ms-Icon--Link { content: "\E71B"; } -@mixin ms-Icon--Filter { content: "\E71C"; } -@mixin ms-Icon--ZoomOut { content: "\E71F"; } -@mixin ms-Icon--Search { content: "\E721"; } -@mixin ms-Icon--CheckMark { content: "\E73E"; } -@mixin ms-Icon--ChevronRight { content: "\E76C"; } -@mixin ms-Icon--ChevronLeft { content: "\E76B"; } -@mixin ms-Icon--Cancel { content: "\E711"; } -@mixin ms-Icon--Up { content: "\E74A"; } -@mixin ms-Icon--Down { content: "\E74B"; } -@mixin ms-Icon--Delete { content: "\E74D"; } -@mixin ms-Icon--Cloud { content: "\E753"; } -@mixin ms-Icon--Add { content: "\E710"; } -@mixin ms-Icon--ChevronUp { content: "\E70E"; } -@mixin ms-Icon--ReceiptProcessing { content: "\E496"; } -@mixin ms-Icon--ChevronDown { content: "\E70D"; } -@mixin ms-Icon--Edit { content: "\E70F"; } -@mixin ms-Icon--Copy { content: "\E8C8"; } -@mixin ms-Icon--ZoomIn { content: "\E8A3"; } -@mixin ms-Icon--Rename { content: "\E8AC"; } -@mixin ms-Icon--Tag { content: "\E8EC"; } -@mixin ms-Icon--View { content: "\E890"; } -@mixin ms-Icon--Download { content: "\E896"; } -@mixin ms-Icon--Help { content: "\E897"; } -@mixin ms-Icon--Home { content: "\E80F"; } -@mixin ms-Icon--MapLayers { content: "\E81E"; } -@mixin ms-Icon--KeyPhraseExtraction { content: "\E395"; } -@mixin ms-Icon--Insights { content: "\E3AF"; } -@mixin ms-Icon--MachineLearning { content: "\E3B8"; } -@mixin ms-Icon--TagGroup { content: "\E3F6"; } -@mixin ms-Icon--BookAnswers { content: "\F8A4"; } -@mixin ms-Icon--ChromeRestore { content: "\E923"; } -@mixin ms-Icon--ChromeMinimize { content: "\E921"; } -@mixin ms-Icon--System { content: "\E770"; } -@mixin ms-Icon--SquareShape { content: "\F1A6"; } - -// Classes -.ms-Icon--SortUp:before { @include ms-Icon--SortUp } -.ms-Icon--SortDown:before { @include ms-Icon--SortDown } -.ms-Icon--Table:before { @include ms-Icon--Table } -.ms-Icon--TextField:before { @include ms-Icon--TextField } -.ms-Icon--Combine:before { @include ms-Icon--Combine } -.ms-Icon--TextDocument:before { @include ms-Icon--TextDocument } -.ms-Icon--StatusCircleCheckmark:before { @include ms-Icon--StatusCircleCheckmark } -.ms-Icon--DocumentManagement:before { @include ms-Icon--DocumentManagement } -.ms-Icon--CircleRing:before { @include ms-Icon--CircleRing } -.ms-Icon--Label:before { @include ms-Icon--Label } -.ms-Icon--Info:before { @include ms-Icon--Info } -.ms-Icon--Documentation:before { @include ms-Icon--Documentation } -.ms-Icon--OpenFolderHorizontal:before { @include ms-Icon--OpenFolderHorizontal } -.ms-Icon--AddTo:before { @include ms-Icon--AddTo } -.ms-Icon--Hide3:before { @include ms-Icon--Hide3 } -.ms-Icon--WarningSolid:before { @include ms-Icon--WarningSolid } -.ms-Icon--BranchMerge:before { @include ms-Icon--BranchMerge } -.ms-Icon--PlugConnected:before { @include ms-Icon--PlugConnected } -.ms-Icon--Plug:before { @include ms-Icon--Plug } -.ms-Icon--AlertSolid:before { @include ms-Icon--AlertSolid } -.ms-Icon--Refresh:before { @include ms-Icon--Refresh } -.ms-Icon--CheckboxComposite:before { @include ms-Icon--CheckboxComposite } -.ms-Icon--More:before { @include ms-Icon--More } -.ms-Icon--Settings:before { @include ms-Icon--Settings } -.ms-Icon--Link:before { @include ms-Icon--Link } -.ms-Icon--Filter:before { @include ms-Icon--Filter } -.ms-Icon--ZoomOut:before { @include ms-Icon--ZoomOut } -.ms-Icon--Search:before { @include ms-Icon--Search } -.ms-Icon--CheckMark:before { @include ms-Icon--CheckMark } -.ms-Icon--ChevronRight:before { @include ms-Icon--ChevronRight } -.ms-Icon--ChevronLeft:before { @include ms-Icon--ChevronLeft } -.ms-Icon--Cancel:before { @include ms-Icon--Cancel } -.ms-Icon--Up:before { @include ms-Icon--Up } -.ms-Icon--Down:before { @include ms-Icon--Down } -.ms-Icon--Delete:before { @include ms-Icon--Delete } -.ms-Icon--Cloud:before { @include ms-Icon--Cloud } -.ms-Icon--Add:before { @include ms-Icon--Add } -.ms-Icon--ChevronUp:before { @include ms-Icon--ChevronUp } -.ms-Icon--ReceiptProcessing:before { @include ms-Icon--ReceiptProcessing } -.ms-Icon--ChevronDown:before { @include ms-Icon--ChevronDown } -.ms-Icon--Edit:before { @include ms-Icon--Edit } -.ms-Icon--Copy:before { @include ms-Icon--Copy } -.ms-Icon--ZoomIn:before { @include ms-Icon--ZoomIn } -.ms-Icon--Rename:before { @include ms-Icon--Rename } -.ms-Icon--Tag:before { @include ms-Icon--Tag } -.ms-Icon--View:before { @include ms-Icon--View } -.ms-Icon--Download:before { @include ms-Icon--Download } -.ms-Icon--Help:before { @include ms-Icon--Help } -.ms-Icon--Home:before { @include ms-Icon--Home } -.ms-Icon--MapLayers:before { @include ms-Icon--MapLayers } -.ms-Icon--KeyPhraseExtraction:before { @include ms-Icon--KeyPhraseExtraction } -.ms-Icon--Insights:before { @include ms-Icon--Insights } -.ms-Icon--MachineLearning:before { @include ms-Icon--MachineLearning } -.ms-Icon--TagGroup:before { @include ms-Icon--TagGroup } -.ms-Icon--BookAnswers:before { @include ms-Icon--BookAnswers } -.ms-Icon--ChromeRestore:before { @include ms-Icon--ChromeRestore } -.ms-Icon--ChromeMinimize:before { @include ms-Icon--ChromeMinimize } -.ms-Icon--System:before { @include ms-Icon--System } -.ms-Icon--SquareShape:before { @include ms-Icon--SquareShape } +/* + Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fabric-assets-license +*/ +@font-face { + font-family: 'FabricMDL2Icons'; +src: url('data:application/octet-stream;base64,d09GRgABAAAAACAMAA4AAAAAN2gAA+FIAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABRAAAAEgAAABgLdt/0mNtYXAAAAGMAAABNAAAAvrBcZ3OY3Z0IAAAAsAAAAAgAAAAKgnZCa9mcGdtAAAC4AAAAPAAAAFZ/J7mjmdhc3AAAAPQAAAADAAAAAwACAAbZ2x5ZgAAA9wAABZUAAAlICn4lK9oZWFkAAAaMAAAADUAAAA2AjlvZ2hoZWEAABpoAAAAGwAAACQQAggCaG10eAAAGoQAAABPAAAAgBt8Ctxsb2NhAAAa1AAAAH4AAAB+/Hbz6G1heHAAABtUAAAAHQAAACAAXwJGbmFtZQAAG3QAAAP3AAAJ+pSb8VZwb3N0AAAfbAAAABQAAAAg/1EAtXByZXAAAB+AAAAAiQAAANN4vfIOeJxjYGH/wjiBgZWBgXUWqzEDA6M0hGa+y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7z5pkR1YltOhPouZ1LK6jc8l5+JSzwC9dBqf4bNoOlpt2Lzgbg6tAHapK4j8wAwVKl5zla5QRS3RSse4u/kret8jgoJ3je4l7iTlpZiv7F8wTzwGlj2CGT8dPhv7et89SnBninr2U7Meihx6lC/ZG1c52Rvecs8WOaO6jWFlQ719xTYKZ6PHdMneRicjYoE0yw1U71KA6FExxX7Ce5Y73LCE+KI7lzkTbPHlRaS/Zt+W+Us2Bz8hqznkMnai5IrIa8ooWnrvgtiSLVQ3Ta3XV8r5Amxz3U+YrznyMO13Feb8CzZPYMU85rrs561KlpJ1jNS3PXbGTe7KpGR2h/l1804TOEy+7vMcc/iu3a+8FeypR5niOQ7pTw6zuqmCIvp3X440ZoEpiLYHjDbeA/MdaC5R0XLnhW/mh2ZNXpkpxX0xaY1URt3yzWrakbIduDn5Is+ab/M8zGr+MTerM2vtwQ3RimeaH8p0z07G3/8Pd/huuljigAHicY2BmAIP/fgzlDJjADgApaAIGeJzbwKDNsImRk0mbcRMXiNzO1ZobaqvKwKG9nTs12EFPBsTiifCw0JAEsXidzbXlhUEsPh0VGREeEItfTkKYjwPEEuDj4WRnAbEEwQDEEtowoSDAAMhi2M4IN5oJbjQz3GgWuNGscKPZ5CShRrPDjeaAG80JN3qTMCO79gYGBdfaTAkXAMQBKBoAAAA=') format('truetype'); +} + +.ms-Icon { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + display: inline-block; + font-family: 'FabricMDL2Icons'; + font-style: normal; + font-weight: normal; + speak: none; +} + +// Mixins +@mixin ms-Icon--Combine { content: "\EDBB"; } +@mixin ms-Icon--TextField { content: "\EDC3"; } +@mixin ms-Icon--SortUp { content: "\EE68"; } +@mixin ms-Icon--SortDown { content: "\EE69"; } +@mixin ms-Icon--OpenFolderHorizontal { content: "\ED25"; } +@mixin ms-Icon--Table { content: "\ED86"; } +@mixin ms-Icon--DocumentManagement { content: "\EFFC"; } +@mixin ms-Icon--TextDocument { content: "\F029"; } +@mixin ms-Icon--CircleRing { content: "\EA3A"; } +@mixin ms-Icon--Label { content: "\E932"; } +@mixin ms-Icon--Info { content: "\E946"; } +@mixin ms-Icon--Documentation { content: "\EC17"; } +@mixin ms-Icon--AddTo { content: "\ECC8"; } +@mixin ms-Icon--Hide3 { content: "\F6AC"; } +@mixin ms-Icon--WarningSolid { content: "\F736"; } +@mixin ms-Icon--BranchMerge { content: "\F295"; } +@mixin ms-Icon--StatusCircleCheckmark { content: "\F13E"; } +@mixin ms-Icon--AlertSolid { content: "\F331"; } +@mixin ms-Icon--Plug { content: "\F300"; } +@mixin ms-Icon--PlugConnected { content: "\F302"; } +@mixin ms-Icon--ChevronDown { content: "\E70D"; } +@mixin ms-Icon--ChevronUp { content: "\E70E"; } +@mixin ms-Icon--Edit { content: "\E70F"; } +@mixin ms-Icon--Add { content: "\E710"; } +@mixin ms-Icon--Cancel { content: "\E711"; } +@mixin ms-Icon--More { content: "\E712"; } +@mixin ms-Icon--Link { content: "\E71B"; } +@mixin ms-Icon--Settings { content: "\E713"; } +@mixin ms-Icon--ReceiptProcessing { content: "\E496"; } +@mixin ms-Icon--Filter { content: "\E71C"; } +@mixin ms-Icon--ZoomOut { content: "\E71F"; } +@mixin ms-Icon--CheckboxComposite { content: "\E73A"; } +@mixin ms-Icon--CheckMark { content: "\E73E"; } +@mixin ms-Icon--Up { content: "\E74A"; } +@mixin ms-Icon--Down { content: "\E74B"; } +@mixin ms-Icon--Delete { content: "\E74D"; } +@mixin ms-Icon--Cloud { content: "\E753"; } +@mixin ms-Icon--Search { content: "\E721"; } +@mixin ms-Icon--Refresh { content: "\E72C"; } +@mixin ms-Icon--Share { content: "\E72D"; } +@mixin ms-Icon--Download { content: "\E896"; } +@mixin ms-Icon--Help { content: "\E897"; } +@mixin ms-Icon--Rename { content: "\E8AC"; } +@mixin ms-Icon--ZoomIn { content: "\E8A3"; } +@mixin ms-Icon--View { content: "\E890"; } +@mixin ms-Icon--MapLayers { content: "\E81E"; } +@mixin ms-Icon--Tag { content: "\E8EC"; } +@mixin ms-Icon--Copy { content: "\E8C8"; } +@mixin ms-Icon--ChevronLeft { content: "\E76B"; } +@mixin ms-Icon--ChevronRight { content: "\E76C"; } +@mixin ms-Icon--Home { content: "\E80F"; } +@mixin ms-Icon--KeyPhraseExtraction { content: "\E395"; } +@mixin ms-Icon--Insights { content: "\E3AF"; } +@mixin ms-Icon--MachineLearning { content: "\E3B8"; } +@mixin ms-Icon--TagGroup { content: "\E3F6"; } +@mixin ms-Icon--BookAnswers { content: "\F8A4"; } +@mixin ms-Icon--ChromeRestore { content: "\E923"; } +@mixin ms-Icon--ChromeMinimize { content: "\E921"; } +@mixin ms-Icon--System { content: "\E770"; } +@mixin ms-Icon--SquareShape { content: "\F1A6"; } + +// Classes +.ms-Icon--Combine:before { @include ms-Icon--Combine } +.ms-Icon--TextField:before { @include ms-Icon--TextField } +.ms-Icon--SortUp:before { @include ms-Icon--SortUp } +.ms-Icon--SortDown:before { @include ms-Icon--SortDown } +.ms-Icon--OpenFolderHorizontal:before { @include ms-Icon--OpenFolderHorizontal } +.ms-Icon--Table:before { @include ms-Icon--Table } +.ms-Icon--DocumentManagement:before { @include ms-Icon--DocumentManagement } +.ms-Icon--TextDocument:before { @include ms-Icon--TextDocument } +.ms-Icon--CircleRing:before { @include ms-Icon--CircleRing } +.ms-Icon--Label:before { @include ms-Icon--Label } +.ms-Icon--Info:before { @include ms-Icon--Info } +.ms-Icon--Documentation:before { @include ms-Icon--Documentation } +.ms-Icon--AddTo:before { @include ms-Icon--AddTo } +.ms-Icon--Hide3:before { @include ms-Icon--Hide3 } +.ms-Icon--WarningSolid:before { @include ms-Icon--WarningSolid } +.ms-Icon--BranchMerge:before { @include ms-Icon--BranchMerge } +.ms-Icon--StatusCircleCheckmark:before { @include ms-Icon--StatusCircleCheckmark } +.ms-Icon--AlertSolid:before { @include ms-Icon--AlertSolid } +.ms-Icon--Plug:before { @include ms-Icon--Plug } +.ms-Icon--PlugConnected:before { @include ms-Icon--PlugConnected } +.ms-Icon--ChevronDown:before { @include ms-Icon--ChevronDown } +.ms-Icon--ChevronUp:before { @include ms-Icon--ChevronUp } +.ms-Icon--Edit:before { @include ms-Icon--Edit } +.ms-Icon--Add:before { @include ms-Icon--Add } +.ms-Icon--Cancel:before { @include ms-Icon--Cancel } +.ms-Icon--More:before { @include ms-Icon--More } +.ms-Icon--Link:before { @include ms-Icon--Link } +.ms-Icon--Settings:before { @include ms-Icon--Settings } +.ms-Icon--ReceiptProcessing:before { @include ms-Icon--ReceiptProcessing } +.ms-Icon--Filter:before { @include ms-Icon--Filter } +.ms-Icon--ZoomOut:before { @include ms-Icon--ZoomOut } +.ms-Icon--CheckboxComposite:before { @include ms-Icon--CheckboxComposite } +.ms-Icon--CheckMark:before { @include ms-Icon--CheckMark } +.ms-Icon--Up:before { @include ms-Icon--Up } +.ms-Icon--Down:before { @include ms-Icon--Down } +.ms-Icon--Delete:before { @include ms-Icon--Delete } +.ms-Icon--Cloud:before { @include ms-Icon--Cloud } +.ms-Icon--Search:before { @include ms-Icon--Search } +.ms-Icon--Refresh:before { @include ms-Icon--Refresh } +.ms-Icon--Share:before { @include ms-Icon--Share } +.ms-Icon--Download:before { @include ms-Icon--Download } +.ms-Icon--Help:before { @include ms-Icon--Help } +.ms-Icon--Rename:before { @include ms-Icon--Rename } +.ms-Icon--ZoomIn:before { @include ms-Icon--ZoomIn } +.ms-Icon--View:before { @include ms-Icon--View } +.ms-Icon--MapLayers:before { @include ms-Icon--MapLayers } +.ms-Icon--Tag:before { @include ms-Icon--Tag } +.ms-Icon--Copy:before { @include ms-Icon--Copy } +.ms-Icon--ChevronLeft:before { @include ms-Icon--ChevronLeft } +.ms-Icon--ChevronRight:before { @include ms-Icon--ChevronRight } +.ms-Icon--Home:before { @include ms-Icon--Home } +.ms-Icon--KeyPhraseExtraction:before { @include ms-Icon--KeyPhraseExtraction } +.ms-Icon--Insights:before { @include ms-Icon--Insights } +.ms-Icon--MachineLearning:before { @include ms-Icon--MachineLearning } +.ms-Icon--TagGroup:before { @include ms-Icon--TagGroup } +.ms-Icon--BookAnswers:before { @include ms-Icon--BookAnswers } +.ms-Icon--ChromeRestore:before { @include ms-Icon--ChromeRestore } +.ms-Icon--ChromeMinimize:before { @include ms-Icon--ChromeMinimize } +.ms-Icon--System:before { @include ms-Icon--System } +.ms-Icon--SquareShape:before { @include ms-Icon--SquareShape } diff --git a/src/common/localization/en-us.ts b/src/common/localization/en-us.ts index 24edff1fd..d95fa5612 100644 --- a/src/common/localization/en-us.ts +++ b/src/common/localization/en-us.ts @@ -42,6 +42,7 @@ export const english: IAppStrings = { openCloudProject: { title: "Open Cloud Project", selectConnection: "Select a Connection", + pasteSharedUri: "Please paste shared project string here", }, recentProjects: "Recent Projects", deleteProject: { @@ -397,6 +398,7 @@ export const english: IAppStrings = { } }, farItems: { + share: "Share Project", zoom: { zoomOut: "Zoom out", zoomIn: "Zoom in", @@ -611,6 +613,17 @@ export const english: IAppStrings = { } }, + shareProject: { + errors: { + cannotDecodeString: "Cannot decode shared string! Please, check if your string has been modified.", + connectionNotFound: "Connection not found. Add shared project's connection to your connections.", + noConnections: "Connection is required for project sharing", + tokenNameExist: "Warning! You already have token with same name as in shared project. Please create a new token, and update the existing project which uses ''${sharedTokenName}'' with new token name." + }, + copy: { + success: "String for sharing your project has been saved to clipboard. In order to use it, paste it in appropriate section of the 'Open Cloud Project' popup.", + } + }, }; /*eslint-enable no-template-curly-in-string, no-multi-str*/ diff --git a/src/common/localization/es-cl.ts b/src/common/localization/es-cl.ts index 8cf2216f0..76eea45cf 100644 --- a/src/common/localization/es-cl.ts +++ b/src/common/localization/es-cl.ts @@ -43,6 +43,7 @@ export const spanish: IAppStrings = { openCloudProject: { title: "Abrir Proyecto de la Nube", selectConnection: "Select a Connection", + pasteSharedUri: "Pegue la cadena de proyecto compartida aquí", }, deleteProject: { title: "Borrar Proyecto", @@ -400,6 +401,7 @@ export const spanish: IAppStrings = { } }, farItems: { + share: "Compartir proyecto", zoom: { zoomOut: "Alejar", zoomIn: "Acercarse", @@ -613,6 +615,17 @@ export const spanish: IAppStrings = { message: "Error al enviar solicitud a Azure Blob Container. Problemas comunes: \n • SAS URI no válida \n • Cross-Origin Resource Sharing (CORS) no está configurado del lado del servidor \n • Error de red", } }, + shareProject: { + errors: { + cannotDecodeString: "¡No se puede decodificar la cadena compartida! Por favor, verifique si su cadena ha sido modificada.", + connectionNotFound: "Conexión no encontrada. Agregue la conexión del proyecto compartido a sus conexiones.", + noConnections: "Se requiere conexión para compartir proyectos", + tokenNameExist: "¡Advertencia! Ya tiene token con el mismo nombre que en el proyecto compartido. Cree un nuevo token y actualice el proyecto existente que usa ''${sharedTokenName}'' con el nuevo nombre del token.", + }, + copy: { + success: "La cadena para compartir su proyecto se ha guardado en el portapapeles. Para usarlo, péguelo en la sección correspondiente de la ventana emergente 'Open Cloud Project'.", + } + } }; /*eslint-enable no-template-curly-in-string, no-multi-str*/ diff --git a/src/common/strings.ts b/src/common/strings.ts index 3e0688335..ceb8d8c30 100644 --- a/src/common/strings.ts +++ b/src/common/strings.ts @@ -43,6 +43,7 @@ export interface IAppStrings { openCloudProject: { title: string; selectConnection: string; + pasteSharedUri: string; }, deleteProject: { title: string; @@ -393,6 +394,7 @@ export interface IAppStrings { }, }, farItems: { + share: string, zoom: { zoomOut: string, zoomIn: string, @@ -514,6 +516,17 @@ export interface IAppStrings { modelCountLimitExceeded: IErrorMetadata, requestSendError: IErrorMetadata, }; + shareProject: { + errors: { + cannotDecodeString: string, + connectionNotFound: string, + noConnections: string, + tokenNameExist: string, + }, + copy: { + success: string, + } + } } interface IErrorMetadata { diff --git a/src/common/utils.ts b/src/common/utils.ts index 516519823..79beae8a0 100644 --- a/src/common/utils.ts +++ b/src/common/utils.ts @@ -346,3 +346,14 @@ export function getNextColor(tags: ITag[]) { return tagColors[randomIntInRange(0, tagColors.length - 1)]; } + +export function getSasFolderString(sas:string): string { + return sas.substr(0, sas.indexOf("?")) +} + + +export function fixedEncodeURIComponent(str: string) { + return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { + return '%' + c.charCodeAt(0).toString(16) + }) + } diff --git a/src/config/fabric-icons.json b/src/config/fabric-icons.json index 5d9a41ab7..87293ef19 100644 --- a/src/config/fabric-icons.json +++ b/src/config/fabric-icons.json @@ -6,6 +6,14 @@ "chunkSubsets": false, "hashFontFileName": true, "glyphs": [ + { + "name": "Combine", + "unicode": "EDBB" + }, + { + "name": "TextField", + "unicode": "EDC3" + }, { "name": "SortUp", "unicode": "EE68" @@ -15,29 +23,21 @@ "unicode": "EE69" }, { - "name": "Table", - "unicode": "ED86" + "name": "OpenFolderHorizontal", + "unicode": "ED25" }, { - "name": "TextField", - "unicode": "EDC3" + "name": "Table", + "unicode": "ED86" }, { - "name": "Combine", - "unicode": "EDBB" + "name": "DocumentManagement", + "unicode": "EFFC" }, { "name": "TextDocument", "unicode": "F029" }, - { - "name": "StatusCircleCheckmark", - "unicode": "F13E" - }, - { - "name": "DocumentManagement", - "unicode": "EFFC" - }, { "name": "CircleRing", "unicode": "EA3A" @@ -54,10 +54,6 @@ "name": "Documentation", "unicode": "EC17" }, - { - "name": "OpenFolderHorizontal", - "unicode": "ED25" - }, { "name": "AddTo", "unicode": "ECC8" @@ -75,36 +71,56 @@ "unicode": "F295" }, { - "name": "PlugConnected", - "unicode": "F302" + "name": "StatusCircleCheckmark", + "unicode": "F13E" + }, + { + "name": "AlertSolid", + "unicode": "F331" }, { "name": "Plug", "unicode": "F300" }, { - "name": "AlertSolid", - "unicode": "F331" + "name": "PlugConnected", + "unicode": "F302" }, { - "name": "Refresh", - "unicode": "E72C" + "name": "ChevronDown", + "unicode": "E70D" }, { - "name": "CheckboxComposite", - "unicode": "E73A" + "name": "ChevronUp", + "unicode": "E70E" + }, + { + "name": "Edit", + "unicode": "E70F" + }, + { + "name": "Add", + "unicode": "E710" + }, + { + "name": "Cancel", + "unicode": "E711" }, { "name": "More", "unicode": "E712" }, + { + "name": "Link", + "unicode": "E71B" + }, { "name": "Settings", "unicode": "E713" }, { - "name": "Link", - "unicode": "E71B" + "name": "ReceiptProcessing", + "unicode": "E496" }, { "name": "Filter", @@ -115,25 +131,13 @@ "unicode": "E71F" }, { - "name": "Search", - "unicode": "E721" + "name": "CheckboxComposite", + "unicode": "E73A" }, { "name": "CheckMark", "unicode": "E73E" }, - { - "name": "ChevronRight", - "unicode": "E76C" - }, - { - "name": "ChevronLeft", - "unicode": "E76B" - }, - { - "name": "Cancel", - "unicode": "E711" - }, { "name": "Up", "unicode": "E74A" @@ -151,61 +155,61 @@ "unicode": "E753" }, { - "name": "Add", - "unicode": "E710" + "name": "Search", + "unicode": "E721" }, { - "name": "ChevronUp", - "unicode": "E70E" + "name": "Refresh", + "unicode": "E72C" }, { - "name": "ReceiptProcessing", - "unicode": "E496" + "name": "Share", + "unicode": "E72D" }, { - "name": "ChevronDown", - "unicode": "E70D" + "name": "Download", + "unicode": "E896" }, { - "name": "Edit", - "unicode": "E70F" + "name": "Help", + "unicode": "E897" }, { - "name": "Copy", - "unicode": "E8C8" + "name": "Rename", + "unicode": "E8AC" }, { "name": "ZoomIn", "unicode": "E8A3" }, { - "name": "Rename", - "unicode": "E8AC" + "name": "View", + "unicode": "E890" + }, + { + "name": "MapLayers", + "unicode": "E81E" }, { "name": "Tag", "unicode": "E8EC" }, { - "name": "View", - "unicode": "E890" + "name": "Copy", + "unicode": "E8C8" }, { - "name": "Download", - "unicode": "E896" + "name": "ChevronLeft", + "unicode": "E76B" }, { - "name": "Help", - "unicode": "E897" + "name": "ChevronRight", + "unicode": "E76C" }, { "name": "Home", "unicode": "E80F" }, - { - "name": "MapLayers", - "unicode": "E81E" - }, { "name": "KeyPhraseExtraction", "unicode": "E395" diff --git a/src/react/components/common/cloudFilePicker/cloudFilePicker.scss b/src/react/components/common/cloudFilePicker/cloudFilePicker.scss new file mode 100644 index 000000000..a4306859c --- /dev/null +++ b/src/react/components/common/cloudFilePicker/cloudFilePicker.scss @@ -0,0 +1,18 @@ +.shared-string-input-container { + padding: 1rem; + .input-uri { + padding: 1rem; + .form-control{ + font-size: 90%; + } + } +} + +.separator { + margin: 0 1rem; + div{ + background-color: #32383e; + color: white; + font-weight: 600; + } +} diff --git a/src/react/components/common/cloudFilePicker/cloudFilePicker.tsx b/src/react/components/common/cloudFilePicker/cloudFilePicker.tsx index f63521740..3590c5174 100644 --- a/src/react/components/common/cloudFilePicker/cloudFilePicker.tsx +++ b/src/react/components/common/cloudFilePicker/cloudFilePicker.tsx @@ -3,11 +3,13 @@ import React from "react"; import { toast } from "react-toastify"; -import { Button, Modal, ModalBody, ModalFooter, ModalHeader } from "reactstrap"; +import { Button, Modal, ModalBody, ModalFooter, ModalHeader, InputGroup, Input } from "reactstrap"; import { strings, interpolate } from "../../../../common/strings"; -import { IConnection, StorageType, ErrorCode, AppError } from "../../../../models/applicationState"; +import { IConnection, StorageType, ErrorCode, AppError, ISecurityToken } from "../../../../models/applicationState"; import { StorageProviderFactory } from "../../../../providers/storage/storageProviderFactory"; import CondensedList, { ListItem } from "../condensedList/condensedList"; +import "./cloudFilePicker.scss" +import { Separator } from "@fluentui/react"; /** * Properties for Cloud File Picker @@ -18,12 +20,17 @@ import CondensedList, { ListItem } from "../condensedList/condensedList"; */ export interface ICloudFilePickerProps { connections: IConnection[]; - onSubmit: (content: string) => void; - + onSubmit: (content: string, token?: {}) => void; onCancel?: () => void; fileExtension?: string; } +interface ISharedStringData { + sasFolder: string; + token: ISecurityToken; + projectName: string; +} + /** * State for Cloud File Picker * @member isOpen - Cloud File Picker is open @@ -42,6 +49,10 @@ export interface ICloudFilePickerState { selectedFile: string; okDisabled: boolean; backDisabled: boolean; + pastedUri: string; + pasting: boolean; + sharedStringData: ISharedStringData; + haveCloudConnections: boolean; } /** @@ -50,7 +61,7 @@ export interface ICloudFilePickerState { */ export class CloudFilePicker extends React.Component { - constructor(props) { + constructor(props: Readonly) { super(props); this.open = this.open.bind(this); @@ -63,6 +74,8 @@ export class CloudFilePicker extends React.Component×; - return( + return ( {this.state.modalHeader} - - {this.state.condensedList} - + {!this.state.selectedConnection && + <> +
+
Shared Project String
+ {!this.state.haveCloudConnections && +
{strings.shareProject.errors.noConnections}
+ } + + + +
+ + } + {(!this.state.selectedConnection && !this.state.pastedUri) && or + } + {!this.state.pastedUri && + {this.state.condensedList} + } {this.state.selectedFile || ""} - {this.state.backDisabled ? - - : + disabled={this.state.okDisabled}>Ok + {this.state.backDisabled && !this.state.pastedUri ? + : } @@ -100,7 +132,7 @@ export class CloudFilePicker extends React.Component 0, }; } @@ -133,6 +170,52 @@ export class CloudFilePicker extends React.Component providerOptions["sas"].includes(sasFolder)); + if (connection) { + return connection; + } + toast.error(strings.shareProject.errors.connectionNotFound); + return null + } + + private getSharedUriParams(sharedString: string) { + try { + return JSON.parse(window.atob(sharedString)); + } catch (error) { + toast.error(strings.shareProject.errors.cannotDecodeString); + return null; + } + } + + private handlePasteUri(ev) { + this.setState({ pasting: true, pastedUri: ev.target.value }) + } + + private handleChangeUri(ev) { + if (this.state.pasting) { + this.setState({ pastedUri: ev.target.value, okDisabled: false }); } } @@ -140,6 +223,7 @@ export class CloudFilePicker extends React.Component { project: MockFactory.createTestProject(), lockedTags: [], hoveredLabel: null, + appSettings: null, }; const assetPreviewProps: IAssetPreviewProps = { diff --git a/src/react/components/pages/editorPage/canvas.tsx b/src/react/components/pages/editorPage/canvas.tsx index 3a053182e..3950b5310 100644 --- a/src/react/components/pages/editorPage/canvas.tsx +++ b/src/react/components/pages/editorPage/canvas.tsx @@ -9,7 +9,7 @@ import { EditorMode, IAssetMetadata, IProject, IRegion, RegionType, AssetType, ILabelData, ILabel, - ITag, IAsset, IFormRegion, FeatureCategory, FieldType, FieldFormat, + ITag, IAsset, IFormRegion, FeatureCategory, FieldType, FieldFormat, ISecurityToken, } from "../../../../models/applicationState"; import CanvasHelpers from "./canvasHelpers"; import { AssetPreview } from "../../common/assetPreview/assetPreview"; @@ -30,15 +30,20 @@ import Alert from "../../common/alert/alert"; import * as pdfjsLib from "pdfjs-dist"; import Polygon from "ol/geom/Polygon"; import HtmlFileReader from "../../../../common/htmlFileReader"; -import { parseTiffData, renderTiffToCanvas, loadImageToCanvas } from "../../../../common/utils"; +import { parseTiffData, renderTiffToCanvas, loadImageToCanvas, getSasFolderString, fixedEncodeURIComponent } from "../../../../common/utils"; import { constants } from "../../../../common/constants"; import { CanvasCommandBar } from "./canvasCommandBar"; import { TooltipHost, ITooltipHostStyles } from "@fluentui/react"; +import { IAppSettings } from '../../../../models/applicationState'; +import { toast } from "react-toastify"; +import { strings } from "../../../../common/strings"; + pdfjsLib.GlobalWorkerOptions.workerSrc = constants.pdfjsWorkerSrc(pdfjsLib.version); const cMapUrl = constants.pdfjsCMapUrl(pdfjsLib.version); export interface ICanvasProps extends React.Props { + appSettings: IAppSettings, selectedAsset: IAssetMetadata; editorMode: EditorMode; project: IProject; @@ -52,8 +57,9 @@ export interface ICanvasProps extends React.Props { onCanvasRendered?: (canvas: HTMLCanvasElement) => void; onRunningOCRStatusChanged?: (isRunning: boolean) => void; onTagChanged?: (oldTag: ITag, newTag: ITag) => void; + runOcrForAllDocs?: (runForAllDocs: boolean) => void; + shareProject?: () => void; onAssetDeleted?: () => void; - runOcrForAllDocs?: (runForAllDocs:boolean) => void; } export interface ICanvasState { @@ -106,6 +112,8 @@ export default class Canvas extends React.Component project: null, lockedTags: [], hoveredLabel: null, + appSettings: null, + shareProject: null, }; public state: ICanvasState = { @@ -217,6 +225,8 @@ export default class Canvas extends React.Component handleRunOcr={this.runOcr} handleAssetDeleted={this.props.onAssetDeleted} handleRunOcrForAllDocuments={this.runOcrForAllDocuments} + handleShareProject={this.shareProject} + connectionType={this.props.project.sourceConnection.providerType} /> this.imageMap = ref} @@ -295,6 +305,29 @@ export default class Canvas extends React.Component this.props.runOcrForAllDocs(true); } + // creates URI for sharing project + private shareProject = (): void => { + const project: IProject = this.props.project; + const sasFolder: string = getSasFolderString(project.sourceConnection.providerOptions["sas"]); + const projectToken: ISecurityToken = this.props.appSettings.securityTokens + .find((securityToken) => securityToken.name === project.securityToken); + const shareProjectString: string = JSON.stringify({ + sasFolder, + projectName: project.name, + token: { name: project.securityToken, key: projectToken.key } + }); + + this.copyToClipboard(shareProjectString) + } + + private async copyToClipboard(value: string) { + const clipboard = (navigator as any).clipboard; + if (clipboard && clipboard.writeText) { + await clipboard.writeText(btoa(value)); + toast.success(strings.shareProject.copy.success); + } + } + public updateSize() { this.imageMap.updateSize(); } diff --git a/src/react/components/pages/editorPage/canvasCommandBar.tsx b/src/react/components/pages/editorPage/canvasCommandBar.tsx index 6d5583429..509888994 100644 --- a/src/react/components/pages/editorPage/canvasCommandBar.tsx +++ b/src/react/components/pages/editorPage/canvasCommandBar.tsx @@ -11,11 +11,13 @@ interface ICanvasCommandBarProps { handleRunOcr: () => void; handleRunOcrForAllDocuments: () => void; handleLayerChange: (layer: string) => void; + handleShareProject: () => void; + connectionType: string; handleAssetDeleted?: () => void; layers: any; } -export const CanvasCommandBar: React.FunctionComponent = (props) => { +export const CanvasCommandBar: React.FunctionComponent = (props:ICanvasCommandBarProps) => { const dark: ICustomizations = { settings: { theme: getDarkGreyTheme(), @@ -95,6 +97,18 @@ export const CanvasCommandBar: React.FunctionComponent = iconProps: { iconName: "More" }, subMenuProps: { items: [ + { + key: "shareProject", + text: strings.editorPage.canvas.canvasCommandBar.farItems.share, + disabled: props.connectionType !== "azureBlobStorage", + iconProps: { iconName: "Share" }, + className: props.connectionType !== "azureBlobStorage" ? "disabled" : "", + onClick: () => props.handleShareProject(), + }, + { + key: 'divider_0', + itemType: ContextualMenuItemType.Divider, + }, { key: "runOcrForCurrentDocument", text: strings.editorPage.canvas.canvasCommandBar.farItems.additionalActions.subIMenuItems.runOcrOnCurrentDocument, diff --git a/src/react/components/pages/editorPage/editorPage.tsx b/src/react/components/pages/editorPage/editorPage.tsx index e52361786..4b18ae1f0 100644 --- a/src/react/components/pages/editorPage/editorPage.tsx +++ b/src/react/components/pages/editorPage/editorPage.tsx @@ -271,7 +271,9 @@ export default class EditorPage extends React.Component + runOcrForAllDocs={this.loadOcrForNotVisited} + appSettings={this.props.appSettings} + > this.loadSelectedProject(JSON.parse(content))} + onSubmit={(content, sharedToken?) => this.loadSelectedProject(JSON.parse(content), sharedToken)} fileExtension={constants.projectFileExtension} /> @@ -155,9 +155,11 @@ export default class HomePage extends React.Component { - await this.props.actions.loadProject(project); - this.props.history.push(`/projects/${project.id}/edit`); + private loadSelectedProject = async (project: IProject, sharedToken?: {}) => { + const loadedProject = await this.props.actions.loadProject(project, sharedToken); + if (loadedProject !== null) { + this.props.history.push(`/projects/${project.id}/edit`); + } } private freshLoadSelectedProject = async (project: IProject) => { diff --git a/src/react/components/pages/predict/predictPage.tsx b/src/react/components/pages/predict/predictPage.tsx index d8a7c4ce3..b05adff47 100644 --- a/src/react/components/pages/predict/predictPage.tsx +++ b/src/react/components/pages/predict/predictPage.tsx @@ -132,10 +132,11 @@ export default class PredictPage extends React.Component project.id === projectId); - await this.props.actions.loadProject(project); - this.props.appTitleActions.setTitle(project.name); + if (project) { + await this.props.actions.loadProject(project); + this.props.appTitleActions.setTitle(project.name); + } } - document.title = strings.predict.title + " - " + strings.appName; } diff --git a/src/redux/actions/projectActions.ts b/src/redux/actions/projectActions.ts index 9fd752e43..b8c685c4d 100644 --- a/src/redux/actions/projectActions.ts +++ b/src/redux/actions/projectActions.ts @@ -13,15 +13,19 @@ import { IAssetMetadata, IProject, ITag, + ISecurityToken, } from "../../models/applicationState"; import { createAction, createPayloadAction, IPayloadAction } from "./actionCreators"; import { appInfo } from "../../common/appInfo"; +import { saveAppSettingsAction } from "./applicationActions"; +import { toast } from 'react-toastify'; +import { strings, interpolate } from "../../common/strings"; /** * Actions to be performed in relation to projects */ export default interface IProjectActions { - loadProject(project: IProject): Promise; + loadProject(project: IProject, token?: {}): Promise; saveProject(project: IProject, saveTags?: boolean, updateTagsFromFiles?: boolean): Promise; deleteProject(project: IProject): Promise; closeProject(): void; @@ -39,15 +43,34 @@ export default interface IProjectActions { * Dispatches Load Project action and resolves with IProject * @param project - Project to load */ -export function loadProject(project: IProject): +export function loadProject(project: IProject, sharedToken?: ISecurityToken): (dispatch: Dispatch, getState: () => IApplicationState) => Promise { return async (dispatch: Dispatch, getState: () => IApplicationState) => { const appState = getState(); const projectService = new ProjectService(); + let projectToken: ISecurityToken; // Lookup security token used to decrypt project settings - const projectToken = appState.appSettings.securityTokens - .find((securityToken) => securityToken.name === project.securityToken); + if (sharedToken) { + projectToken = sharedToken; + const existingToken = appState.appSettings.securityTokens.find((token) => token.name === projectToken.name); + + if (!existingToken) { + // if we do not have project sharedToken, we need update security tokens in appState + dispatch(saveAppSettingsAction({ + securityTokens: [ + ...appState.appSettings.securityTokens, + sharedToken + ] + })); + } else if (existingToken.key !== sharedToken.key) { + const reason = interpolate(strings.shareProject.errors.tokenNameExist, {sharedTokenName: sharedToken.name}) + toast.error(reason, { autoClose: false, closeOnClick: false }); + return null; + } + } else { + projectToken = appState.appSettings.securityTokens.find((token) => token.name === project.securityToken); + } if (!projectToken) { throw new AppError(ErrorCode.SecurityTokenNotFound, "Security Token Not Found"); diff --git a/src/registerIcons.ts b/src/registerIcons.ts index 85b31e644..8a66d30cf 100644 --- a/src/registerIcons.ts +++ b/src/registerIcons.ts @@ -22,7 +22,6 @@ export function registerIcons() { Settings: "\uE713", Link: "\uE71B", Search: "\uE721", - Refresh: "\uE72C", CheckMark: "\uE73E", Up: "\uE74A", Down: "\uE74B", @@ -61,10 +60,12 @@ export function registerIcons() { MapLayers: "\uE81E", BookAnswers: "\uF8A4", Cancel: "\uE711", + Refresh: "\uE72C", Documentation: "\uEC17", More: "\uE712", ReceiptProcessing: "\uE496", KeyPhraseExtraction: "\uE395", + Share: "\uE72D", ChromeRestore: "\uE923", ChromeMinimize: "\uE921", System: "\uE770", diff --git a/yarn.lock b/yarn.lock index db3e34ac6..7ebbfbf96 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9259,6 +9259,11 @@ peek-readable@^3.1.0: resolved "https://registry.yarnpkg.com/peek-readable/-/peek-readable-3.1.0.tgz#250b08b7de09db8573d7fd8ea475215bbff14348" integrity sha512-KGuODSTV6hcgdZvDrIDBUkN0utcAVj1LL7FfGbM0viKTtCHmtZcuEJ+lGqsp0fTFkGqesdtemV2yUSMeyy3ddA== +peek-readable@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/peek-readable/-/peek-readable-3.1.0.tgz#250b08b7de09db8573d7fd8ea475215bbff14348" + integrity sha512-KGuODSTV6hcgdZvDrIDBUkN0utcAVj1LL7FfGbM0viKTtCHmtZcuEJ+lGqsp0fTFkGqesdtemV2yUSMeyy3ddA== + pend@~1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"