Skip to content

feat: gate document upload until documentation API is available - #582

Merged
Krisha190235 merged 1 commit into
mainfrom
abrar/ga-040-documentation-api
Sep 14, 2026
Merged

Krisha190235 merged 1 commit into
mainfrom
abrar/ga-040-documentation-api

Conversation

@abrar-deakin

Copy link
Copy Markdown
Collaborator

Summary

  • Added file type validation for PDF, JPG, and PNG documents.
  • Added a 10MB file size limit.
  • Guard document uploads continue to use local storage while the Documentation API upload endpoint is unavailable.
  • Added clear feedback to inform the guard that the document was saved locally and the API upload is not available yet.
  • Keeps the feature safely gated until the backend Documentation API endpoint is confirmed.

Testing

  • Tested document selection and upload in the Guard App.
  • Confirmed valid PDF upload is saved and displayed in Uploaded Documents.
  • Confirmed the local storage/API unavailable feedback message.
  • Confirmed document deletion still works.
image image image image image

@Krisha190235
Krisha190235 merged commit 5076950 into main Sep 14, 2026
2 of 3 checks passed
@Krisha190235
Krisha190235 deleted the abrar/ga-040-documentation-api branch September 14, 2026 11:41
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.

2 participants