rafael 638f5a8312
Fix avatar path resolution in dev-env (#3266)
* Fix avatar path resolution in dev-env

* changeset

* extract dev-env assets to dedicated folder

* add comment

* fix fmt
2024-12-19 11:25:41 -03:00

290 lines
7.9 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`mute views fetches mutes for the logged-in user. 1`] = `
Array [
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(0)",
"displayName": "Dr. Lowell DuBuque",
"handle": "elta48.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": true,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(2)",
"displayName": "Sally Funk",
"handle": "magnus53.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": true,
},
},
Object {
"did": "user(4)",
"handle": "nicolas-krajcik10.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": true,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(6)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(5)",
"displayName": "Patrick Sawayn",
"handle": "jeffrey-sawayn87.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": true,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(8)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(7)",
"displayName": "Kim Streich",
"handle": "adrienne49.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": true,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(10)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(9)",
"displayName": "Carlton Abernathy IV",
"handle": "aliya-hodkiewicz.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": true,
},
},
Object {
"did": "user(11)",
"handle": "carol.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(0)",
"muted": true,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(13)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "hi im bob label_me",
"did": "user(12)",
"displayName": "bobby",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(1)",
"muted": true,
},
},
]
`;
exports[`mute views flags mutes in threads 1`] = `
Object {
"$type": "app.bsky.feed.defs#threadViewPost",
"post": Object {
"author": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(0)",
"displayName": "ali",
"handle": "alice.test",
"labels": Array [
Object {
"cid": "cids(2)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(0)",
"uri": "record(1)",
"val": "self-label-a",
},
Object {
"cid": "cids(2)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(0)",
"uri": "record(1)",
"val": "self-label-b",
},
],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"cid": "cids(0)",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 3,
"quoteCount": 0,
"record": Object {
"$type": "app.bsky.feed.post",
"createdAt": "1970-01-01T00:00:00.000000Z",
"text": "again",
},
"replyCount": 2,
"repostCount": 1,
"uri": "record(0)",
"viewer": Object {
"embeddingDisabled": false,
"threadMuted": false,
},
},
"replies": Array [
Object {
"$type": "app.bsky.feed.defs#threadViewPost",
"post": Object {
"author": Object {
"did": "user(2)",
"handle": "carol.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(4)",
"following": "record(3)",
"muted": true,
},
},
"cid": "cids(3)",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 0,
"record": Object {
"$type": "app.bsky.feed.post",
"createdAt": "1970-01-01T00:00:00.000Z",
"reply": Object {
"parent": Object {
"cid": "cids(0)",
"uri": "record(0)",
},
"root": Object {
"cid": "cids(0)",
"uri": "record(0)",
},
},
"text": "of course",
},
"replyCount": 0,
"repostCount": 0,
"uri": "record(2)",
"viewer": Object {
"embeddingDisabled": false,
"threadMuted": false,
},
},
},
Object {
"$type": "app.bsky.feed.defs#threadViewPost",
"post": Object {
"author": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(3)",
"displayName": "bobby",
"handle": "bob.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(7)",
"following": "record(6)",
"muted": true,
},
},
"cid": "cids(4)",
"embed": Object {
"$type": "app.bsky.embed.images#view",
"images": Array [
Object {
"alt": "../dev-env/assets/key-landscape-small.jpg",
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(5)@jpeg",
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(5)@jpeg",
},
],
},
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [
Object {
"cid": "cids(4)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "did:example:labeler",
"uri": "record(5)",
"val": "test-label",
},
Object {
"cid": "cids(4)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "did:example:labeler",
"uri": "record(5)",
"val": "test-label-2",
},
],
"likeCount": 0,
"quoteCount": 0,
"record": Object {
"$type": "app.bsky.feed.post",
"createdAt": "1970-01-01T00:00:00.000Z",
"embed": Object {
"$type": "app.bsky.embed.images",
"images": Array [
Object {
"alt": "../dev-env/assets/key-landscape-small.jpg",
"image": Object {
"$type": "blob",
"mimeType": "image/jpeg",
"ref": Object {
"$link": "cids(5)",
},
"size": 4114,
},
},
],
},
"reply": Object {
"parent": Object {
"cid": "cids(0)",
"uri": "record(0)",
},
"root": Object {
"cid": "cids(0)",
"uri": "record(0)",
},
},
"text": "hear that label_me label_me_2",
},
"replyCount": 1,
"repostCount": 0,
"uri": "record(5)",
"viewer": Object {
"embeddingDisabled": false,
"threadMuted": false,
},
},
},
],
}
`;