activist
activist copied to clipboard
Implement page checks that rely on UUIDs
Terms
- [X] I have searched open and closed feature requests
- [X] I agree to follow activist's Code of Conduct
Description
Till now the page check mechanisms we were using were based off of route parameters that just check for organizations, groups, etc, but not necessarily the full page route. Now that we're moving forward with hydration, we're now able to check for URLs based on the full route including UUIDs for the given pages. Such changes should be made to the page check mechanisms for components like the breadcrumbs and sidebar :)
Contribution
I'll be working on this soon! 😊
CC @mattburnett-repo - this will cover the changes we were just discussing 😊
If I understand correctly, the issue you're facing is that you cannot see the full route? My team and I are working on a course project, and would like to help you out with this issue. Do you think it will be doable in 2 weeks?
Hey @Aya-Abdel-Hamid 👋 I think this can be doable within a few weeks, sure :) #963 is also related to this, which could be another one you all could look at? The function in question for finding these routes is in frontend/utils/routeUtils.ts, and as you can see this really is not a robust way of checking the routes to determine key interface elements like filters and sidebar menus.
For #963 we have the issue that we used to be able to prefix all the routes, but this isn't working with Netlify now because of a bug on their end. The original logic for things like breadcrumbs was that we'd always have localized routes, and now we need to factor if they're not.
Happy to discuss this further, and let me know if you all have any ideas!
Can you please assign us this issue?
@andrewtavis Excuse me I'm really confused what you mean by your previous response, do you want us to work on this issue alone, or do you want us to work on the linked issue #963? If possible, could you please provide us with your email address?
You're welcome to work on this issue or #963, @Aya-Abdel-Hamid :) And my email is on my GitHub profile if you'd like to contact me there, but I'd suggest discussing here as much as we can. Does the person your working with also have GitHub? Maybe they can write in here as well?
Hi @andrewtavis . We're a group of five students contributing to this repo as part of a project. One of my teammates (@Aya-Abdel-Hamid), reached out earlier about this.
We have a week to work on our contributions and would appreciate your help in clarifying and suggesting how we could divide the work for this issue among our team members to contribute effectively.
Thanks for your time and for maintaining this project!
Hey @shgxshg 👋 Thanks for writing in and also for letting me know what the timeframe is for this :)
For one of the contributions, we should definitely check frontend/components/page/PageBreadcrumbs.vue. You'll see at this line that the checks that we're doing for the check there is extremely rudimentary - just checking if /organizations/ etc is in the URL. It'd be better if we used regex for this to check that we're on routes given exact structures, so pageType = "organization" would be for routes that are like /organization/HAS_FORM_OF_A_UUID.
The other place that we're working on these other sorts of routes is frontend/utils/routeUtils.ts as I mentioned above, which could be another contribution? Functionality that's built via saving the route to a URL an splitting it is similarly not robust, so the goal would be to fix isRouteActive and isCurrentRoutePathSubpageOf. We could similarly use regex for this, or I'd be open to your two's suggestions!
In the review of the PR(s) I'd then check to see if we can make sure that the work for #963 is included :)
Let me know how this sounds! Happy to make further suggestions, and I'll have time to help over the weekend if we wanted to hop on a quick call.
Thanks for the communication here, both of you :)
Hello @andrewtavis, I'm part of the group working on this issue, could you please assign me to it?
Hello @andrewtavis, could you please assign myself and @mohtelsayed to issue #963. Additionally, could you provide a description of what exactly the issue is (visually and backend wise in terms of paths)? This would be extremely helpful.
Hi @aadityanairaaq 👋 You'd need to write in #963 to be assigned :) You too, @Mohtelsayed :) #963 would ideally be fixed by frontend/utils/routeUtils.ts changes to isRouteActive. There shouldn't be any changes to the backend, but fixing isRouteActive should be enough 😊
@shgxshg: An issue we're dealing with here is that we can't deal with the merge conflicts for your PR likely because your GitHub account is not set up properly. You need to check that the email you use for GitHub matches git config user.email. Without this we can't see the merge conflicts on GitHub, and you further didn't give us edit access to your branch, so we can't help right now.
Please fix your email and open a new PR or ideally get the most recent version of main and send along a new PR.
Hey @shgxshg 👋 I replied to your message on Matrix/element with a call link that you can use to join us to get some help :)