Skip to content

Fix link to like-via-repost #8428

Merged
mozzius merged 2 commits into
mainfrom
samuel/like-via-href
May 30, 2025
Merged

Fix link to like-via-repost #8428
mozzius merged 2 commits into
mainfrom
samuel/like-via-href

Conversation

@mozzius
Copy link
Copy Markdown
Member

@mozzius mozzius commented May 29, 2025

The href on the link was missing, whoops

Converted to switch statement to be clearer

@arcalinea arcalinea temporarily deployed to samuel/like-via-href - social-app PR #8428 May 29, 2025 21:33 — with Render Destroyed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the itemHref logic from an if–else chain into a switch statement and adds missing link handling for two new notification types.

  • Replaced nested if/else with a clearer switch on item.type
  • Added handling for like-via-repost and repost-via-repost
  • Ensured cases without a subjectUri now fall through to return an empty string
Comments suppressed due to low confidence (2)

src/view/com/notifications/NotificationFeedItem.tsx:103

  • Add unit tests to cover the new 'like-via-repost' and 'repost-via-repost' cases so link generation logic is verified.
case 'like-via-repost':

src/view/com/notifications/NotificationFeedItem.tsx:117

  • [nitpick] The variable name uripReply is inconsistent with urip used elsewhere; consider renaming both to a more descriptive name like parsedUri for consistency.
const uripReply = new AtUri(item.notification.uri)

Comment thread src/view/com/notifications/NotificationFeedItem.tsx
@github-actions
Copy link
Copy Markdown
Contributor

Old size New size Diff
7.24 MB 7.24 MB -54 B (-0.00%)

@mozzius mozzius merged commit 4890648 into main May 30, 2025
7 checks passed
@mozzius mozzius deleted the samuel/like-via-href branch May 30, 2025 09:27
estrattonbailey added a commit that referenced this pull request Jun 10, 2025
* origin/main: (241 commits)
  Nightly source-language update
  Update react-navigation (#5967)
  Update SetNewPasswordForm.tsx (#8349)
  Nightly source-language update
  bskyweb: bump indigo (several codegen updates) (#8442)
  Replace "Note about sharing" prompt with an inline hint (#8452)
  Bump version to v1.104 (#8447)
  show misclass button by the same logic as feedContext (#8445)
  change fontSize: 15 to a.text_sm (#7896)
  Nightly source-language update
  use method that's actually available on android (#8448)
  Release 1.103.0 prep (#8434)
  Add language: European Portuguese (`pt-PT`) (#8375)
  Small test fix
  tweak ordering of explore components (#8432)
  add metrics (#8426)
  invert flag for sending to statsig (#8431)
  Fix link to like-via-repost  (#8428)
  Nightly source-language update
  Make via-repost notifs groupable (#8429)
  ...
uwx pushed a commit to chaos-social/chaos-social.github.io that referenced this pull request Jul 11, 2025
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