Conversation
…file-directory #7422 - [BE] Mozfest Community Directory (Profile Directory w/ tabs)
|
This PR introduces visual differences. Click here to inspect the diffs. |
* Profile directory nav start * Add isues to cards and filter for profile types * Convert profile cards to tailwind * directory listing styling * Start react setup for tabbed profile directory filtering * start adding subfilters to directory properties * Create pulse profile component, hook up tabbed profile directory to api * Filtering, back button, active button when no filter * Dropdown styling for subfilters * profile subfiltering functionality * renaming * Create components for profile directory react items * Revert directory blocks to how they were * Filters nav horizontal scroll on mobile * Remove extra directory nav buttons used for testing * Code cleanups as per feedback
|
This PR introduces visual differences. Click here to inspect the diffs. |
|
This PR introduces visual differences. Click here to inspect the diffs. |
sabrinang
left a comment
There was a problem hiding this comment.
Pulse Filters
Filter value: it would be helpful that the exact values are defined in the Pulse api/admin in the help text too as I haven't used pulse filters in a long time. It would be great if options can be sorted so I don’t have to delete everything to reorder.
Tabbed profile directory
If I just choose a pulse filter in the component for Tabs only, I get I get Server Error (500) when I preview/publish if a Subfilter isn’t selected. Is this missing a validation error if I’m not able to do this or is this a required field?
Tabs
- It wasn’t very obvious how to create another tab. I figured it out when it was done via the Pulse filter itself. I didn’t understand the help text: “The profile information to create tabs on. The first option in the snippet will be used as the initial filter.” does it mean ... that the Tabs are created based on the selected pulse filter and the first option in the snippet will be the first tab?
- Mobile: Make it go to the edge so it hints that there is more (looks cut off with the margin right now)
Content
- I’m not familiar with how the MozFest team wants to organize the content this year but for different tabs could you have different subfilters? For example, Wrangler filter by spaces then Volunteers filter by years? It may be good to check with whoever is entering to review content as I don't have the content and am not too experienced with pulse filters either which made reviewing the filtering functionality experience tricky as I didn’t want to actually update the pulse user profiles if I wasn’t suppose too but it would be most useful to test with real content.
Design
- Filter drop down box: it is too narrow for the average space names or if they are localized as well (make this wider and on mobile as well)
- Filter check box: make it
#595cf3blue instead of purple
- Profile card bottom label: if these are not links/clickable, they should be black
- Profile card on narrow 7-columns: the full-width version is preferable as the narrow photo proportions are not ideal but I saw the mockups desire having two up. If this is what is desired by the stakeholders, I'd atleast fix the alignment of the social icons (to be consistently upper right) to clean up those elements if they aren't specific of what they wanted I recommend having one profile up at a time.
|
Hey @sabrinang I have made the necessary changes at least for the design feedback you had. I've been away from the project for the last little bit but I can put some time into getting this one finished up next week. Some of the functionality changes eg. Having the filter values defined or choosing different sub filters for each filter might need a bit more discussion though. |
sabrinang
left a comment
There was a problem hiding this comment.
@stevedya thanks for getting back to this! I'm looking at https://mozfest-foundation-s-feature-fe-ovhu8u.mofostaging.net/en/ and it looks like design front-end changes haven't been updated so I'm wondering if I'm looking at the wrong deployment?
Also, it looks like the wrangler section disappears when I click elsewhere and return to it:

commit 3530887 Author: Steve <steven_ts@hotmail.com> Date: Thu Dec 2 16:16:39 2021 -0700 Update filters nav spacing on mobile, adjust help text on Tabbed Profile Directory commit 7ddbe3e Author: Steve <steven_ts@hotmail.com> Date: Wed Nov 3 22:48:30 2021 -0600 Pulse profile social icons alignment commit 45e62c3 Author: Steve <steven_ts@hotmail.com> Date: Wed Nov 3 22:46:03 2021 -0600 Fixes as per feedback, custom checkboxes, subfilter dropdown width commit 03ceb29 Author: Steve <steven_ts@hotmail.com> Date: Thu Oct 21 15:56:08 2021 -0600 Code cleanups as per feedback commit 17dc691 Author: Steve <steven_ts@hotmail.com> Date: Wed Oct 20 16:16:07 2021 -0600 Remove extra directory nav buttons used for testing commit 7a27559 Author: Steve <steven_ts@hotmail.com> Date: Wed Oct 20 16:07:39 2021 -0600 Filters nav horizontal scroll on mobile commit 0383eee Author: Steve <steven_ts@hotmail.com> Date: Wed Oct 20 13:42:30 2021 -0600 Revert directory blocks to how they were commit 73fa75e Author: Steve <steven_ts@hotmail.com> Date: Wed Oct 20 13:34:51 2021 -0600 Create components for profile directory react items commit 7ca188c Author: Steve <steven_ts@hotmail.com> Date: Tue Oct 19 22:26:17 2021 -0600 renaming commit 89df5e1 Author: Steve <steven_ts@hotmail.com> Date: Tue Oct 19 22:03:47 2021 -0600 profile subfiltering functionality commit c067772 Author: Steve <steven_ts@hotmail.com> Date: Tue Oct 19 01:25:16 2021 -0600 Dropdown styling for subfilters commit 8d4ebc6 Author: Steve <steven_ts@hotmail.com> Date: Mon Oct 18 22:38:46 2021 -0600 Filtering, back button, active button when no filter commit 8785af7 Author: Steve <steven_ts@hotmail.com> Date: Mon Oct 18 16:50:56 2021 -0600 Create pulse profile component, hook up tabbed profile directory to api commit d1bfcc4 Author: Steve <steven_ts@hotmail.com> Date: Mon Oct 18 10:08:29 2021 -0600 start adding subfilters to directory properties commit f5b94ca Author: Steve <steven_ts@hotmail.com> Date: Fri Oct 15 16:22:07 2021 -0600 Start react setup for tabbed profile directory filtering commit e8f8147 Author: Steve <steven_ts@hotmail.com> Date: Thu Oct 7 18:42:21 2021 -0600 directory listing styling commit be1170f Author: Steve <steven_ts@hotmail.com> Date: Thu Oct 7 18:13:18 2021 -0600 Convert profile cards to tailwind commit 7c94a66 Author: Steve <steven_ts@hotmail.com> Date: Thu Oct 7 16:22:11 2021 -0600 Add isues to cards and filter for profile types commit 724bdcc Author: Steve <steven_ts@hotmail.com> Date: Wed Oct 6 12:42:34 2021 -0600 Profile directory nav start
|
Hey @sabrinang, Thanks for looking at this again. I finally had some more time today to look at the outstanding issues. Pulse Filters
Tabs:
Content
Design
** Reply to your previous comment **
Let me know if the new changes work or if I will have to get this to trigger a deployment again 😃 |
|
I've merged in the
|
danielfmiranda
left a comment
There was a problem hiding this comment.
Hi Everyone, I believe in order to build the test app we need the node and python tests to pass.
I tried to pull this PR into my local machine to see if I can get a fix, however I was unsure how to set up the tabbed directory and thus unable to test.
However I added some suggested fixes that I think would get the tests to pass.
Thanks in advance and please let me know if you have any questions about my comments!
network-api/networkapi/wagtailpages/pagemodels/customblocks/profile_directory.py
Outdated
Show resolved
Hide resolved
|
Design-wise this looks good and it looks like Sabrina's feedback was addressed. Like Sabrina, I'm not familiar with the real content and setting up the different filters was confusing - I think it will be helpful for Marc to test it out further once it's landed. |
kristinashu
left a comment
There was a problem hiding this comment.
Design looks but but code review is still needed.
danielfmiranda
left a comment
There was a problem hiding this comment.
Hi Everyone,
Thanks for tagging me in this. After taking a look, everything looks good to me and I am approving!
|
Hey all - this PR duplicated code we already had in place for streamfield blocks, and should have had an issue filed for the fact that we now have duplicate code that is a source of future bugs when this code gets updated in only one place, leading to divergent behaviour between two parts that should behave the same. Hopefully we can remember to flag and file this in the future. Additionally, it looks like this new snippet cannot be regulated in terms of permissions, so even though the code landed, staff can't actually create/edit them without admin rights, so that's not great. I've filed #8033 to address the code cleanup in the new year, and #8034 for the permission issue. |







Closes #7421 (Epic)
Related PRs/issues #7602 (BE pull request), #7422 (BE issue), #7417 (FE issue)
live link: https://mozfest-foundation-s-feature-fe-xuxj3g.mofostaging.net/en/
Link to sample test page:
Checklist
Remove unnecessary checks
Tests
Changes in Models:
Documentation: