Skip to content

225 image database modification for multiple image issues - #231

Open
LeahBragg wants to merge 14 commits into
mainfrom
225-consider-image-database-modification-for-multiple-image-issues
Open

225 image database modification for multiple image issues#231
LeahBragg wants to merge 14 commits into
mainfrom
225-consider-image-database-modification-for-multiple-image-issues

Conversation

@LeahBragg

Copy link
Copy Markdown
Collaborator

issue #225

Files Added:

  • added image routes
    • backend/src/controllers/image.controller.ts
    • backend/src/repositories/image.repository.ts
    • backend/src/routes/image.routes.ts
    • backend/src/schemas/issue.schema.ts
    • backend/src/services/image.service.ts
  • mobile/src/api/images.ts - added images api
  • shared/src/enums/image.ts - PhotoSource enum
  • shared/src/types/image.ts - image type

Filed Modified:

  • modified to support images
    • backend/src/controllers/auth.controller.ts
    • backend/src/controllers/issue.controller.ts
    • backend/src/controllers/login.controller.ts
    • backend/src/controllers/org.controller.ts
    • backend/src/controllers/timeline.controller.ts
    • backend/src/db/schema.ts
    • backend/src/repositories/auth.repository.ts
    • backend/src/repositories/issue.repository.ts
    • backend/src/repositories/login.repository.ts
    • backend/src/repositories/timeline.repository.ts
    • backend/src/server.ts
    • backend/src/services/auth.service.ts
    • backend/src/services/issue.service.ts
    • backend/src/services/login.service.ts
    • backend/src/services/org.service.ts
    • backend/src/services/timeline.service.ts
    • mobile/src/api/issues.ts
  • mobile/src/api/index.ts - added images api
  • Modified to use image links
    • mobile/src/components/IssueCard.tsx
    • mobile/src/components/TimelineEntry.tsx
    • mobile/src/screens/Misc/IssueDetailScreen.tsx
  • mobile/src/components/SelectedImage.tsx - uses image dimensions to better place the X button
  • mobile/src/components/SelectedImageGallery.tsx - sends some metadata to SelectedImage
  • mobile/src/components/Timeline.tsx - determines which timeline entries should be anonymous
  • mobile/src/screens/IssueCreation/CameraScreen.tsx - unmounts when not in use, sends height and width to metadata, image picker dimensions overwrite exif dimensions so that orientation is correct
  • mobile/src/screens/IssueCreation/IssueCreationScreen.tsx - adds images to db before submitting issue to db
  • mobile/src/utils/photoMetadata.ts- gets metadata for all photos added to an issue
  • modified types
    • shared/src/types/issue.ts
    • shared/src/types/org.ts
    • shared/src/types/user.ts
  • shared/src/types/api.ts - modified types, added CreateImageDTO

To Test:
Open app as usual, photos should still load as normal. in the issue create screen, X button will be in the top left corner of the photo not the container.

@LeahBragg LeahBragg linked an issue Aug 14, 2026 that may be closed by this pull request
5 tasks
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.

Consider Image database modification for multiple image issues

1 participant