Closed Bug 2010907 Opened 2 months ago Closed 2 months ago

In Storybook, don't set `wrapped` for reorderable lists and don't show the `wrapped` control

Categories

(Toolkit :: UI Widgets, task, P3)

task

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: tgiles, Assigned: henmofb, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [recomp] [lang=js])

Attachments

(1 file)

In our moz-box-group.stories.mjs file, we want the wrapped control to be conditionally hidden if the box group is a reorderable list. Additionally the wrapped control should not affect the "Reorderable" story if it is somehow set.

To help Mozilla out with this bug, here's the steps:

  1. Comment here on the bug that you want to volunteer to help.
    This will tell others that you're working on the next steps.
  2. Download and build the Firefox source code
    • If you have any problems, please ask on Element/Matrix in the #introduction channel. They're there to help you get started.
  3. Start working on this bug.
    • You will need to update moz-box-group.stories.mjs so that the wrapped argType does not show if the type arg is reorderable. An example of something similar can be seen in panel-list.stories.mjs.
    • To prevent the wrapped arg from affecting the reorderable list story, you may need modify the main Template to not call the wrappedTemplate if the type is reorderable.
      • There may be other ways to solve this issue, so feel free to explore alternatives!
    • If you have any problems with this bug, please comment on this bug and set the needinfo flag for me by using the "Request information from" checkbox and setting the dropdown select to "mentor". Also, you can find me and my teammates on the #reusable-components channel on Element/Matrix most hours of most days.
  4. Build your change with ./mach build and test your change with ./mach storybook. Also check your changes for adherence to our style guidelines by using ./mach lint -o -w all --fix.
  5. Submit the patch (including an automated test, if applicable) for review. Mark me as a reviewer so I'll get an email to come look at your code.
  6. After a series of reviews and changes to your patch, I'll push it to autoland.
  7. ...now you get to think about what kind of bug you'd like to work on next.
    Let me know what you're interested in and I can help you find your next contribution.

Hey Tim,

I'd love to volunteer to help out with this bug!

This would be my first open source contribution, so needless to say I'm brand new to this process, but I have confidence that I can learn quickly.

I have downloaded and built the Firefox source code already on my machine.

I will begin to look more deeply into this bug after posting this comment.

Thank you,
Henry Yeary

Hey Tim,

I went ahead and submitted my patch to phabricator: https://phabricator.services.mozilla.com/D279478, but I forgot to set "r=tgiles" in my amended commit message.

My apologies for the omission, and I hope you are still able to give the patch a look when you have the chance.

Additionally, should I request level 1 commit access? I think that's the only way I can access Firefox's tests to run against, correct?

I also hope I took the right approach here with the changes I made, but if not, it's all a learning experience!

Assignee: nobody → henmofb
Status: NEW → ASSIGNED
Attachment #9538440 - Attachment description: WIP: Bug 2010907 - Removed wrapped property of Reorderable.args and prevented the wrapped arg from affecting the reorderable list story by conditionally calling basicTemplate with no wrapped argif the type arg is reorderable. → WIP: Bug 2010907 - Prevent reorderable story from using 'wrapped'. 'tgiles'
Attachment #9538440 - Attachment description: WIP: Bug 2010907 - Prevent reorderable story from using 'wrapped'. 'tgiles' → Bug 2010907 - Prevent reorderable story from using 'wrapped'. r=tgiles
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
QA Whiteboard: [qa-triage-done-c150/b149]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: