Conversation
lib/manager/actions/status.js
Outdated
| <ul> | ||
| {failureReasons.map((r, i) => <li key={i}>{r}</li>)} | ||
| </ul> |
There was a problem hiding this comment.
Unrelated to this PR: a similar (scrolling) list could be added for successful merges.
There was a problem hiding this comment.
I'm not sure I follow. What would this list show?
lib/manager/actions/status.js
Outdated
| // Do nothing or show merged feed modal? Feed version is be created | ||
| details.push('Remapped ID count: ' + result.remappedReferences) | ||
| if (Object.keys(result.remappedIds).length > 0) { | ||
| details.push([messages('remappedIdCount'), remappedReferences].join(SEPARATOR)) |
There was a problem hiding this comment.
Could there be a template string used in the english.yml file instead?
lib/manager/actions/status.js
Outdated
| } | ||
| details.push('Remapped IDs: ' + remappedIdStrings.join(', ')) | ||
| details.push( | ||
| [messages('remappedIds'), remappedIdStrings.join(', ')].join(SEPARATOR) |
There was a problem hiding this comment.
Could there be a template string used in the english.yml file instead?
lib/manager/actions/status.js
Outdated
| } | ||
| details.push('Skipped records: ' + skippedRecordsStrings.join(', ')) | ||
| details.push( | ||
| [messages('skipped'), skippedRecordsStrings.join(', ')].join(SEPARATOR) |
There was a problem hiding this comment.
Could there be a template string used in the english.yml file instead?
lib/manager/actions/status.js
Outdated
| details.push('ID conflicts: ' + result.idConflicts.join(', ')) | ||
| if (idConflicts.length > 0) { | ||
| details.push( | ||
| [messages('idConflicts'), idConflicts.join(', ')].join(SEPARATOR) |
There was a problem hiding this comment.
Could there be a template string used in the english.yml file instead?
i18n/english.yml
Outdated
| title: Log in | ||
| MergeFeedsResult: | ||
| body: | ||
| failure: Merge failed with $errorCount errors. |
There was a problem hiding this comment.
This is inconsistent with the way template strings are done in components.FeedTransformationDescriptions.DeleteRecordsTransformation. Can we agree upon a consistent way of doing template strings?
evansiroky
left a comment
There was a problem hiding this comment.
Could use more template strings in certain places, and also it'd be nice to have an agreed-upon way of doing template strings.
Comments from @evansiroky were addressed.
|
Assigning back to @binh-dam-ibigroup to coordinate merge with the backend |
Checklist
devbefore they can be merged tomaster)Description
Contains UI tweaks that correspond to changes in ibi-group/datatools-server#376