tango-app-api-trax 3.7.86 → 3.7.88

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.
@@ -50,10 +50,12 @@
50
50
  .pct-mid{background:#faeeda;color:#854f0b}
51
51
  .pct-lo{background:#fcebeb;color:#a32d2d}
52
52
  /* Detail pages */
53
- .detail-page{padding:32px 40px}
53
+ .detail-page{padding:32px 40px;break-inside:auto}
54
+ .q-row{break-inside:avoid}
55
+ .q-answer-item{break-inside:avoid}
54
56
  .dp-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:12px;border-bottom:2px solid #00AEEF}
55
57
  .dp-header h2{font-size:18px;font-weight:700;color:#1a1a2e}
56
- .dp-score{font-size:15px;font-weight:700;color:#00AEEF}
58
+ .dp-score{font-size:15px;font-weight:700;color:#000000}
57
59
  .q-row{display:flex;gap:12px;margin-bottom:14px;padding:12px;border-radius:8px;background:transparent}
58
60
  .q-num{font-size:12px;font-weight:700;color:#000;min-width:22px}
59
61
  .q-body{flex:1}
@@ -114,7 +116,7 @@
114
116
  </div>
115
117
 
116
118
  <div class="cover-footer">
117
- <span class="cover-footer-page">Page 1 of {{totalPages}}</span>
119
+ <span class="cover-footer-page"></span>
118
120
  <div class="cover-footer-gen">
119
121
  <span class="footer-gen-by">Generated by</span>
120
122
  {{> tangoyeFooterLogo gid="cover"}}
@@ -154,19 +156,19 @@
154
156
  {{#each sectionInsights}}
155
157
  <tr>
156
158
  <td>{{this.sectionName}}</td>
157
- <td>{{this.questionsCount}}</td>
158
- <td>{{this.passedCount}}</td>
159
- <td><span class="pct-pill {{#gte this.percentage 90}}pct-hi{{else}}{{#gte this.percentage 70}}pct-mid{{else}}pct-lo{{/gte}}{{/gte}}">{{this.percentage}}%</span></td>
159
+ <td>{{this.targetScore}}</td>
160
+ <td>{{this.actualScore}}</td>
161
+ <td>{{this.percentage}}%</td>
160
162
  </tr>
161
163
  {{/each}}
162
164
  </tbody>
163
165
  </table>
164
166
  </div>
165
- <div class="page-footer">
167
+ {{!-- <div class="page-footer">
166
168
  <span>Page 2 of {{totalPages}}</span>
167
169
  <span class="footer-brand"><span class="footer-gen-by">Generated by</span>{{> tangoyeFooterLogo gid="p2"}}</span>
168
170
  </div>
169
- </div>
171
+ </div> --}}
170
172
  {{/if}}
171
173
 
172
174
  {{!-- PAGES 3+: DETAIL - Question sections --}}
@@ -174,13 +176,18 @@
174
176
  <div class="page">
175
177
  <div class="detail-page">
176
178
  {{#each this.sections}}
177
- <div class="dp-header" {{#unless @first}}style="margin-top:20px"{{/unless}}><h2>{{this.sectionName}}</h2><span class="dp-score">{{this.currentScore}}/{{this.maxScore}} · {{this.percentage}}%</span></div>
179
+ <div class="dp-header" {{#unless @first}}style="margin-top:20px"{{/unless}}><h2>{{this.sectionName}}</h2><span class="dp-score">{{this.currentScore}}/{{this.maxScore}}</span></div>
178
180
  <div class="sec-questions">
179
181
  {{#each this.questions}}
180
182
  <div class="q-row">
181
183
  <span class="q-num">{{this.qno}}</span>
182
184
  <div class="q-body">
183
- <div class="q-text">{{this.qname}}{{#if this.isNo}}<span class="flag-badge">FLAG</span>{{/if}}</div>
185
+ <div class="q-text" style="display:flex;justify-content:space-between">
186
+ <div>{{this.qname}}</div>
187
+ {{#if this.compliance}}
188
+ <div>Score:{{this.score}}</div>
189
+ {{/if}}
190
+ </div>
184
191
  {{!-- <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> --}}
185
192
  {{#if this.userAnswer.length}}
186
193
  <div class="q-answer-list">
@@ -241,19 +248,19 @@
241
248
  </div>
242
249
  {{/each}}
243
250
 
244
- {{#if this.isLastGroup}}
251
+ {{!-- {{#if this.isLastGroup}}
245
252
  {{#each ../flags}}
246
253
  <div style="margin-top:12px;padding:12px;background:#faeeda;border-radius:8px;border-left:4px solid #ef9f27">
247
254
  <strong style="font-size:13px;color:#854f0b">⚠ Flag: {{this.sectionName}} — {{this.qname}}</strong>
248
255
  <p style="font-size:12px;color:#854f0b;margin-top:4px">Q{{this.qno}} ({{this.sectionName}}): "{{this.qname}}" — Answered: <strong>{{this.answer}}</strong>. Action required.</p>
249
256
  </div>
250
257
  {{/each}}
251
- {{/if}}
258
+ {{/if}} --}}
252
259
  </div>
253
- <div class="page-footer">
260
+ {{!-- <div class="page-footer">
254
261
  <span>Page {{this.pageNumber}} of {{../totalPages}}</span>
255
262
  <span class="footer-brand"><span class="footer-gen-by">Generated by</span>{{> tangoyeFooterLogo gid=(strConcat 'd' @index)}}</span>
256
- </div>
263
+ </div> --}}
257
264
  </div>
258
265
  {{/each}}
259
266
 
@@ -37,6 +37,7 @@ internalTraxRouter
37
37
  .post( '/getSubmissionDetails', isAllowedInternalAPIHandler, internalController.checklistTaskSubmissionDetails )
38
38
  .post( '/posblock', isAllowedInternalAPIHandler, internalController.getStoreTaskDetails )
39
39
  .post( '/runAIFlag', isAllowedInternalAPIHandler, internalController.runAIFlag )
40
+ .post( '/downloadInsertPdf', isAllowedInternalAPIHandler, internalController.downloadInsertPdf )
40
41
  ;
41
42
 
42
43