8000 feat: add pagination to the organizaton members table by brettkolodny · Pull Request #16870 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: add pagination to the organizaton members table #16870

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
Changes from 1 commit
Commits
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
fix: update stories for new pagination related args
  • Loading branch information
brettkolodny committed Mar 13, 2025
commit 5a58c1e87a7bbe61b9236a140b8f1176281a8f9a
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {
MockUser,
} from "testHelpers/entities";
import { OrganizationMembersPageView } from "./OrganizationMembersPageView";
import { UsePaginatedQueryResult } from "hooks/usePaginatedQuery";
import { mockSuccessResult } from "components/PaginationWidget/PaginationContainer.mocks";

const meta: Meta<typeof OrganizationMembersPageView> = {
title: "pages/OrganizationMembersPageView",
Expand All @@ -14,11 +16,16 @@ const meta: Meta<typeof OrganizationMembersPageView> = {
error: undefined,
isAddingMember: false,
isUpdatingMemberRoles: false,
canViewMembers: true,
me: MockUser,
members: [
{ ...MockOrganizationMember, groups: [] },
{ ...MockOrganizationMember2, groups: [] },
],
membersQuery: {
...mockSuccessResult,
totalRecords: 2,
} as UsePaginatedQueryResult,
addMember: () => Promise.resolve(),
removeMember: () => Promise.resolve(),
updateMemberRoles: () => Promise.resolve(),
Expand Down
Loading
0