-
Notifications
You must be signed in to change notification settings - Fork 65
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
fix: Harmonize flagship upload view #3006
fix: Harmonize flagship upload view #3006
Conversation
BundleMonFiles updated (3)
Unchanged files (16)
Total files change +378B +0.01% Groups updated (3)
Unchanged groups (5)
Final result: ✅ View report in BundleMon website ➡️ |
730f732
to
53ad7f4
Compare
- file icon - no back arrow - fix paddings - fix breadcrumb overlay
53ad7f4
to
8fb8a54
Compare
// The upload can only happen once as the webapp is closed before the upload process can start again | ||
if (didFlow.current) return | ||
|
||
const processed = (getProcessed(state) as () => unknown[]).length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This typing seems weird. Shouldn't this be getProcesses(state) as unknown[]
? Otherwise you seems to call .length
on a method pointer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's because I'm casting the actual getProcessed selector instead of the result, in any case it doesn't look great when using untyped code in strictly typed code
@@ -18,7 +18,8 @@ declare module 'cozy-ui/transpiled/react/providers/I18n' { | |||
|
|||
declare module 'cozy-ui/transpiled/react/deprecated/Alerter' { | |||
const Alerter: { | |||
error: (message: string) => void | |||
error: (message: string, options?: Record<string, unknown>) => void | |||
success: (message: string, options?: Record<string, unknown>) => void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we modify cozy-ui to expose those new definitions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes ideally, in this case I took the fastest way, I think it can be done after publication in test flight (for flagship too)
@@ -533,6 +533,7 @@ | |||
"header": "Uploading %{smart_count} photo to Cozy Drive |||| Uploading %{smart_count} photos to Cozy Drive", | |||
"header_mobile": "Uploading %{done} of %{total}", | |||
"header_done": "Uploaded %{done} out of %{total} successfully", | |||
"success_flagship": "%{smart_count} file uploaded with success. |||| %{smart_count} files uploaded with success.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to add other languages translations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to do that in Transifex 👍
🐛 Bug Fixes