Page MenuHomePhabricator

Implement "Project" section
Closed, ResolvedPublic

Description

Figma: https://www.figma.com/file/JcTMFwbEJPpCKBiZ16Jkel/Future-of-the-Wishlist?type=design&node-id=1070-186587&mode=design&t=q7LAvYAtYri5kle8-0

  • User story**

As someone submitting a wish, I should share which project I am referencing, so that my wishes can be easier categorized and grouped for focus area creation.

Acceptance criteria

  • Implement the "Project" section according to the designs
  • Users should be able to click anywhere on a card and select or de-select a project
  • Clicking "All projects" should expand the the accordion and select all projects
    • Deselecting "All projects" should do the inverse
    • Manually selecting each project should tick "All projects", as one would expect.
  • Enabling the dialog "it's something else" should unfurl a text area for users to submit text. A valid response, when this is selected, should have 3+ characters in the text area.
  • A user may select "it's something else _and_ a card

QA Results - Wishlist-test.toolforge

ACStatusDetails
1T362275#9928866
2T362275#9928866

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

nb. using checkboxes instead of cards + checkboxes for drafting up this section

@TheresNoTime it looks like this is in patch for review, can you update the column to be in review or in QA?

If we can get !42 merged, I'll follow-up the outstanding things (the rebases will be easier once this baseline is merged, I hope)

The latest is now on Patch Demo.

@JWheeler-WMF @JSengupta-WMF I think we should rethink the top 4 projects. I suggest Wikipedia, Wikidata, Commons, Wikisource, as these historically are where most wishes come from (along with Wiktionary). MediaWiki.org does not have much for community-specific needs, and folks creating wishes for it may be referring to MediaWiki software in general, in which case they should probably use "All projects". Also note the existence of mediawiki.org as an option may invite wishes exclusively for 3rd party wikis, which would be pretty cool but I'm unsure if that's intentional.

I agree about the projects; I assumed the ones in the designs were examples/placeholders.

@MusikAnimal that's totally fine. I think the current top 4 projects are just indicative by Glauco. We should show the projects under which most of the wishes are received. If the above are top 4, feel free to change the order from design.

TheresNoTime subscribed.

Unlicking — others have worked on this more recently.

(I left this comment on the above MR, but should've made it here.)

I wonder if we want to change the other project keys to drop the leading group-? Not that people should be editing the template directly all that much of course, but after it's marked for translation they will be, and e.g. wiktionary rather than group-wiktionary seems more intuitive.

There also seems to be a bug if whitespace is added in the CSV string, e.g. if you manually set the field to wmcs, group-wiktionary,group-wikisource and then edit in the form, Wiktionary isn't selected and if you select it you end up with wmcs,group-wiktionary, group-wiktionary,group-wikisource.

I wonder if we want to change the other project keys to drop the leading group-? Not that people should be editing the template directly all that much of course, but after it's marked for translation they will be, and e.g. wiktionary rather than group-wiktionary seems more intuitive.

The multilingual wikis use i.e. name-wikifunctionswiki so the string interpolation wouldn't work. We can of course just add a switch statement in the template/module and do as you say. I'll look into it.

There also seems to be a bug if whitespace is added in the CSV string, e.g. if you manually set the field to wmcs, group-wiktionary,group-wikisource and then edit in the form, Wiktionary isn't selected and if you select it you end up with wmcs,group-wiktionary, group-wiktionary,group-wikisource.

Fixed with !84. Thanks for identifying!

The multilingual wikis use i.e. name-wikifunctionswiki so the string interpolation wouldn't work. We can of course just add a switch statement in the template/module and do as you say. I'll look into it.

I'm not sure how much it matters, but if we want to change it after the system is launched it'll be more annoying.

Fixed with !84. Thanks for identifying!

Thanks for fixing it so quickly! I was going to look at it. :)

Am I seeing the correct behaviour here? If I manually add random other project names in |projects=, they don't get removed when editing and saving via the form. Should we be deleting them, as they don't appear in the form?

Am I seeing the correct behaviour here? If I manually add random other project names in |projects=, they don't get removed when editing and saving via the form. Should we be deleting them, as they don't appear in the form?

What a cool bug! Thanks for discovering this. The MR above should take care of it.

@MusikAnimal Can you review AC2, thanks!

Test Result - Wishlist-test.toolforge

Status: ❌ FAIL AC2
Environment: Wishlist-test.toolforge
OS: macOS Sonoma 14.5
Browser: Chrome 126
Device: MBA
Emulated Device: NA

Test Artifact(s):
✅AC1: Navigate in the project section

  • Implement the "Project" section according to the designs
  • Users should be able to click anywhere on a card and select or de-select a project
  • Clicking "All projects" should expand the the accordion and select all projects
  • Deselecting "All projects" should do the inverse
  • Manually selecting each project should tick "All projects", as one would expect.

2024-06-26_15-18-52.mp4.gif (762×900 px, 1 MB)

AC2: It's something else
❌should have 3+ characters in the text area

I was able to submit with 2 characters
2024-06-26_15-14-39.png (745×1 px, 119 KB)
Should I be able to see what I type in the project section?
2024-06-26_15-15-56.png (726×1 px, 137 KB)

I haven't touched validation states because I don't want to step on toes. That's covered by T363218.

Looks like that's the only issue so I'll just move this to Done.