mirror of
https://github.com/immich-app/immich.git
synced 2024-12-04 10:34:56 +02:00
ce5966c23d
* 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>
35 lines
955 B
TypeScript
35 lines
955 B
TypeScript
import { ActivityEntity } from '@app/infra/entities';
|
|
import { albumStub } from './album.stub';
|
|
import { assetStub } from './asset.stub';
|
|
import { authStub } from './auth.stub';
|
|
import { userStub } from './user.stub';
|
|
|
|
export const activityStub = {
|
|
oneComment: Object.freeze<ActivityEntity>({
|
|
id: 'activity-1',
|
|
comment: 'comment',
|
|
isLiked: false,
|
|
userId: authStub.admin.id,
|
|
user: userStub.admin,
|
|
assetId: assetStub.image.id,
|
|
asset: assetStub.image,
|
|
albumId: albumStub.oneAsset.id,
|
|
album: albumStub.oneAsset,
|
|
createdAt: new Date(),
|
|
updatedAt: new Date(),
|
|
}),
|
|
liked: Object.freeze<ActivityEntity>({
|
|
id: 'activity-2',
|
|
comment: null,
|
|
isLiked: true,
|
|
userId: authStub.admin.id,
|
|
user: userStub.admin,
|
|
assetId: assetStub.image.id,
|
|
asset: assetStub.image,
|
|
albumId: albumStub.oneAsset.id,
|
|
album: albumStub.oneAsset,
|
|
createdAt: new Date(),
|
|
updatedAt: new Date(),
|
|
}),
|
|
};
|