Skip to content

Visual tweaks#209

Merged
tomli380576 merged 7 commits into
mainfrom
file-selector-tweaks
Jun 4, 2026
Merged

Visual tweaks#209
tomli380576 merged 7 commits into
mainfrom
file-selector-tweaks

Conversation

@tomli380576

Copy link
Copy Markdown
Collaborator

No description provided.

@tomli380576 tomli380576 changed the title File selector tweaks Visual tweaks Jun 4, 2026
@tomli380576 tomli380576 requested a review from Copilot June 4, 2026 02:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR applies a set of UI/layout tweaks across the Textual screens and widgets, including showing the test plan during job selection and adjusting the file picker presentation.

Changes:

  • Add a “Test Plan” label to the job selection screen and thread the test plan value through AppState -> JobSelectionScreen.
  • Adjust bug report screen layout to place the additional-files picker at a different nesting level.
  • Update file picker modal/widget styling and layout (CSS, button variants, and dynamic spacing based on selection state).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/bugit_v2/screens/job_selection_screen.py Adds test_plan parameter/field and displays it in the header area.
src/bugit_v2/models/app_state.py Passes session/submission test plan into JobSelectionScreen.
src/bugit_v2/screens/bug_report_screen.py Adjusts the placement/indentation of the additional files picker in the compose tree.
src/bugit_v2/components/file_picker.py Adds modal CSS + messaging, tweaks buttons, adds a “pick files” row with dynamic spacing, and updates deselect button styling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/bugit_v2/models/app_state.py
Comment thread src/bugit_v2/components/file_picker.py Outdated
Comment thread src/bugit_v2/components/file_picker.py

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Comment on lines +71 to 80
app_blob = json.loads(
base64.b64decode(self.session_json["session"]["metadata"]["app_blob"])
)
try:
self.testplan_id = app_blob["testplan_id"]
except KeyError as e:
raise KeyError(
f"{self} is missing field(s): {', '.join(e.args)}.",
)
try:
self.testplan_id = app_blob["testplan_id"]
except KeyError as e:
raise KeyError(
f"{self} is missing field(s): {', '.join(e.args)}.",
)
else:
logger.error(f"{self} does not contain valid information.")
self.failed_jobs = self.get_run_jobs()

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do this in a different pr

Comment thread src/bugit_v2/components/file_picker.py Outdated
Comment on lines +9 to +12
@final
class CompactButton(Button):
DEFAULT_CSS = """
CompactButton {
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@tomli380576 tomli380576 merged commit 36956f8 into main Jun 4, 2026
1 check passed
@tomli380576 tomli380576 deleted the file-selector-tweaks branch June 4, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants