codeforboston/maple

Better Error Message for "Follow" Button on Testimony Detail Page

Open

#2,059 建立於 2026年3月11日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (168 fork)auto 404
Ready for Developmentbuggood first issue

倉庫指標

Star
 (56 star)
PR 合併指標
 (PR 指標待抓取)

描述

Describe the bug On the Testimony Detail page, a logged out visitor can click the follow bill button (e.g. "Follow H.54"). Following only makes sense for a logged-in user (from both a product and code standpoint), so this button will quietly do nothing when clicked.

To Reproduce Steps to reproduce the behavior:

  1. Go to a Testimony Detail page (e.g. https://maple-dev.vercel.app/testimony/5PO5TI8lWo-dB8_rmKyWT/1 ) when logged out
  2. Click on 'Follow H.54'
  3. See that nothing happens

Expected behavior

A logged-out visitor should be directed to the login flow when they click the Follow button (and redirected back to the Testimony Detail page after signing in - similar to when a logged-out visitor visits another auth-protected page like the Newsfeed)

貢獻者指南