InFiNiTy0639 opened a new pull request, #46040: URL: https://github.com/apache/airflow/pull/46040
This pull request introduces the following updates to the `XCom` and `XComEntry `components, improving the functionality and user experience when viewing XCom entries within a DAG run: ### Changes Made: 1.` XComEntry.tsx:` - Error Handling: Added error handling to display error messages when the XCom value fetch fails. - Clipboard Copy Feedback: Implemented a toast notification that alerts the user when an XCom value has been successfully copied to the clipboard. - Loading Skeleton: Added a loading skeleton that appears while the XCom value is being fetched. - Fallback for Missing Data: Displayed a fallback message ("No XCom data available") when no value is present for a given XCom entry. 2. `XCom.tsx:` - Pagination Handling: Integrated pagination functionality to fetch and display paginated XCom entries for the selected DAG run and task. - Error Alert: Added an `ErrorAlert `component to handle and display any errors that occur during the XCom entries fetch. - Table State Management: Enhanced the state management of the table (pagination, sorting) via `useTableURLState`, ensuring consistency when navigating between pages. - `DataTable` Integration: Updated the `DataTable` component to display XCom entries with appropriate loading and pagination states. ### Why this is needed: - **Error Handling**: To ensure users are informed when data fetching fails. - **Clipboard Copying**: To provide an easy way for users to copy XCom values to their clipboard for further use. - **UI/UX Improvement**: To improve the user experience with skeleton loaders and toast notifications, providing visual cues for ongoing actions. -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org