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

   
   ### Description
   This PR adds the total element count to the **Dag Runs** and **Task 
Instances** grids, similar to the existing behavior in the **Dags** tab.
   
   No new data fetching or logic was added; the count uses an already available 
attribute in the component's state.
   
   Closes #57639 
   
   ---
   
   ###  UI Preview
   ### Dag Runs
   
   <table>
   <tr>
   <td><b>Before</b><br>
   <img width="600" alt="Dag Runs before" 
src="https://github.com/user-attachments/assets/4d21b631-fc05-4540-95de-1065cebb2165";
 />
   </td>
   <td><b>After</b><br>
   <img width="600" alt="Dag Runs after" 
src="https://github.com/user-attachments/assets/33b9ca8f-14e5-4f88-a021-8d847831b64c";
 />
   </td>
   </tr>
   </table>
   
   ### Task Instances
   
   <table>
   <tr>
   <td><b>Before</b><br>
   <img width="600" alt="Task Instances before" 
src="https://github.com/user-attachments/assets/962b47ef-4839-46f8-a588-2f6dfc4873ef";
 />
   </td>
   <td><b>After</b><br>
   <img width="600" alt="Task Instances after" 
src="https://github.com/user-attachments/assets/46418d44-5f15-4fc9-91fc-fe5b983b6e9a";
 />
   </td>
   </tr>
   </table>
   
   ### Testing
   
   Manually verified across multiple states and views.
   
   **DAG Runs:**
   | Case | Screenshot |
   |------|-------------|
   | 0 runs | <img width="400" 
src="https://github.com/user-attachments/assets/3a2abdee-3dc0-40a6-8706-9a97e906a940";
 /> |
   | 1 run | <img width="400" 
src="https://github.com/user-attachments/assets/f0dc7d58-12bc-404f-841c-cb126f932498";
 /> |
   | Many runs | <img width="400" 
src="https://github.com/user-attachments/assets/de6ee53c-a3e9-4ecc-9122-d44c35d24f2c";
 /> |
   
   **Task Instances:**
   | Case | Screenshot |
   |------|-------------|
   | 0 tasks | <img width="400" 
src="https://github.com/user-attachments/assets/eb966464-85bd-4cd9-97ca-98cb1fd317ae";
 /> |
   | 1 task | <img width="400" 
src="https://github.com/user-attachments/assets/705de7f6-53d8-41de-9015-12f12704821f";
 /> |
   | Many tasks | <img width="400" 
src="https://github.com/user-attachments/assets/a19d171e-bf41-43a1-96be-ce22a4801208";
 /> |
   
   **DAG Page (Dag Runs tab):**  
   <img width="800" alt="Dag Page (Dag Runs tab)" 
src="https://github.com/user-attachments/assets/0503c25e-46ec-44ac-8c46-922c90deb130";
 />
   
   **DAG Run Page (Task Instances tab):**  
   <img width="800" alt="Dag Run Page (Task Instances tab)" 
src="https://github.com/user-attachments/assets/e40c2595-e8d1-4b9b-a3d5-fc6507ae7fbd";
 />
   
   **RTL / i18n Validation:**  
   <p float="left">
     <img width="420" alt="RTL example" 
src="https://github.com/user-attachments/assets/0ec5f47b-f639-492f-b9b4-82f605eb1acc";
 />
     <img width="420" alt="i18n example" 
src="https://github.com/user-attachments/assets/0d76fe7c-db7b-4112-a0a7-c8a3b9ebeed8";
 />
   </p>
   
   ---
   **^ Add meaningful description above**
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code changes, an Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in a 
newsfragment file, named `{pr_number}.significant.rst` or 
`{issue_number}.significant.rst`, in 
[airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments).
   
   


-- 
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