Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implementing google sdk * Move dissmiss views to resetApp function * add selected type of drive connection view * add SelectSharedDrive view * mock shared drives * create drive folder view * basic implemantation of d-drive library * re-use successLoginView * navigate from select shared drive to success * final tweaks * move google signIn to next button * refactor buttonViews function in serverSelection class * move gDrive login logic to separate function * create gDrive repository and update view models * add gdrive url to TellaURL list * add isValid constraint when creating a folder in gDrive * fix hardcoded strings, add space to VStacks and overall refactor * add serverConnectinoType extension for successLoginView * add domain model for shared drives * add combine in gDriveRepository * add combine to the rest of the gDrive endpoints * remove toast if user is not authenticated * add async await for gDrive methods * implementing google sdk * basic implemantation of d-drive library * final tweaks * add isValid constraint when creating a folder in gDrive * implementing google sdk * basic implemantation of d-drive library * create folder in g-drive * save server connection * save shared drive connection and remove edit option from gDrive connection item * some fixes after rebase * refactor folder creation logic * fix rebase conflicts * disable gDrive connection if is already connected * fix rebase conflicts * fix create folder and remove token if the user remove a gDrive connection * fix issues after rebase with develop * add navbar to gDrive views * add translations * remove void from async auth function in gDrive repository * refactor sharedDriveView * move selected shared drive action to vm * add state manager to shared drive view model * add state management in create folder * move viewModelState into a separate file * fix issue in server selection * move restoreSignIn to a private method inside the repository * add no token error localization * apply DI to gDriveRepository * move mimeTypes to constants * some refactors on gDriveSeverViewModel and state management * change state management on gDriveAuthVM * change onChange for onReceive * Update Toast display * add drive to homeView * add pageView navigation inside gDriveView * add title and description to gDriveDraftView * create folder inside the root folder * fix to supports all drives * create report folder with title and description * add files to GDrive report * create unify draft view * create a general baseReportsViewModel to handle list item navigation * add isValid constraint to GDriveDraftVM * save gDrive draft report * Fix server subclassing (#165) * Fix server subclassing * Initialize allowMultiple to false * create base report class and get GDrive drafts * add gDriveList and show files saved in draft * Remove accessToken from Webserver * Create reusable report component * update and delete draft report * save outbox and submitted report * fix UI bug on connection view and merge with latest draft changes * Fix PR comments * Update report id * make report to conform with reusable report component * make gDriveViewModel to conform with reportMainViewModel * Remove unused code * refactor tellaData and fix navigation between cells * add DraftMainViewModel * add server list menu on draft view * Update Report classes * Add serverId to BaseReport * create OutboxMainVM * add GDriveOutboxVM * add submitMainViewModel and implement it on tella reports and drive reports * Update ReportFile class, Move redundant functions to DraftMainViewModel * track progress update on gDrive * show proper status of uploading * add folderId to gDriveReport * implement pause and resume * add queue to send files sequentially * persist outbox files progress * prevent duplicated files * fix no root folder error * show offline error when is not connected to internet * Centralise updateProgressInfos in OutboxMainViewModel * fix drive encoding when adding and updating drive reports * only update files when tracking progress * Remove unused code * Centralise fillReportVM function in SubmittedMainViewModel class * Refactor code to start uploading report from draft * fix duplicated files issue in shared drive and fix some bugs * remove everything related to drive server after deleting the connection * fix UI errors * change client id and add navigation fix * organize files and folder structure * add remaining localizable strings * pause submission when app enter bg mode or user exit the app * fix localizable issues * improve sign in state on GDriveAuthVM * remove environmentObjects for mainAppModel * fix wording for page component * remove BaseReportsVM * rename reportMainViewModel to ReportsMainViewModel * remove EnvironmentObject from AddFilesToDraftView * add debounceInterval to pause/resume to prevent app crashes * fix design feedback * fix localizableSettings format * remove unused error * fix connection item title and change db version * add some fixes to deleteServerTexts * fix localizable strings * change disabling button to isValid in outbox details * hotfix for large files * remove server protocol and replace print for debugLog * remove generic from draft report * remove drive report files when deleting a report * add missing localizable strings * move Components/connections to CommonConnectionReport * simplify serverArray logic in HomeView * add struct for simplifying upload file function params * add new initializer to ReportFile class * remove server from driveOutboxVM * move processing of vault files to parent method * refactor initializers in reportViewModel * fix thread issues in pause/resume * remove environmentObject * remove report initializaiton in submitReport method on tellaweb * remove isUploading from drive repository * small fix in submitReport method for google drive * convert fileURL method into an asynchronous operation * check if drive upload queue is empty before removing an item * refactor drive errors * add rest of localizable errors * add folder name to driveserver * change db version to apply folder name changes * preven duplicated folder name * Allow only one instace of Uwazi (#172) * rollback to db version 6 * remove hardcoded client id and fix logical error in server list * fix bug in uwazi card * Add TellaConfig * Refactor APIError errorMessage, remove optionnal message * Remove unused code * more fixes * update g-drive server * fix edge case in drive server connection * refactor errors in gDrive * refactor errors * parse auth drive error as APIError * remove TellaConfig * re create tella config file * add tella config to project configuration * Select server view : Fix next button action (#176) * Fix next button action * Fix next button action --------- Co-authored-by: gus valbuena <[email protected]> Co-authored-by: Dhekra Rouatbi <[email protected]> Co-authored-by: gus valbuena <[email protected]> Co-authored-by: rimKtarii <[email protected]> Co-authored-by: dhekra-rouatbi <[email protected]> Co-authored-by: Rimktarii <[email protected]>
- Loading branch information