[BUG]: SocialShareButton logs unconditional console.warn when script is not loaded
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 89/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, react
調査の方向性
まず、src/components/SocialShareButton.jsx の57~59行あたりにある useEffect から始め、既存の debug prop がどのように使われているか確認します。説明に従って警告を条件付きにするか削除し、debug が false のときに警告が抑制され、true のときに表示されることを確認します。通常のナビゲーションで警告がログに記録されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Bug Description
Bug Description
In src/components/SocialShareButton.jsx, an else branch in useEffect logs console.warn('SocialShareButton widget not loaded') on every render where window.SocialShareButton is undefined.
Since the component already accepts a debug prop (defaulting to false), this warning clutters developer and browser console logs during normal runtime and testing environments.
Steps to Reproduce
- Open OrgExplorer with browser DevTools / Console open.
- Navigate across pages (such as
/overview). - Notice
SocialShareButton widget not loadedwarning in the console.
Location
- File:
src/components/SocialShareButton.jsx - Line: 57–59
Proposed Solution
Gate the warning behind the existing debug prop, or remove it so it does not log in normal production/development runs:
} else if (debug) {
console.warn('SocialShareButton widget not loaded');
}
Impact
Low - Minor inconvenience / Dev ergonomics
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
Steps to Reproduce
No response
Logs and Screenshots
No response
Environment Details
No response
Impact
Critical - Application is unusable
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- 主要言語
- JavaScript
- スター
- 53
- フォーク
- 182
- 平均マージ
- 18分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/OrgExplorer のほかの issue
-
[BUG]: PAT popup input lacks label association and visibility button lacks an accessible name対応中かも @prasanm1423 が 3 日前に担当しました。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/OrgExplorer#466 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[FEATURE]: Set dynamic document.title based on active page route対応中かも @23241a6749 が 1 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/OrgExplorer#462 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: governance page shows "No dead issues" before the audit has run再び着手できるかも @SYED-IRTEZA-HUSSAIN-RIZVI が 8 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
AOSSIE-Org/OrgExplorer#453 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: User-controlled org/repo names are interpolated into API URLs unencoded対応中かも @AbhishekKumar-cse が 10 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
AOSSIE-Org/OrgExplorer#449 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: `fetchWithCache` crashes with `SyntaxError: Unexpected end of JSON input` when encountering empty repositories (HTTP 204 No Content)対応中かも @Devnil434 が 22 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
AOSSIE-Org/OrgExplorer#433 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
AOSSIE-Org/OrgExplorer の issue をすべて見る
似ている issue
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
[bug]: Maximizing the Windows dashboard covers the taskbar対応中かも @xiufengsun が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
xiufengsun/TokenTracker#1152 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug Tests
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JSPrismarine/JSPrismarine#3384 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
desec-io/desec-stack#1312 ·
メンテナーはふだん 14 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
w3c/csswg-drafts#14848 ·
メンテナーはふだん 1 日以内に返信