activitypods / activitypods/mastopod
Find a non hacky way to determine if an as:object has already been boosted by a pod's user
- 主要語言
- JavaScript
- 星號
- 25
- 分支
- 2
- PR 合併指標
- 30 天內沒有已合併 PR
描述
# Context
This is a followup task to keep track of the workaround that was implemented to determine if a given pod user as already boosted a given activity.
see #50 and particularly [this comment](https://github.com/activitypods/mastopod/issues/50#issuecomment-2717666433) that highlights the hacky workaround that has been implemented.
https://github.com/activitypods/mastopod/blob/f04ecb570557614c6010c920a7cbfc606c7f7f21/frontend/src/common/buttons/BoostButton.jsx#L14-L15
# TODO
Find a non hacky yet performant way to handle this situation.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Start in frontend/src/common/buttons/BoostButton.jsx at the referenced lines, since that is where the workaround is currently implemented. Then inspect the components/hooks that pass data into BoostButton to find an existing authoritative way the boosted state is represented for the current pod user. Run the relevant frontend button/component tests (or add one if one exists for this area) and confirm the button correctly indicates and behaves for already-boosted activities without the hacky path.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react
- 領域
- frontend
- Issue 類型
- 重構
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100