Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic modals and manage with query params instead of state #347

Open
IdoPeled8 opened this issue Dec 23, 2023 · 7 comments
Open

Generic modals and manage with query params instead of state #347

IdoPeled8 opened this issue Dec 23, 2023 · 7 comments
Assignees
Labels
frontend Changes related to traffic-dashboard Fun A fun feature

Comments

@IdoPeled8
Copy link
Contributor

there is a lot of edit\delete\add modals that are the same.
1 - change all of them to use the new generic modal.
2 - make the modals work using query params instead of state for better navigation

@IdoPeled8 IdoPeled8 added Fun A fun feature frontend Changes related to traffic-dashboard labels Dec 23, 2023
@IdoPeled8 IdoPeled8 self-assigned this Dec 23, 2023
@adetyaz
Copy link

adetyaz commented Dec 25, 2023

@IdoPeled8 Can I work on this?

@adetyaz
Copy link

adetyaz commented Dec 27, 2023

hey @IdoPeled8
No one got back to me about getting the project running

@adetyaz
Copy link

adetyaz commented Jan 3, 2024

Hey
@IdoPeled8 I have a question?

Do I just create the modal with placeholder data that shows it works or do I need to go further and add one of the available features as an example

@IdoPeled8
Copy link
Contributor Author

Hi,

We have a GenericEditingModal component that currently only the workspaces are using.
You need to make all the other places use this component instead of creating a new modal for each component that needs it. This is particularly for simple modals like edit, add, delete with only one input.

For a start, add it in one place where it's needed and create a pull request so the maintainers can review it. Once confirmed, we can proceed to implement it everywhere.

I have added a photo of the generic component and a photo of the component that is currently using the modal.

Thanks,
image
image

@adetyaz
Copy link

adetyaz commented Jan 4, 2024

To clarify, I don't need to create another modal from scratch right(which I did initially before asking). I just need to implement this for other usecases?

@IdoPeled8
Copy link
Contributor Author

To clarify, I don't need to create another modal from scratch right(which I did initially before asking). I just need to implement this for other usecases?

Yes use the existing one,
But if you think you made a better modal than the existing one you can use him

@adetyaz
Copy link

adetyaz commented Jan 14, 2024

I'll be using the existing one, the modal is created is quite similar and the existing one is a touch more better. I

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Changes related to traffic-dashboard Fun A fun feature
Projects
None yet
Development

No branches or pull requests

2 participants