Skip to content

json-upload#113

Merged
invaliduser merged 12 commits intomainfrom
json-upload
Feb 2, 2026
Merged

json-upload#113
invaliduser merged 12 commits intomainfrom
json-upload

Conversation

@invaliduser
Copy link
Contributor

@invaliduser invaliduser commented Nov 21, 2025

Adds a widget that allows statement files to be uploaded

@invaliduser invaliduser marked this pull request as ready for review November 24, 2025 16:50
Copy link
Member

@cliffcaseyyet cliffcaseyyet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good.

::editing-reaction-template-errors
::editing-reaction-template-json
::csv-download-properties
::statements-file-upload-xapi-version
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no db entry for event log?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

:statements.file-upload.title {:en-US "Upload Statements"}
:statements.file-upload.button {:en-US "Upload"}
:statements.file-upload.choose-file-button {:en-US "Choose file"}
:statements.file-upload.XAPI-version {:en-US "XAPI Version"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets stick with the no-caps key precedent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

(when (seq events)
(let [cols [{:name "Event"
:selector #(str
({"good" "✅" "bad" "❌"} (get % "code"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

word i never thought to do that, i always just use images. As long as it has broad browser support im fine with it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that's pretty cool

"1.0.3")))

(reg-sub
:statements-file-upload/file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im not seeing all of these specced out in db

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

{:fx [[:dispatch [:notification/notify true "File not valid JSON"]]]
:db (-> db
(update
::db/statements-file-upload-event-log conj
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it kinda seems like you have an object format for the logs. I would recommend speccing that out as well in db.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specced

Copy link
Member

@milt milt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, idomatic re-frame

@invaliduser invaliduser merged commit bf49fad into main Feb 2, 2026
4 checks passed
@milt milt deleted the json-upload branch February 9, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants