reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Wrapping some extra components inside of the Context Menu Component

Open tgberkeley opened this issue 1 year ago β€’ 8 comments

For the context menu we have not wrapped some of the components.

We wrap the context menu here in the code: https://github.com/reflex-dev/reflex/blob/main/reflex/components/radix/themes/components/context_menu.py and we want to add these other sub-components mentioned above with all their props and event handlers.

tgberkeley avatar Oct 29 '24 18:10 tgberkeley

Hey @tgberkeley! I would love to contribute to Reflex, the link that the linear bot posted is not opening up for me though. Is this task still available?

LucasOcampos avatar Nov 29 '24 14:11 LucasOcampos

The link posted by the linear bot doesn't have additional info, it's just there for tracking in our private linear. Since the task is still open, it's available yes.

Lendemor avatar Nov 29 '24 17:11 Lendemor

Awesome, if you could set me as assignee for this task please, I'd appreciate it!

LucasOcampos avatar Nov 29 '24 19:11 LucasOcampos

Hi @tgberkeley and @Lendemor if possible I would love to be assigned to this issue. I have got the project locally working and have an idea of how to wrap these components. If this is available, please assign it to me.

KarinaNi avatar Dec 01 '24 22:12 KarinaNi

Hi @tgberkeley and @KarinaNi, I would love to collaborate with you two and take over the CheckboxItem part.

vydpnguyen avatar Dec 03 '24 17:12 vydpnguyen

Updated the initial post with a checklist for the missing components. @LucasOcampos @vydpnguyen @KarinaNi feel free to pick up any of the components in there and submit them.

The PR for the checkbox seems to works, we just need the others now πŸ‘

Lendemor avatar Dec 06 '24 14:12 Lendemor

Hi, I can do radiogroup and radio item.

KarinaNi avatar Dec 06 '24 16:12 KarinaNi

Hi @KarinaNi, how are the RadioGroup and RadioItem going for you? I've finished the CheckBoxItem part.

vydpnguyen avatar Dec 14 '24 01:12 vydpnguyen

Hi, I shall try to finish it by today. I added all items so ill just commit the radio ones so give me a bit of time so i finish that

KarinaNi avatar Dec 14 '24 10:12 KarinaNi

update: finished making the changes in code. Trying to get all success in the tests

poetry run ruff check .
poetry run pyright reflex tests
find reflex tests -name "*.py" -not -path reflex/reflex.py | xargs poetry run darglint

currently getting errors related to navbar, table etc in pyright reflex tests

KarinaNi avatar Dec 15 '24 15:12 KarinaNi

update: finished making the changes in code. Trying to get all success in the tests

poetry run ruff check .
poetry run pyright reflex tests
find reflex tests -name "*.py" -not -path reflex/reflex.py | xargs poetry run darglint

currently getting errors related to navbar, table etc in pyright reflex tests

You should pip install pre-commit then pre-commit install If you are just adding new components it should not break any of the existing tests.

Lendemor avatar Dec 19 '24 13:12 Lendemor

After doing that, I seem to get more errors than before (422errors, 2 warning) Python version - 3.11.0

any idea what could be causing it and how to fix it?

KarinaNi avatar Dec 21 '24 19:12 KarinaNi

Hi, any update on this would be highly appreciate. I really like this project and would love to contribute more

KarinaNi avatar Jan 23 '25 00:01 KarinaNi

If you get so many errors it's possible you have a version of pyright that is too recent compared to the one being used on Reflex.

We're working on updating to latest pyright so soon it shouldn't be a problem anymore.

Lendemor avatar Jan 23 '25 17:01 Lendemor

Also, even if it's a work in progress, feel free to open a PR/ Draft PR so we can actually look at the change you made and test them locally, it'll be easier for any team member to help you πŸ‘

Lendemor avatar Jan 23 '25 17:01 Lendemor

@Lendemor i have created a pull request Wrapping extra components inside of the Context Menu Component #4831. Do let me know any additional changes required .

sumanth-dhanya avatar Feb 17 '25 12:02 sumanth-dhanya