Skip to content

Implemented pagination in some APIs. #1351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
16d8e1a
Added pagination ui
Imiss-U1025 Nov 14, 2024
b6d8a1b
Removed Your Folder Component
Imiss-U1025 Nov 26, 2024
efa56c3
Added utilities for pagination.
Imiss-U1025 Nov 26, 2024
a602426
Implemented pagination in Your App.
Imiss-U1025 Nov 26, 2024
fd62105
Implemented pagination in trash.
Imiss-U1025 Nov 27, 2024
3d9f56d
Imported types from util/pagination
Imiss-U1025 Nov 27, 2024
fa580fb
Added utilities for pagination.
Imiss-U1025 Nov 27, 2024
7bc6eb6
Implemented pagination in User Group List.
Imiss-U1025 Nov 27, 2024
41927a3
Implemented pagination in Data Sources.
Imiss-U1025 Nov 27, 2024
f2140e4
Implemented pagination in groupUsersPermission.
Imiss-U1025 Nov 27, 2024
8c82fd1
Implemented pagination in organizations's member.
Imiss-U1025 Nov 28, 2024
d65c2d5
Implemented pagination in Query Library and made fetchJsDatasourcePag…
Imiss-U1025 Nov 28, 2024
cce98cd
Implemented pagination in login.
Imiss-U1025 Nov 28, 2024
e2c1efc
Implemented realtime processing of create new folder in HomeView.
Imiss-U1025 Nov 28, 2024
3ce6469
Change search method in query library.
Imiss-U1025 Nov 28, 2024
a0a6fa1
Changed search method in Data Sources.
Imiss-U1025 Nov 28, 2024
b27f13f
Changed search method in marketplace.
Imiss-U1025 Nov 28, 2024
f51f681
Processed immediate activity in TrashView.
Imiss-U1025 Nov 29, 2024
cfe991d
Processed immediate activity in Your Apps.
Imiss-U1025 Nov 29, 2024
add7083
Processed immediate activity in Setting/UserGroup.
Imiss-U1025 Nov 29, 2024
a65c737
Added back button in your apps.
Imiss-U1025 Nov 29, 2024
1d41e80
Processed immediate activity in Query Library.
Imiss-U1025 Nov 29, 2024
4e1e0c0
Processed immediate activity in Data Sources.
Imiss-U1025 Nov 29, 2024
90648dc
Removed unnessary APIs.
Imiss-U1025 Nov 29, 2024
b332980
Fixed Search functions.
Imiss-U1025 Nov 29, 2024
34ce989
Fixed pagination of folders and UI.
Imiss-U1025 Nov 29, 2024
071e0ab
Fixed an issue that can not search Navigation.
Imiss-U1025 Nov 29, 2024
24469a3
Fixed loading indicator in setting/permission.
Imiss-U1025 Dec 1, 2024
56ff238
Fixed an issue that does not display 'Add member' button and 'Remove …
Imiss-U1025 Dec 2, 2024
346760c
Optimized called APIs and in User groups.
Imiss-U1025 Dec 2, 2024
3d75c3a
Fixed an issue that call double API in login.
Imiss-U1025 Dec 3, 2024
ffd2889
Does not show Pagination when No data in Data Source.
Imiss-U1025 Dec 3, 2024
32b3c3b
Implemented update-on-action when import file and create new Data Sou…
Imiss-U1025 Dec 3, 2024
bed5f55
Removed unnessary API calling (folders/elements) when first loading.
Imiss-U1025 Dec 3, 2024
6f9b821
Updating Yarn Lock
Dec 3, 2024
326d27e
Fixed an issue that app does not move to folder.
Imiss-U1025 Dec 3, 2024
9fcd924
Added categories dropdown button in Your apps.
Imiss-U1025 Dec 3, 2024
8886606
Fixed an Navigation issue in Trash and Your Apps.
Imiss-U1025 Dec 4, 2024
0364857
Merge branch 'dev' into feature-pagination
FalkWolsky Dec 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added utilities for pagination.
  • Loading branch information
Imiss-U1025 committed Dec 2, 2024
commit efa56c3f4d351f77cc3c9ca3632f17db08cf2ef3
19 changes: 19 additions & 0 deletions client/packages/lowcoder/src/util/pagination/axios.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { FolderApi } from "@lowcoder-ee/api/folderApi";
import { FetchFolderElementsPaginationPayload } from "@lowcoder-ee/redux/reduxActions/folderActions";

export const fetchFolderElements = async (request: FetchFolderElementsPaginationPayload) => {
try {
const response = await FolderApi.fetchFolderElementsPagination(request);
return {
success: true,
data: response.data.data,
total:response.data.total
};
} catch (error) {
console.error('Failed to fetch data:', error);
return {
success: false,
error: error
};
}
}
14 changes: 14 additions & 0 deletions client/packages/lowcoder/src/util/pagination/type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
type ApplicationType = {
[key: number]: string; // This allows numeric indexing
};

// Define the const with explicit type
export const ApplicationPaginationType: ApplicationType = {
0: "",
1: "APPLICATION",
2: "MODULE",
3: "NAVLAYOUT",
4: "FOLDER",
6: "MOBILETABLAYOUT",
7: "NAVIGATION",
};