Skip to content

feat: Add description - #2237

Merged
alextran1502 merged 23 commits into
mainfrom
feat/add-description
Apr 13, 2023
Merged

alextran1502 merged 23 commits into
mainfrom
feat/add-description

Conversation

@alextran1502

@alextran1502 alextran1502 commented Apr 12, 2023 •

Copy link
Copy Markdown
Member

Description

This PR adds the "description" mechanism to the asset. It is functional on both the web and the mobile app.

  • Edit some styling for the exif bottom app bar on the mobile app.
  • Using the same style input as GPhotos, no submit button needed, unfocus will save the description
  • User can search for asset with description using the metadata search syntax m:description

qemu-system-x86_64_lgg9uS1PpL

Fixes # (issue)

How Has This Been Tested?

  • From the blank description on both the mobile app and the web, edit the description field and check the value after navigating back and forth between the web and the mobile app to ensure the value is persistent.
  • View and edit description from owned and shared albums with mixed of assets from the owner and the shared user
  • View and edit description from a shared link with mixed of assets from the owner and the shared user

Screenshots (if appropriate):

qemu-system-x86_64_lgg9uS1PpL

qemu-system-x86_64_lgg9uS1PpL

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable

@vercel

vercel Bot commented Apr 12, 2023 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
immich ⬜️ Ignored (Inspect) Apr 13, 2023 2:39pm

@jrasm91 jrasm91 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add description to the typesense schema so it is searchable with m:?

Comment thread server/apps/immich/src/api-v1/asset/asset-repository.ts
}

if (asset.exifInfo != null) {
asset.exifInfo.description = dto.description || '';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should try avoid using an empty string, and just use null instead.

Comment thread server/apps/immich/src/api-v1/asset/asset-repository.ts
Comment thread server/apps/immich/src/api-v1/asset/dto/update-asset.dto.ts
Comment thread web/src/lib/components/asset-viewer/detail-panel.svelte Outdated

@martyfuhry martyfuhry left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I haven't tested this out yet but my wife's been bugging me for this feature. Looks awesome!

Comment thread mobile/lib/modules/asset_viewer/ui/description_input.dart Outdated
Comment thread mobile/lib/modules/asset_viewer/ui/description_input.dart Outdated
Comment thread mobile/lib/modules/asset_viewer/ui/description_input.dart Outdated
Comment thread mobile/lib/modules/asset_viewer/ui/description_input.dart Outdated
Comment thread mobile/lib/modules/asset_viewer/ui/description_input.dart Outdated
Comment thread mobile/lib/modules/asset_viewer/ui/description_input.dart Outdated
Comment thread mobile/lib/modules/asset_viewer/ui/description_input.dart
Comment thread mobile/lib/modules/asset_viewer/ui/description_input.dart Outdated
Comment thread mobile/lib/modules/asset_viewer/ui/exif_bottom_sheet.dart Outdated
Comment thread mobile/lib/modules/asset_viewer/ui/exif_bottom_sheet.dart
Comment thread mobile/lib/modules/asset_viewer/ui/description_input.dart Outdated
@alextran1502
alextran1502 requested a review from martyfuhry April 13, 2023 12:32
@alextran1502
alextran1502 requested a review from jrasm91 April 13, 2023 12:33
* uses providers for description text

* comments

* fixes initial data setting

* fixes notifier
@alextran1502
alextran1502 merged commit a9859bc into main Apr 13, 2023
@alextran1502
alextran1502 deleted the feat/add-description branch April 13, 2023 15:22
@kingp0dd

Copy link
Copy Markdown

I can't seem to find this on Android mobile app. Has it been removed?

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.

4 participants