Skip to content

refactor(tui): move DebugAsType into its own module - #13062

Merged
davidpdrsn merged 3 commits into
masterfrom
dp-move-debug-as-type
Mar 27, 2026
Merged

refactor(tui): move DebugAsType into its own module#13062
davidpdrsn merged 3 commits into
masterfrom
dp-move-debug-as-type

Conversation

@davidpdrsn

@davidpdrsn davidpdrsn commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings March 27, 2026 14:03
@github-actions github-actions Bot added rust Pull requests that update Rust code CLI The command-line program `but` labels Mar 27, 2026
@vercel

vercel Bot commented Mar 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
gitbutler-web Ignored Ignored Preview Mar 27, 2026 5:03pm

Request Review

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

Refactors the legacy status TUI code by extracting the DebugAsType wrapper into a shared utils module, removing the previous local DebugType helper and updating call sites accordingly.

Changes:

  • Added utils::DebugAsType as a reusable wrapper with a type-name-based Debug implementation.
  • Replaced DebugType usages in the legacy status TUI with DebugAsType.
  • Removed the inline DebugType definition from the TUI module.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
crates/but/src/utils/mod.rs Registers and re-exports the new debug_as_type utility module.
crates/but/src/utils/debug_as_type.rs Introduces the extracted DebugAsType wrapper type and trait impls.
crates/but/src/command/legacy/status/tui/mod.rs Switches TUI message wrapper from DebugType to DebugAsType and removes the old local helper.
crates/but/src/command/legacy/status/tui/details.rs Updates imports and struct fields to use DebugAsType instead of DebugType.

Comment thread crates/but/src/utils/debug_as_type.rs
@davidpdrsn
davidpdrsn force-pushed the dp-move-debug-as-type branch from b47fa3a to cae5bbd Compare March 27, 2026 14:12
Copilot AI review requested due to automatic review settings March 27, 2026 15:48
@davidpdrsn
davidpdrsn force-pushed the dp-move-debug-as-type branch from cae5bbd to d6cea77 Compare March 27, 2026 15:48

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 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread crates/but/src/utils/debug_as_type.rs
@davidpdrsn
davidpdrsn force-pushed the dp-move-debug-as-type branch from d6cea77 to d5e456b Compare March 27, 2026 16:25
Base automatically changed from dp-tui-view-diff to master March 27, 2026 17:02
@davidpdrsn
davidpdrsn enabled auto-merge March 27, 2026 17:04
@davidpdrsn
davidpdrsn merged commit 0cdc87b into master Mar 27, 2026
36 checks passed
@davidpdrsn
davidpdrsn deleted the dp-move-debug-as-type branch March 27, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLI The command-line program `but` rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants