Data Request API helper #10

Merged
Oliver merged 94 commits from feat/data-requests into main 2025-11-22 02:51:15 +00:00
Owner
- Closes Foundry/taf#9 - Closes Foundry/taf#6
Oliver added 73 commits 2025-11-19 06:50:24 +00:00
Oliver added 1 commit 2025-11-19 06:54:31 +00:00
Oliver added 1 commit 2025-11-20 02:32:55 +00:00
Oliver added 2 commits 2025-11-20 04:02:56 +00:00
Oliver added 1 commit 2025-11-20 04:18:52 +00:00
Oliver added 8 commits 2025-11-21 06:37:54 +00:00
Oliver changed title from WIP: Data Request API helper to Data Request API helper 2025-11-21 06:38:05 +00:00
Oliver reviewed 2025-11-22 02:08:47 +00:00
@ -0,0 +8,4 @@
`taf.notifs.error.malformed-socket-payload`,
{
event: `query.cancel`,
details: `A request ID must be provided`,
Author
Owner

Localizing this would be nice

Localizing this would be nice
Oliver marked this conversation as resolved
@ -0,0 +14,4 @@
};
ChatMessage.implementation.create({
flavor: `Data Query Notification`,
Author
Owner

Localizing this would be nice

Localizing this would be nice
Oliver marked this conversation as resolved
@ -0,0 +14,4 @@
`taf.notifs.error.malformed-socket-payload`,
{
event: `query.prompt`,
details: `A request ID must be provided`,
Author
Owner

Localizing this would be nice

Localizing this would be nice
Oliver marked this conversation as resolved
@ -0,0 +26,4 @@
`taf.notifs.error.malformed-socket-payload`,
{
event: `query.prompt`,
details: `A list of users must be provided`,
Author
Owner

Localizing this would be nice

Localizing this would be nice
Oliver marked this conversation as resolved
@ -0,0 +11,4 @@
`taf.notifs.error.malformed-socket-payload`,
{
event: `query.submit`,
details: `A request ID must be provided`,
Author
Owner

Localizing this would be nice

Localizing this would be nice
Oliver marked this conversation as resolved
@ -0,0 +148,4 @@
};
export async function addResponse(requestID, userID, answers) {
const data = queries.get(requestID);
Author
Owner

Add check to ensure that the query isn't undefined

Add check to ensure that the query isn't undefined
Oliver marked this conversation as resolved
@ -0,0 +43,4 @@
await addReleaseAsset(release.data.id, `system.json`);
} catch (e) {
console.error(`Failed to add assets to the release`);
console.error(e)
Author
Owner

Remove console error now

Remove console error now
Oliver marked this conversation as resolved
@ -0,0 +47,4 @@
process.exit(1);
};
console.log(`Release created, and files uploaded successfully!`);
Author
Owner

Remove bit about file uploads

Remove bit about file uploads
Oliver marked this conversation as resolved
@ -0,0 +57,4 @@
try {
const response = await s3Client.send(new PutObjectCommand(params));
console.log("Upload successful");
console.log(response);
Author
Owner

Remove log

Remove log
Oliver marked this conversation as resolved
@ -0,0 +59,4 @@
console.log("Upload successful");
console.log(response);
} catch (err) {
console.error("Error", err);
Author
Owner

Remove inclusion of err

Remove inclusion of `err`
Oliver marked this conversation as resolved
@ -2,1 +2,4 @@
--prosemirror-background: var(--color-cool-5);
/* Chip Variables */
--chip-color: #fff7ed;
Author
Owner

Need to add light theme of these variables

Need to add light theme of these variables
Oliver marked this conversation as resolved
@ -0,0 +1,8 @@
<div class="control-row">
<button data-action="cancelRequest">
Cancel Request
Author
Owner

Localizing this would be nice

Localizing this would be nice
Oliver marked this conversation as resolved
@ -0,0 +3,4 @@
Cancel Request
</button>
<button data-action="finishEarly">
Finish Request Early
Author
Owner

Localizing this would be nice

Localizing this would be nice
Oliver marked this conversation as resolved
@ -0,0 +8,4 @@
<div class="grow">
{{ user.name }}
</div>
{{#if (eq user.status "cancelled")}}
Author
Owner

Cancelled is no longer a user status supported

Cancelled is no longer a user status supported
Oliver marked this conversation as resolved
@ -0,0 +25,4 @@
type="button"
data-action="promptUser"
>
Send Request
Author
Owner

Localize

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

Localize

Localize
Oliver marked this conversation as resolved
@ -0,0 +2,4 @@
<table class="taf-query-summary">
<tr>
<td>Key</td>
<td>Value</td>
Author
Owner

Localize

Localize
Oliver marked this conversation as resolved
Oliver added 8 commits 2025-11-22 02:50:43 +00:00
Oliver merged commit 382ca50bb5 into main 2025-11-22 02:51:15 +00:00
Oliver deleted branch feat/data-requests 2025-11-22 02:51:16 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Foundry/taf#10
No description provided.