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
[FEATURE] Search for members on paginated member page #369
Comments
related #307 /j |
fwiw there's some member searching added to the api in #525 that might be reusable/usable for inspiration |
Ping @SeunghunSunmoonLee |
Just followed README and I got an error. Help would be appreciated @aerugo
import { PrismaClient } from '@prisma/client'
|
@SeunghunSunmoonLee it's a strange bug since neither Gustav nor I are getting it, but both you and also another person I've heard get it. But it seems to be fixed by vercel/next.js#33831 , however that pr doesn't seem to have ended up in a normal release yet so you might have to update to a canary version of |
Thank you @Powersource ! Now I can run it after setting env variable after getting another error.
Is there a better solution to access members page without having to change the code to determine authenticated or not? |
Just add some random strings to your .env.local file. For example:
COOKIE_SECRET="A_LONG_RANDOM_VALUE_THAT_IS_NOT_THIS_STRING123"
***@***.***:35432/cobudget"
POSTMARK_FROM_EMAIL="fake"
POSTMARK_API_TOKEN="fake"
MAGIC_LINK_SECRET="SOMETHING"
***@***.***"
…On Wed, Feb 9, 2022 at 3:23 PM Seunghun Sunmoon Lee < ***@***.***> wrote:
Thank you @Powersource <https://github.com/Powersource> ! Now I'm getting
Error: Add MAGIC_LINK_SECRET environment variable
—
Reply to this email directly, view it on GitHub
<#369 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3MU6K27P4GEDG6VSUURNDU2KBHZANCNFSM5HOI2KGA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
How do you mean? It should be enough to be logged in as a member of the collection. |
@SeunghunSunmoonLee - to log in with a magic link, you use the link that is printed to terminal when you try to log in with any email. |
Did you get it to work @SeunghunSunmoonLee? |
Yeah. I have WIP solution. Can you let me push?
|
@Powersource I've used your implementation. I got error with usernameStartsWith.
Do you have any clue on this? Not sure why MembersPage resolver is reading members from db while members do the same? |
@SeunghunSunmoonLee MembersPage is(/was? I think we might have switched to another one in some/all places) our solution for pagination. For that error, when adding an argument to a graphql resolver you need to add it in a few different places, including in the graphql schema. |
@SeunghunSunmoonLee open a pull request and @gustavlrsn or @Powersource will review. :) |
i think he's trying to push to a new branch in our repo. that would be fine but he'd need more permissions. @SeunghunSunmoonLee i think it's simplest if you create a fork on github and push to that one instead |
Here it is :) #545 |
Following a discussion in today's meeting, I've added this new issue to improve the search options for the round members: #555 ping @SeunghunSunmoonLee |
there's also a bug that you have to currently search case-sensitively for names but i think that has the same cause as #554 which i'll fix today (i think i might refactor the two resolvers into one) |
@SeunghunSunmoonLee assigned this to you since iirc you were still gonna work on cobudget, just not very much per month? |
Hey! Which ticket? #554 or #555? |
@SeunghunSunmoonLee yep this issue, i've updated the description a tad to clarify. specifically we want
We currently only have it on the Round (aka collection) page |
This issue should be closable now. As mentioned in the PR, new features to test:
|
The last 2 bullet points are working, and for pagination, I'm trying to test it - but it's not even kicking in with a list of 27 members. As of how many members is pagination supposed to start? @Powersource |
@Powersource did you see the above question of mine? So that we can close this.... |
@francesca-sp the pagination limit is 30 |
thanks @gustavlrsn . Just tested this with a round, and for me pagination does not seem to be working. When I go above 30, then simply the "load more" button shows up, and I need to unfold the list to load the remaining emails. Is that what is supposed to happen? @Powersource This is the one: https://staging.cobudget.com/staging-group/my-staging-round/participants |
Hm, I only see 3 participants in that list. But unsure what you mean with the load more behavior. Clicking the button should add up to 30 more records in the same list. We're adding automatic "infinite scrolling" in another issue, so that you don't need to press the button manually. |
Right, as a non-admin I can only see people that have accepted the invitation. Ah, yes, confusing term, it is pagination more in the technical sense of dividing up the result in "pages", to avoid loading everything at once |
ok, I understand now. So in that case, this seems to be working and can be closed. |
Great, closing this |
As an admin, I want to be able to search for a user by name on the member page of my group or round (for example to change the users' balance or to upgrade them to admin).
terminology: in the code, rounds are sometimes called collections or events. Groups are sometimes called organizations/orgs.
The text was updated successfully, but these errors were encountered: