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

minor ux improvements for scm #1160

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Conversation

GnsP
Copy link
Collaborator

@GnsP GnsP commented Dec 13, 2023

minor ux improvements for scm

Description

Improves data fetching in the scm sync tab, and some copy changes.
Contains a subset of changes from #1157 , as the former PR got larger and not all changes there are cleared to be included in the release 6.10.0

PR Type

  • Bug Fix
  • Feature
  • Build Fix
  • Testing
  • General Improvement
  • Cherry Pick

Links

Jira: CDAP-20917

Test Plan

e2e tests added already.

Screenshots

NA

@GnsP GnsP added build triggers github action 6.10 labels Dec 13, 2023
@GnsP GnsP mentioned this pull request Dec 13, 2023
6 tasks
return '--';
}

return moment(t.seconds * 1000).format('DD-MM-YYYY HH:mm:ss A');
Copy link
Collaborator

Choose a reason for hiding this comment

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

For future consideration: consolidate with date formatting logic in https://github.com/cdapio/cdap-ui/blob/develop/app/cdap/services/DataFormatter/index.ts

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

@GnsP GnsP force-pushed the scm-multi-ux-updates-610 branch from f62b5e8 to 5314d23 Compare December 13, 2023 07:36
? T.translate(`${PREFIX}.operationRanFor`).toString()
: T.translate(`${PREFIX}.operationRunningFor`).toString();

return `${startedPrefix} ${startTime}, ${timeTakenPrefix} ${timeTaken}`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should not be using template literals to generate localized strings - some languages will expect segments to be in a different order. To be fully internationalized, this should be done through T.translate (L102 also)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed. This current implementation may not work properly in all cases, especially in RTL languages. Will update it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated.

Copy link
Collaborator

@njbriggs njbriggs left a comment

Choose a reason for hiding this comment

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

One question about i18n - up to you if you want to address it.

@GnsP GnsP force-pushed the scm-multi-ux-updates-610 branch from 5314d23 to d8e5fcc Compare December 14, 2023 04:31
@GnsP GnsP force-pushed the scm-multi-ux-updates-610 branch from d8e5fcc to ec04bcd Compare December 14, 2023 07:08
@GnsP GnsP merged commit dded876 into cdapio:develop Dec 14, 2023
3 checks passed
GnsP added a commit that referenced this pull request Dec 14, 2023
[🍒] minor ux improvements for scm (from #1160)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.10 build triggers github action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants