Skip to content

feat(web,server): activity - #4682

Merged
alextran1502 merged 48 commits into
mainfrom
feat/activity
Nov 1, 2023
Merged

alextran1502 merged 48 commits into
mainfrom
feat/activity

Conversation

@martabal

@martabal martabal commented Oct 28, 2023 •

Copy link
Copy Markdown
Contributor

Changes made in this PR

This PR introduces Activity.

On shared albums, you can add comments and likes to assets. They can be found in the Activity tab, by clicking on the comment icon on the bottom right.

Comments can be deleted by the authors, the owner of the album.

There's a lot related to this new feature which will come in future PRs such as notifications to be alerted on new reactions (likes & comments), a global activity tab for each shared album, nested comments...

Related FR: #1660

Screenshots

2023-10-29.00-31-59.mp4

@vercel

vercel Bot commented Oct 28, 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) Visit Preview Nov 1, 2023 3:07am

@martabal
martabal marked this pull request as ready for review October 29, 2023 22:18

@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 make the activity controller more restful please? You should never have two named parameters immediately adjacent to each other. Ideally just resource/:id

@martabal

Copy link
Copy Markdown
Contributor Author

Can you make the activity controller more restful please? You should never have two named parameters immediately adjacent to each other. Ideally just resource/:id

Should I set the assetId or the albumId in the Body ?

@jrasm91

jrasm91 commented Oct 30, 2023

Copy link
Copy Markdown
Member

When you create a new item via post, yes those should be in the body.

When you query for them they should be query params.

If album id is required on every single route, you should consider changing the endpoints to be something like

/album/:id/activity/:activityId and call it AlbumActivity instead.

@martabal

Copy link
Copy Markdown
Contributor Author

When you create a new item via post, yes those should be in the body.

When you query for them they should be query params.

If album id is required on every single route, you should consider changing the endpoints to be something like

/album/:id/activity/:activityId and call it AlbumActivity instead.

Thanks for the clarification, I appreciate it

@alextran1502 alextran1502 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.

Amazing work! Thank you all!

@alextran1502
alextran1502 merged commit ce5966c into main Nov 1, 2023
@alextran1502
alextran1502 deleted the feat/activity branch November 1, 2023 03:13
waclaw66 pushed a commit to waclaw66/immich that referenced this pull request Nov 1, 2023
* feat: activity

* regenerate api

* fix: make asset owner unable to delete comment

* fix: merge

* fix: tests

* feat: use textarea instead of input

* fix: do actions only if the album is shared

* fix: placeholder opacity

* fix(web): improve messages UI

* fix(web): improve input message UI

* pr feedback

* fix: tests

* pr feedback

* pr feedback

* pr feedback

* fix permissions

* regenerate api

* pr feedback

* pr feedback

* multiple improvements on web

* fix: ui colors

* WIP

* chore: open api

* pr feedback

* fix: add comment

* chore: clean up

* pr feedback

* refactor: endpoints

* chore: open api

* fix: filter by type

* fix: e2e

* feat: e2e remove own comment

* fix: web tests

* remove console.log

* chore: cleanup

* fix: ui tweaks

* pr feedback

* fix web test

* fix: unit tests

* chore: remove unused code

* revert useless changes

* fix: grouping messages

* fix: remove nullable on updatedAt

* fix: text overflow

* styling

---------

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
@waclaw66

waclaw66 commented Nov 2, 2023 •

Copy link
Copy Markdown
Contributor

I think activity icons shouldn't be visible while slideshow. Can you please hide them?

rikifrank pushed a commit to shefing/immich that referenced this pull request Nov 6, 2023
* feat: activity

* regenerate api

* fix: make asset owner unable to delete comment

* fix: merge

* fix: tests

* feat: use textarea instead of input

* fix: do actions only if the album is shared

* fix: placeholder opacity

* fix(web): improve messages UI

* fix(web): improve input message UI

* pr feedback

* fix: tests

* pr feedback

* pr feedback

* pr feedback

* fix permissions

* regenerate api

* pr feedback

* pr feedback

* multiple improvements on web

* fix: ui colors

* WIP

* chore: open api

* pr feedback

* fix: add comment

* chore: clean up

* pr feedback

* refactor: endpoints

* chore: open api

* fix: filter by type

* fix: e2e

* feat: e2e remove own comment

* fix: web tests

* remove console.log

* chore: cleanup

* fix: ui tweaks

* pr feedback

* fix web test

* fix: unit tests

* chore: remove unused code

* revert useless changes

* fix: grouping messages

* fix: remove nullable on updatedAt

* fix: text overflow

* styling

---------

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
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