Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 5, 2025

The tags column displays abbreviated indicators ("C" for Cheating, "S" for Sniping) that require users to remember their meanings. This adds hover tooltips that explain each tag and its severity level.

Changes

Data Model

  • Added optional hover: str | None = None field to CellValue dataclass
  • Updated CellValue.monochrome() to accept hover parameter

Tag Rendering

  • Modified render_tags() to generate descriptive hover text:
    # Single tag
    hover="C: Cheating (high)"
    
    # Multiple tags
    hover="C: Cheating (high)\nS: Sniping (medium)"

UI Implementation

  • Created Tooltip class for tkinter tooltip display (light yellow background, 20px cursor offset)
  • Added tooltip lifecycle management in MainContent:
    • Dictionary tracking active tooltips per widget
    • Automatic creation/destruction on cell updates
    • Cleanup on row removal

Example

When hovering over a cell showing "C S":

┌─────────────────┐
│ C: Cheating     │
│    (high)       │
│ S: Sniping      │
│    (medium)     │
└─────────────────┘

Cells with no tags or pending status show no tooltip.

Original prompt

Add a hover effect to the tags column that shows detailed information about the tags when you hover over a single cell in a row. Add it as an optional field on the cellvalue hover: str | None = None


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Amund211 and others added 5 commits October 30, 2025 21:21
This fixed an issue discovered while testing that would cause cache
misses if a name had mismatching capitalization from the state and from
the response from the player provider.

I have not seen this happen on Hypixel, but experienced it in testing
with player "Hypixel" in the lobby instead of "hypixel".

This could potentially help prevent issues in the future if Hypixel ever
messes up the capitalization of a name in the chat :^).
Call the flashlight API to check if the player has any tags.
These are currently sniping/cheating in 3 different severities.
New users should have this column added automatically
Copilot AI changed the title [WIP] Add hover effect to tags column for detailed info Add hover tooltips to tags column showing tag descriptions Nov 5, 2025
Copilot AI requested a review from Amund211 November 5, 2025 18:51
Copilot finished work on behalf of Amund211 November 5, 2025 18:51
@Amund211 Amund211 force-pushed the tags-provider branch 4 times, most recently from 74ccbcc to 7b2262f Compare November 15, 2025 16:38
Base automatically changed from tags-provider to main November 15, 2025 16:48
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