Skip to content

Addressing PR comments#110

Draft
Claude wants to merge 4 commits into
mainfrom
claude/update-type-attribute-explanation
Draft

Addressing PR comments#110
Claude wants to merge 4 commits into
mainfrom
claude/update-type-attribute-explanation

Conversation

@Claude

@Claude Claude AI commented Mar 6, 2026

Copy link
Copy Markdown
Contributor
Original prompt

This section details on the original issue you should resolve

<issue_title>Explanation of the "Type" attribute not clear enough</issue_title>
<issue_description>Version and Environment

  • GSmartControl version: 2.0.2
  • OS: Debian 13

Describe the Issue
Currently, the explanation for the Type attribute is:

Alarm condition is reached when normalized value becomes less than or equal to threshold. Type indicates whether it's a signal of drive's pre-failure time or just an old age.

I would suggest rephrasing it like this:

If an alarm condition happens, Type indicates whether this condition will signal drive's pre-failure time or just its old age. (Alarm condition is reached when normalized value becomes less than or equal to threshold.)

In past, I was misled by the bolded text saying "pre-failure", as well as by my hasty reading of this attribute's explanation, that my disks were in a bad condition. To avoid others' confusion over this, I would emphasize that Type doesn't indicate an alarm; I think making "if" the first word of the explanation would probably suffice for emphasis.

Also, I would suggest avoiding bolding the "pre-failure" text in the Type column. That creates an impression of something needing immediate attention. Considering that "old age" is already grayed-out, I think displaying "pre-failure" in normal font weight is sufficient.</issue_description>

<agent_instructions>Come up with a short, very easily understood phrase for a tooltip.
The idea is that "Type" indicates whether the particular attribute is pre-failure or old-age.
So, the if the "failure" condition of the attribute is triggered, is it because the drive is old, or is it because it's failing.</agent_instructions>

Comments on the Issue (you are @claude[agent] in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- Updated tooltip to clearly explain Type indicates alarm meaning
- Removed bold formatting for "pre-failure" to reduce visual alarm
- Changed text to emphasize Type is about alarm interpretation, not current status

Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
@Claude Claude AI changed the title [WIP] Rephrase explanation for the 'Type' attribute clarity Clarify Type attribute tooltip and remove bold formatting on pre-failure Mar 6, 2026
@ashaduri

ashaduri commented Mar 6, 2026

Copy link
Copy Markdown
Owner

@claude[agent] Still make it bold on attribute failure, but only when it's "pre-failure"

- Type column now shows bold text only when BOTH conditions are met:
  1. Attribute has actually failed (when_failed != None)
  2. Attribute type is pre-failure
- This provides visual emphasis for genuine pre-failure warnings
- Normal pre-failure attributes (not failed) remain normal weight

Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
@Claude

Claude AI commented Mar 6, 2026

Copy link
Copy Markdown
Contributor Author

@claude[agent] Still make it bold on attribute failure, but only when it's "pre-failure"

Done in 99d3583. The Type column now shows bold text only when the attribute has actually failed AND it's a pre-failure type. Normal pre-failure attributes (not yet failed) will display in regular weight.

@Claude Claude AI changed the title Clarify Type attribute tooltip and remove bold formatting on pre-failure Clarify Type attribute tooltip and apply conditional bold formatting Mar 6, 2026
@ashaduri ashaduri requested a review from Copilot March 6, 2026 19:04

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

Improves the ATA SMART Attributes “Type” column UX in GscInfoWindow to reduce user confusion by clarifying the tooltip and limiting bold emphasis to genuine pre-failure warnings.

Changes:

  • Rephrases the “Type” column tooltip to be more direct and user-oriented.
  • Updates “Type” column bold formatting to require both a pre-failure type and an actual attribute failure status.

Comment on lines +2101 to 2104
// Bold only when attribute has failed AND it's pre-failure type
if (attribute.when_failed != AtaStorageAttribute::FailTime::None
&& attribute.attr_type == AtaStorageAttribute::AttributeType::Prefail) {
crt->property_weight() = Pango::WEIGHT_BOLD;

Copilot AI Mar 6, 2026

Copy link

Choose a reason for hiding this comment

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

The new condition treats FailTime::Unknown as “failed” because it checks when_failed != None. That can incorrectly bold “pre-failure” when the failure status is simply unknown/unparsed (text parser initializes when_failed to Unknown). Consider explicitly checking for FailTime::Past or FailTime::Now (or excluding Unknown) so bolding matches the comment (“has failed”).

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

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.

Fixed in f2b95d3. Changed the condition from when_failed != None (which incorrectly includes Unknown) to explicitly check when_failed == Past || when_failed == Now, so bold is only applied when the attribute has actually failed.

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

Comment thread src/gui/gsc_info_window.cpp Outdated
model_columns.add(columns_->ata_attribute_table_columns.type);
num_tree_col = app_gtkmm_create_tree_view_column(columns_->ata_attribute_table_columns.type, *treeview,
_("Type"), _("Alarm condition is reached when normalized value becomes less than or equal to threshold. Type indicates whether it's a signal of drive's pre-failure time or just an old age."), false, true);
_("Type"), _("Indicates whether an alarm for this attribute signals imminent drive failure (pre-failure) or normal wear from drive age (old age)."), false, true);

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

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

The tooltip wording "signals imminent drive failure" is stronger than the wording used elsewhere in this table (e.g., the Flags tooltip says "if the attribute failed, the drive is failing"). Consider aligning terminology (avoid implying immediacy) so the Type tooltip doesn’t inadvertently alarm users or contradict the existing explanation text.

Suggested change
_("Type"), _("Indicates whether an alarm for this attribute signals imminent drive failure (pre-failure) or normal wear from drive age (old age)."), false, true);
_("Type"), _("Indicates whether this attribute is classified as pre-failure (related to potential drive failure) or old age (related to normal wear from drive age)."), false, true);

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@copilot Don't use imminent, but leave a strong statement

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.

Updated in 970836b. Changed to: "Indicates whether an alarm for this attribute signals drive failure (pre-failure) or normal wear from drive age (old age)." — removed "imminent" while keeping the direct statement about drive failure.

@ashaduri

ashaduri commented Mar 8, 2026

Copy link
Copy Markdown
Owner

@copilot Retry last push

Copilot AI commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

@copilot Retry last push

The push is still being blocked by the branch protection rule (Cannot update this protected ref). The change is committed locally at 932af13 but cannot reach the remote. Could you check the repository branch protection rules for claude/update-type-attribute-explanation and allow the Copilot bot (copilot-swe-agent[bot]) to bypass them?

@ashaduri

Copy link
Copy Markdown
Owner

@claude[agent] Make sure all PR comments are fixed.

@Claude

Claude AI commented Mar 22, 2026

Copy link
Copy Markdown
Contributor Author

@claude[agent] Make sure all PR comments are fixed.

Fixed in 37090a8. Both PR feedback items have been addressed:

  1. Removed "imminent" from Type tooltip (line 1142)
  2. Changed FailTime condition to explicitly check Past || Now instead of != None to exclude Unknown state (lines 2102-2104)

@Claude Claude AI changed the title Clarify Type attribute tooltip and apply conditional bold formatting Addressing PR comments Mar 22, 2026
@Claude Claude AI requested a review from ashaduri March 22, 2026 17:09
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.

Explanation of the "Type" attribute not clear enough

4 participants