Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add FilesDetailScreen #117

Draft
wants to merge 35 commits into
base: main
Choose a base branch
from
Draft

feat: Add FilesDetailScreen #117

wants to merge 35 commits into from

Conversation

tevincent
Copy link
Contributor

@tevincent tevincent commented Oct 23, 2024

file_nav.mp4

Depends on Infomaniak/multiplatform-SwissTransfer#81

Screen to display details of files provided by the parameter filesList.

Can be configured like this:

  • navigateToDetails: this callback is called when the user click on a file
  • withSpaceLeft: if we want to display the space left, useful when displaying files of a transfer
  • onFileRemoved: callback called when the user click on the cross to delete a file. If not provided, the cross on files will not be displayed
  • onCloseClicked: callback called when the cross on the TopAppBar is clicked
  • navigateBack: this callback is called when the user want to navigate back

@tevincent tevincent marked this pull request as draft October 23, 2024 10:50
@tevincent tevincent force-pushed the details-files branch 3 times, most recently from 8c58665 to c57de0e Compare October 23, 2024 12:08
@tevincent tevincent changed the title Add FilesDetailScreen feat: Add FilesDetailScreen Oct 23, 2024
@tevincent tevincent marked this pull request as ready for review October 24, 2024 06:36
@tevincent tevincent marked this pull request as draft October 24, 2024 07:03
@tevincent tevincent marked this pull request as ready for review October 24, 2024 12:29
@tevincent tevincent force-pushed the details-files branch 2 times, most recently from 79c1b3e to 6295db8 Compare October 25, 2024 08:29
Copy link
Contributor

@LunarX LunarX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this screen being used in another PR already? If it is, then it's fine like this but if it's not, we should use the screen already for the imported files during a new transfer, it could help see some details and issue we might not have thought about

@tevincent tevincent force-pushed the details-files branch 3 times, most recently from 57b7150 to bb9b3b7 Compare October 30, 2024 13:52
@tevincent tevincent force-pushed the details-files branch 4 times, most recently from 6eb0c25 to d537d2b Compare October 31, 2024 10:37
@tevincent tevincent force-pushed the details-files branch 3 times, most recently from f295a40 to 749ed98 Compare November 4, 2024 13:24
Copy link

sonarcloud bot commented Nov 21, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants