Data Request API helper #10

Merged
Oliver merged 94 commits from feat/data-requests into main 2025-11-22 02:51:15 +00:00
3 changed files with 38 additions and 0 deletions
Showing only changes of commit e79bd4d505 - Show all commits

21
styles/elements/table.css Normal file
View file

@ -0,0 +1,21 @@
/*
This styling is unscoped in order to make it so that it still applies
to the chat messages which are not within a scope I control.
*/
table.taf-query-summary {
margin: 0px;
tr:hover > td {
background-color: var(--table-header-border-highlight);
}
td {
padding: 4px 8px;
border: 1px solid var(--table-header-border-color);
width: 40%;
&:first-of-type {
width: 60%;
}
}
}

View file

@ -14,6 +14,7 @@
@import url("./elements/input.css") layer(elements);
@import url("./elements/p.css") layer(elements);
@import url("./elements/prose-mirror.css") layer(elements);
@import url("./elements/table.css") layer(elements);
/* Apps */
@import url("./Apps/common.css") layer(apps);

View file

@ -0,0 +1,16 @@
{{#if answers}}
<table class="taf-query-summary">
<tr>
<td>Key</td>
Oliver marked this conversation as resolved Outdated

Localize

Localize
<td>Value</td>
Oliver marked this conversation as resolved Outdated

Localize

Localize
</tr>
{{#each answers as | answer |}}
<tr>
<td>{{ @key }}</td>
<td>{{ answer }}</td>
</tr>
{{/each}}
</table>
{{else}}
No data submitted
{{/if}}