Skip to content

Cleanup transfers and codebase imports#314

Merged
warpdesign merged 9 commits into
masterfrom
cleanup-transfers-and-codebase-imports
Nov 23, 2022
Merged

Cleanup transfers and codebase imports#314
warpdesign merged 9 commits into
masterfrom
cleanup-transfers-and-codebase-imports

Conversation

@warpdesign
Copy link
Copy Markdown
Owner

@warpdesign warpdesign commented Nov 23, 2022

This PR cleans up transfers:

  • transfers moved into state/transferState + state/transferListState
  • renamed everywhere batch to transfer
  • replace relative imports by absolute ones using $src
  • removes prepareTransferTo,... and cleanup copy method from appState
  • made all copy triggers (paste/drag&drop/..) use the same appState.copy function
  • fixes FileTransfer: misleading error message #274 and most problems with transfers appearing as ongoing even though they are done

I also did some visual tweaks: drop target will now show a nice overlay show target's validity.

- replaced local imports with global imports using $src
- moved FileTable files into its own directory
- moved WithMenuAccelerators into a new hoc directory
- share Icons constant with Cypress test files
Also renamed batch to transfer everywhere.
Still need to plug other type of copies to new AppState.copy() method.
Also need to do some heavy copy error testing.
Also fixed openTransferedFile typo
When attempting to drop elements in a filetable, only a little outline indicated
if the target was valid. This PR adds a bigger overlay with an icon that clearly
indicates the target's validity.

The Loader component was renamed to Overlay and made generic so it can be
reused for the drop target.
…ed getters

We had to make this change because toJS ignores computed properties.
This explains why download progress bar was still displayed, even though
the transfer was done.

This commit also fixes the badge which did not appear because some
actions done inside async functions were not wrapped into runInAction
calls.
@warpdesign warpdesign merged commit 6b202d2 into master Nov 23, 2022
@warpdesign warpdesign deleted the cleanup-transfers-and-codebase-imports branch November 23, 2022 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FileTransfer: misleading error message

1 participant