seunggabi opened a new pull request, #77650:
URL: https://github.com/apache/airflow/pull/77650

   **Depends on #77649** — this branch is stacked on it; only the last commit 
("Let users choose how long task names are shortened") belongs to this PR.
   
   #77649 keeps the end of long task names visible. In Dags whose tasks share a 
long prefix, the visible start is still the same on every row, so the part that 
tells tasks apart gets only a small share of the column. This adds a **Long 
task names** preference to the Graph section of the user Settings page (stored 
per browser, like the other settings there):
   
   - **Cut the middle** (default, the behavior from #77649)
   - **Hide the common prefix**: the prefix shared by most task names in the 
Dag (at least half of them, ending on a `_` / `.` / `-` boundary) is replaced 
by `…`. Tasks that do not share it (e.g. `init`) are shown in full.
   - **Cut the end**: the previous behavior.
   
   The full name is always available on hover. The prefix is computed once per 
grid / graph from the names already loaded, not per row.
   
   ![three 
options](https://raw.githubusercontent.com/seunggabi/pr-airflow/pr-assets/task-name-display/compare.png)
   
   
![settings](https://raw.githubusercontent.com/seunggabi/pr-airflow/pr-assets/task-name-display/settings_crop.png)
   
   Tests: `commonNamePrefix` (prefix shared by most names, separator boundary, 
no prefix when fewer than half share one, never hiding a whole name), 
`TaskName` in the end-cut and prefix modes, and the Settings control (default 
and stored value). Ran the full UI test suite and `pnpm lint` (oxlint, eslint, 
tsc) locally.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5.5)
   
   Generated-by: Claude Code (Opus 5.5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to