Skip to content

Develop#673

Merged
ShaneIsrael merged 1 commit into
mainfrom
develop
Jun 25, 2026
Merged

Develop#673
ShaneIsrael merged 1 commit into
mainfrom
develop

Conversation

@ShaneIsrael

Copy link
Copy Markdown
Owner

This pull request introduces a user-editable "Created Date" field for images, allowing authenticated users to set or update the creation date and time of an image via the UI. It refactors date field logic into a reusable component, ensures the new date is persisted to the backend, and updates the display of created dates throughout the app. Additionally, it improves Docker/Nginx configuration flexibility and documentation.

User-facing features:

  • Adds a "Created Date" field to image edit modals, allowing authenticated users to set or modify the date and time an image was created. The date picker is implemented as a reusable DateField component. (app/client/src/components/modal/EditImageModal.js, app/client/src/components/modal/UpdateDetailsModal.js, app/client/src/components/modal/DateField.js) [1] [2] [3]
  • Displays the created date on image cards in the masonry view for improved context. (app/client/src/components/cards/MasonryImageCard.js)

Backend and data handling:

  • Updates the backend API to accept and persist the created_at field for images, storing it as a naive local datetime and handling invalid input gracefully. (app/server/fireshare/api/image.py)
  • Ensures the updated created_at value is propagated and reflected in the UI after edits. (app/client/src/views/FolderView.js, app/client/src/views/GameVideos.js, app/client/src/views/ImageFeed.js) [1] [2] [3] [4]

Refactoring and code reuse:

  • Refactors the date/time picker logic into a standalone DateField component, removing duplicate code and simplifying modal components. (app/client/src/components/modal/DateField.js, app/client/src/components/modal/UpdateDetailsModal.js) [1] [2]

Docker/Nginx configuration and documentation:

  • Changes Nginx configuration to use a template and introduces the FIRESHARE_PORT environment variable for more flexible port assignment. Updates documentation to reflect these changes. (Dockerfile, Dockerfile.lite, app/nginx/prod.conf, README.md) [1] [2] [3] [4]
  • Updates example domain and clarifies environment variable usage in documentation. (README.md)

Versioning:

  • Bumps the client package version to 1.7.2. (app/client/package.json, app/client/package-lock.json) [1] [2]

…eshare port, added ability to edit the images created date
@ShaneIsrael ShaneIsrael merged commit af1bf08 into main Jun 25, 2026
8 checks passed
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.

1 participant