tango-app-api-trax 3.8.16 → 3.8.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-trax",
3
- "version": "3.8.16",
3
+ "version": "3.8.17",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -111,7 +111,7 @@
111
111
  <div class="cover-summary">
112
112
  <div class="cover-sum-row"><span class="cover-sum-label">No. of questions</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{numQuestions}}</span></div>
113
113
  <div class="cover-sum-row"><span class="cover-sum-label">No. of flags</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{numFlags}}</span></div>
114
- <div class="cover-sum-row"><span class="cover-sum-label">AI Breached</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{aiBreached}}</span></div>
114
+ {{!-- <div class="cover-sum-row"><span class="cover-sum-label">AI Breached</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{aiBreached}}</span></div> --}}
115
115
  <div class="cover-sum-row"><span class="cover-sum-label">Submitted By</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{submittedBy}}</span></div>
116
116
  <div class="cover-sum-row"><span class="cover-sum-label">Country</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{country}}</span></div>
117
117
  </div>
@@ -193,11 +193,27 @@
193
193
  {{/each}}
194
194
  </div>
195
195
  {{/if}}
196
+ {{#if this.multiReferenceImage.length}}
197
+ <td style="width:50%;vertical-align:top;padding-right:8px">
198
+ <div class="q-answer-caption">Reference Image</div>
199
+ {{#each this.multiReferenceImage}}
200
+ <img src="{{this}}" alt="Reference Image" />
201
+ {{/each}}
202
+ </td>
203
+ {{/if}}
204
+ {{#unless this.multiReferenceImage.length}}
205
+ {{#if this.referenceImage}}
206
+ <td style="width:50%;vertical-align:top;padding-right:8px">
207
+ <div class="q-answer-caption">Reference Image</div>
208
+ <img src="{{this.referenceImage}}" alt="Reference Image" />
209
+ </td>
210
+ {{/if}}
211
+ {{/unless}}
196
212
  {{!-- <span class="q-ans {{#if this.isYes}}ans-yes{{else}}{{#if this.isNo}}ans-no{{/if}}{{/if}}">{{#if this.isYes}}✓ Yes{{else}}{{#if this.isNo}}✗ No{{else}}{{this.answerDisplay}}{{/if}}{{/if}}</span> --}}
197
213
  {{#if this.userAnswer.length}}
198
214
  <div class="q-answer-list">
199
- {{!-- text/video answers render per userAnswer above the table --}}
200
215
  {{#each this.userAnswer}}
216
+ <div class="q-answer-item">
201
217
  {{#eq this.answerType 'text'}}
202
218
  {{#if this.answer}}
203
219
  <div class="q-answer-text {{#if this.sopFlag}}flagged{{/if}}">{{this.answer}}</div>
@@ -211,64 +227,46 @@
211
227
  </div>
212
228
  {{/if}}
213
229
  {{/eq}}
214
- {{/each}}
215
230
 
216
- {{!-- Single 50/50 table per question: references rendered once on the left,
217
- all uploaded/validation images stacked on the right --}}
218
- <table style="width:100%;margin-top:8px"><tr>
219
- {{#if this.userAnswer.[0].multiReferenceImage.length}}
220
- <td style="width:50%;vertical-align:top;padding-right:8px">
221
- <div class="q-answer-caption">Reference Image</div>
222
- {{#each this.userAnswer.[0].multiReferenceImage}}
223
- <img src="{{this}}" alt="Reference Image" />
224
- {{/each}}
225
- </td>
226
- {{else}}
227
- {{#if this.userAnswer.[0].referenceImage}}
228
- <td style="width:50%;vertical-align:top;padding-right:8px">
229
- <div class="q-answer-caption">Reference Image</div>
230
- <img src="{{this.userAnswer.[0].referenceImage}}" alt="Reference Image" />
231
- </td>
232
- {{/if}}
233
- {{/if}}
234
- <td style="vertical-align:top">
235
- {{#each this.userAnswer}}
236
- {{#eq this.answerType 'image'}}
237
- {{#if this.answer}}
238
- <div class="q-answer-caption">Uploaded Image</div>
239
- <img src="{{this.answer}}" alt="Uploaded Image" />
240
- {{/if}}
241
- {{/eq}}
242
- {{#if this.validation}}
243
- {{#eq this.validationDisplayType 'image'}}
244
- {{#if this.validationAnswer}}
245
- <div class="q-answer-caption">Validation Image</div>
246
- <img src="{{this.validationAnswer}}" alt="Validation Image" />
231
+ <table style="width:100%;margin-top:8px"><tr>
232
+ <td style="vertical-align:top">
233
+ {{#eq this.answerType 'image'}}
234
+ {{#if this.answer}}
235
+ <div class="q-answer-caption">Uploaded Image</div>
236
+ <img src="{{this.answer}}" alt="Uploaded Image" />
247
237
  {{/if}}
248
238
  {{/eq}}
249
- {{#eq this.validationDisplayType 'video'}}
250
- {{#if this.validationAnswer}}
251
- <div class="q-answer-caption">Validation Video</div>
252
- <a class="q-answer-link" href="{{this.validationAnswer}}" target="_blank">{{this.validationAnswer}}</a>
253
- {{/if}}
254
- {{/eq}}
255
- {{#eq this.validationDisplayType 'text'}}
256
- {{#if this.validationAnswer}}
257
- <div class="q-answer-text">{{this.validationAnswer}}</div>
258
- {{/if}}
259
- {{/eq}}
260
- {{#eq this.validationDisplayType 'multiImage'}}
261
- {{#if this.validationImage.length}}
262
- <div class="q-answer-caption">Validation Image</div>
263
- {{#each this.validationImage}}
264
- <img src="{{this}}" alt="Validation Image" />
265
- {{/each}}
266
- {{/if}}
267
- {{/eq}}
268
- {{/if}}
269
- {{/each}}
270
- </td>
271
- </tr></table>
239
+ {{#if this.validation}}
240
+ {{#eq this.validationDisplayType 'image'}}
241
+ {{#if this.validationAnswer}}
242
+ <div class="q-answer-caption">Validation Image</div>
243
+ <img src="{{this.validationAnswer}}" alt="Validation Image" />
244
+ {{/if}}
245
+ {{/eq}}
246
+ {{#eq this.validationDisplayType 'video'}}
247
+ {{#if this.validationAnswer}}
248
+ <div class="q-answer-caption">Validation Video</div>
249
+ <a class="q-answer-link" href="{{this.validationAnswer}}" target="_blank">{{this.validationAnswer}}</a>
250
+ {{/if}}
251
+ {{/eq}}
252
+ {{#eq this.validationDisplayType 'text'}}
253
+ {{#if this.validationAnswer}}
254
+ <div class="q-answer-text">{{this.validationAnswer}}</div>
255
+ {{/if}}
256
+ {{/eq}}
257
+ {{#eq this.validationDisplayType 'multiImage'}}
258
+ {{#if this.validationImage.length}}
259
+ <div class="q-answer-caption">Validation Image</div>
260
+ {{#each this.validationImage}}
261
+ <img src="{{this}}" alt="Validation Image" />
262
+ {{/each}}
263
+ {{/if}}
264
+ {{/eq}}
265
+ {{/if}}
266
+ </td>
267
+ </tr></table>
268
+ </div>
269
+ {{/each}}
272
270
  </div>
273
271
  {{/if}}
274
272
  {{#if this.remarks}}