Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bsky link card service #4547

Merged
merged 25 commits into from
Jun 20, 2024
Merged

Bsky link card service #4547

merged 25 commits into from
Jun 20, 2024

Conversation

devinivy
Copy link
Contributor

This work implements a stateless node service for generating png link card images. It currently supports generating link cards for starter packs at GET /start/{actor}/{rkey}. Since it's compute-intensive to generate pngs, the service can be run in cluster mode by setting CARD_CLUSTER_WORKER_COUNT.

Copy link

render bot commented Jun 18, 2024

Copy link

github-actions bot commented Jun 18, 2024

Old size New size Diff
6.3 MB 6.3 MB 0 B (0.00%)

Comment on lines 43 to 45
.filter(p => p.avatar)
// no bad labels
.filter(p => !p.labels.some(l => hideAvatarLabels.has(l.val)))
Copy link
Member

Choose a reason for hiding this comment

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

What does this look like if we don't have a full set of images 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

We had some mockups of this are varying stages, it looked pretty good regardless of the count. Ideally we won't ever have less than 8 but...just in case it doesn't look horrible at all.

Copy link
Contributor

Choose a reason for hiding this comment

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

(Assuming we have the same implementation here)

Copy link
Contributor Author

@devinivy devinivy Jun 18, 2024

Choose a reason for hiding this comment

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

Yeah, I tested it with all counts down to 1. I think it might be nice to eventually have a fallback design for 1-4, where the background tiling also looks a bit repetitive.

@pfrazee pfrazee assigned pfrazee and unassigned pfrazee Jun 20, 2024
@pfrazee pfrazee self-assigned this Jun 20, 2024
Copy link
Contributor

@haileyok haileyok left a comment

Choose a reason for hiding this comment

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

express and react parts look good, assume docker file and workflow are also good

@devinivy devinivy merged commit 51f5e6b into main Jun 20, 2024
7 checks passed
@devinivy devinivy deleted the divy/bskycard branch June 20, 2024 21:45
estrattonbailey added a commit that referenced this pull request Jun 20, 2024
* origin/main:
  Add a11y context (#4586)
  center pill text in label pill (#4579)
  Wait for AppView when posting (#4584)
  Bsky link card service (#4547)
estrattonbailey added a commit that referenced this pull request Jun 20, 2024
* origin/main: (25 commits)
  Add a11y context (#4586)
  center pill text in label pill (#4579)
  Wait for AppView when posting (#4584)
  Bsky link card service (#4547)
  Merge #4492, fixes profile menu hover (#4580)
  Rework "Who can reply" to blend more nicely into the UI (#4578)
  Fix threadgate read after write (#4577)
  Convert button to use forwardRef (#4576)
  use 1000x1000 for image height in avatar cropper (#4453)
  fix for autofill covering border (#4573)
  Update HomeHeaderLayoutMobile.tsx (#4572)
  Option for large alt badges (#4571)
  Truncate post metrics and fix truncation on native (#4575)
  Fix avi placeholder layout (#4570)
  add support for `ListEmptyComponent`, allow `undefined` data (#4403)
  GIF previews in notifications (#4447)
  [Session] Convert account to session data explicitly (#4446)
  Move onboarding start to after successfull account creation (#4381)
  Collection of moderation fixes (#4566)
  Fix undefined block (#4479)
  ...
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