-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: add members space page #971
base: master
Are you sure you want to change the base?
feat: add members space page #971
Conversation
… into feat-960-add-members-space-page
Co-authored-by: Less <[email protected]>
@Sekhmet can you review this PR? |
Co-authored-by: Wiktor Tkaczyński <[email protected]>
Co-authored-by: Wiktor Tkaczyński <[email protected]>
… into feat-960-add-members-space-page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where
-> statementsWhere
rename went wrong so query doesn't work right now.
Also recently we added class to our routes, but because SpaceMembers
returns fragment that class
doesn't have anywhere to go so we get a warning and padding is missing on this page:
<router-view class="pb-6" /> |
@Sekhmet Fixed. Could you approve? |
statements(where: $statementsWhere) { | ||
delegate | ||
space | ||
network | ||
statement | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe as a precaution let's fetch 100 statements there, should be enough to cover members of most spaces, afraid that default (20) might not be always enough.
first
arg controls how many we fetch.
const { data } = await apollo.query({ | ||
query: STATEMENTS_AND_USERS_QUERY, | ||
variables: { | ||
where: { | ||
delegate_in: userIds, | ||
network: networkId, | ||
space: spaceId | ||
}, | ||
userIds | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { data } = await apollo.query({ | |
query: STATEMENTS_AND_USERS_QUERY, | |
variables: { | |
where: { | |
delegate_in: userIds, | |
network: networkId, | |
space: spaceId | |
}, | |
userIds | |
} | |
}); | |
const { data } = await apollo.query({ | |
query: STATEMENTS_AND_USERS_QUERY, | |
variables: { | |
statementsWhere: { | |
delegate_in: userIds, | |
network: networkId, | |
space: spaceId | |
}, | |
userIds | |
} | |
}); |
Right now we are not filtering statements at all because argument name doesn't match, so we just fetch random 20 statements that are most likely not for the members of the space.
Summary
Add a new space page and item in the space menu called "Members".
Closes: #960
How to test
Members
navigation item is visibleMembers