Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Long-press RIGHT opens the oldest recent object, not the most recent

オープン 初心者向け
#679 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
92/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, raspberry-pi
領域
frontend

調査の方向性

python/PiFinder/ui/menu_manager.py の MenuManager.key_long_right から始め、次に python/PiFinder/state.py の UIState.recent_list() を調べて、結果が新しいものから順に並ぶことを確認します。3つの閲覧済みオブジェクトで issue の再現手順に従います。RIGHT を長く押すと最新のオブジェクトが開き、詳細画面が新しいものから順に並ぶリストの先頭から表示になれば、変更は完了です。

索引モデルが issue の本文から書いたものです。

説明

A long press of RIGHT should open the object you viewed most recently, but it opens the oldest one in this session's recents.

Cause

MenuManager.key_long_right (python/PiFinder/ui/menu_manager.py, about line 400) opens recent_list()[-1]:

recent_list = self.ui_state.recent_list()
...
"object_list": recent_list,
"object": recent_list[-1],

UIState.recent_list() (python/PiFinder/state.py) returns list(reversed(self.__recent)), so it is newest-first, as the Recent screen shows it ("most recent first", docs/source/menu_map.rst). Its last element is therefore the oldest object viewed this session.

Steps to reproduce

  1. View M 31, then M 42, then M 57, opening each object's details.
  2. Go back to a menu, so the details screen isn't on top, and long-press RIGHT.
  3. M 31 opens. M 57 is expected.

Fix

Open recent_list()[0]. The details screen then starts at the top of the newest-first list, so DOWN steps back through older objects, matching the Recent screen.

Found while building #678, which changed how object details steps through its list. It's out of that PR's scope.

🤖 Generated with Claude Code

主要言語
Jupyter Notebook
スター
253
フォーク
63
平均マージ
11時間 55分
マージ済み PR(30日)
8

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

brickbots/PiFinder のほかの issue

brickbots/PiFinder の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。