No login hint when Spotify has no cached login
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 62/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- authentication, cli
調査の方向性
Start with spotify_auth_mode in src/runtime/bootstrap.rs and trace what the CachedOrNone branch returns when no cached login exists. For the sidebar, compare the Spotify rows in the Playlists panel with the Qobuz not-logged-in line in src/tui/ui/library.rs. Done when a non-first-run launch with no cached Spotify login shows the login hint, using app.user_config.keys.manage_devices for the key, and a test covers the no-session case.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When spotatui starts with no cached Spotify login and it is not the first run, it starts without Spotify and says nothing. The Spotify rows (Liked Songs, Albums, Artists, Discover) are hidden, the playlist panel only shows the pinned spotatui community playlist, and the welcome screen has no hint. The user only sees "Spotify not connected. Press d and pick Spotify to log in." after they try to play something.
This hits users who upgrade from a release before 0.45.0 and never had a librespot login cached (for example because native streaming never worked for them). Their old Web API login does not carry over, the first-run picker does not show again, and boot takes the CachedOrNone path in spotify_auth_mode (src/runtime/bootstrap.rs), which returns no session and no notice.
A user on Discord ran into this today on 0.45.0 (EndeavourOS, AUR). Their log has no session lines at all: no new Session, no Connecting to AP.
To Reproduce
- Have a
config.ymlfrom an earlier run, so this is not a first run. - Remove the cached Spotify login from the streaming cache.
- Start
spotatui. - See a sidebar with no Spotify rows and no message that says how to log in.
Expected behavior
The app tells the user that Spotify is not connected and how to log in, the same way Qobuz does in the Playlists panel: (not logged in, press d, pick Qobuz) in src/tui/ui/library.rs.
Possible solution:
- When
Apphas no Spotify session and the active source is Spotify, show one line in the Playlists panel (and a line on the welcome screen) built fromapp.user_config.keys.manage_devices, like the Qobuz row. - Or have
spotify_loginreturn a startup notice in theCachedOrNonecase when there is no cached login, so boot sets a status message.
Done when: a non-first-run launch with no cached Spotify login shows how to log in before the user tries to play anything, and a test covers the no-session sidebar or notice.
Screenshots
The user's sidebar on 0.45.0: Friends, Stats, Playlist sync, Local Files, AI DJ, and only the spotatui community playlist.
Desktop (please complete the following information):
- OS: Linux (EndeavourOS)
- Terminal: xterm-256color
- Version: 0.45.0
Additional context
The workaround is to press d and pick Spotify, or run spotatui --reconfigure-auth.
- 主要言語
- Rust
- スター
- 1.4k
- フォーク
- 238
- 平均マージ
- 8時間 56分
- マージ済み PR(30日)
- 208
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LargeModGames/spotatui のほかの issue
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
LargeModGames/spotatui#878 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
LargeModGames/spotatui#872 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
LargeModGames/spotatui#871 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
LargeModGames/spotatui#832 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
LargeModGames/spotatui#829 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
LargeModGames/spotatui の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
pop-os/cosmic-comp#2956 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:release criticality:p3 documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
registrystack/registry-stack#2085 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
libp2p/rust-libp2p#6694 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
EmbarkStudios/cargo-deny#910 ·