arrow_backRetour aux issues
HafidIdrissi/Time-Tracker
#18
Débutant
Ouvrirarrow_forward
Débutant
Ouvrirarrow_forward
Débutant
Ouvrirarrow_forward
browser_tab_title: suffix-only window title is not normalized to "(Untitled tab)"
ecoDébutant
bug
help wanted
good first issue
descriptionDescription
In `timetracker/analytics.py`, `browser_tab_title()` calls `strip()` on the window title **before** comparing it against the known suffixes. Every entry in `BROWSER_SUFFIXES` starts with a space (for example `" - Google Chrome"`).
As a result, a window title that consists of nothing but a suffix becomes `"- Google Chrome"` after `strip()`, no longer matches any entry, and is returned as-is instead of being normalized to `"(Untitled tab)"`.
**Reproduction**
```
>>> browser_tab_title("chrome.exe", " - Google Chrome")
'- Google Chrome' # expected: '(Untitled tab)'
```
**Background**
Spotted while reviewing #10. A test case covering this situation was written, then removed in commit 3ca0980 to match the current behaviour rather than flagging it. The squash message for #10 still mentions "empty/suffix-only titles" even though the suffix-only case is not actually covered.
**Decision needed**
Either fix the normalization, or document this as acceptable behaviour. If we fix it, the test case should be restored.
Issues similaires
calkit/calkit
star53
Poids du dépôt moyen
VS Code extension should be robust to YAML parser errors
Seeing this error: ``` Failed to read calkit.yaml: YAMLParseError: A block sequence may not be used as an implicit map…
Python
bug
good first issue
fu351/Doberman-Core
star211
Poids du dépôt léger
dash: a manual Refresh control
The dashboard polls: `refreshStats()` (`src/doberman/dash/app.py:408`) every 5 s and `refreshPending()` (`:546`) every …
Python
enhancement
good first issue
fu351/Doberman-Core
star211
Poids du dépôt léger
dash: "Copy details" button on each pending-approval card
Each pending-approval card in the dashboard (`renderPending`, `src/doberman/dash/app.py:448-544`) shows the risk badge,…
Python
enhancement
good first issue