This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 5382b565143 Plugins pagination fix  #61055 (#61059)
5382b565143 is described below

commit 5382b56514313933fd68c67b56bdb9b5e56f2363
Author: Vishakha Agrawal <[email protected]>
AuthorDate: Tue Jan 27 21:12:10 2026 +0530

    Plugins pagination fix  #61055 (#61059)
    
    * added E2E tests for Plugins Page #60571
    
    * Added pagination to Plugins Page #61055
    
    * removed unwanted commits
---
 airflow-core/src/airflow/ui/src/pages/Plugins.tsx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/ui/src/pages/Plugins.tsx 
b/airflow-core/src/airflow/ui/src/pages/Plugins.tsx
index e14bb772aed..623a7176c85 100644
--- a/airflow-core/src/airflow/ui/src/pages/Plugins.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Plugins.tsx
@@ -21,13 +21,19 @@ import { useTranslation } from "react-i18next";
 
 import { usePluginServiceGetPlugins } from "openapi/queries";
 import { DataTable } from "src/components/DataTable";
+import { useTableURLState } from "src/components/DataTable/useTableUrlState";
 import { ErrorAlert } from "src/components/ErrorAlert";
 
 import { PluginImportErrors } from "./Dashboard/Stats/PluginImportErrors";
 
 export const Plugins = () => {
   const { t: translate } = useTranslation(["admin", "common"]);
-  const { data, error } = usePluginServiceGetPlugins();
+  const { setTableURLState, tableURLState } = useTableURLState();
+  const { pagination } = tableURLState;
+  const { data, error } = usePluginServiceGetPlugins({
+    limit: pagination.pageSize,
+    offset: pagination.pageIndex * pagination.pageSize,
+  });
 
   const columns = [
     {
@@ -52,7 +58,9 @@ export const Plugins = () => {
         columns={columns}
         data={data?.plugins ?? []}
         errorMessage={<ErrorAlert error={error} />}
+        initialState={tableURLState}
         modelName="common:admin.Plugins"
+        onStateChange={setTableURLState}
         showRowCountHeading={false}
         total={data?.total_entries}
       />

Reply via email to