-
Notifications
You must be signed in to change notification settings - Fork 3
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: improve copy/past text [DHIS2-15012] #63
Conversation
@@ -21,15 +21,15 @@ import styles from './success-content.module.css' | |||
const importTypeConfig = { | |||
imported: { | |||
style: 'success', | |||
text: i18n.t('Imported'), | |||
text: i18n.t('imported'), |
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.
the change here is not related to the main purpose of the ticket, but I noticed incorrect translations when adding/checking translations for this ticket. Lowercasing the translation did not appear to work here, so instead the translation strings in lower-case form are added directly
@@ -25,15 +26,15 @@ const submitReducer = (state, action) => { | |||
error: null, | |||
loading: false, | |||
called: true, | |||
dataSubmitted: true, | |||
dataSubmitted: moment().format(), |
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.
dataSubmitted is changed from a boolean (has data been submitted) to a string (when the data was submitted, for use in the clipboard text)
🚀 Deployed on https://pr-63--dhis2-data-exchange.netlify.app |
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.
lgtm
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.
Tested successfully on 2.41 version
# [100.1.0](v100.0.6...v100.1.0) (2023-08-28) ### Features * improve copy/past text [DHIS2-15012] ([#63](#63)) ([00469ca](00469ca))
🎉 This PR is included in version 100.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
See DHIS2-15012 for information about this ticket.
Changes the clipboard text from a simple CSV output
to more detailed text output (which includes conflicts where relevant):