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

refactor(frontend): category dialog #662

Merged
merged 26 commits into from
Feb 5, 2025
Merged

Conversation

yassinedorbozgithub
Copy link
Collaborator

@yassinedorbozgithub yassinedorbozgithub commented Feb 3, 2025

Motivation

The main motivation is to refactor repetitive code snippets.

Fixes #636

Functional interfaces demo + How to test

Refactor.categories.dialogs.webm

Checklist:

  • I have performed a self-review of my own code
  • New and existing unit tests pass locally with my changes

@yassinedorbozgithub yassinedorbozgithub added the enhancement New feature or request label Feb 3, 2025
@yassinedorbozgithub yassinedorbozgithub self-assigned this Feb 3, 2025
@yassinedorbozgithub yassinedorbozgithub changed the title refactor(frontend) : category dialog refactor(frontend): category dialog Feb 3, 2025
@marrouchi marrouchi requested review from IkbelTalebHssan and abdou6666 and removed request for abdou6666 and IkbelTalebHssan February 3, 2025 07:01
frontend/src/app-components/buttons/FormButtons.tsx Outdated Show resolved Hide resolved
frontend/src/app-components/buttons/FormButtons.tsx Outdated Show resolved Hide resolved
frontend/src/components/categories/CategoryForm.tsx Outdated Show resolved Hide resolved
frontend/src/app-components/buttons/FormButtons.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@marrouchi marrouchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's a hook called "useDialog" that is not actually used, right?

frontend/src/app-components/buttons/FormButtons.tsx Outdated Show resolved Hide resolved
frontend/src/app-components/dialogs/FormDialog.tsx Outdated Show resolved Hide resolved
frontend/src/app-components/dialogs/FormDialog.tsx Outdated Show resolved Hide resolved
frontend/src/components/categories/CategoryForm.tsx Outdated Show resolved Hide resolved
frontend/src/components/categories/CategoryFormDialog.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@IkbelTalebHssan IkbelTalebHssan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀 👏

frontend/src/components/categories/CategoryForm.tsx Outdated Show resolved Hide resolved
frontend/src/components/categories/index.tsx Outdated Show resolved Hide resolved
frontend/src/contexts/dialogs.context.tsx Outdated Show resolved Hide resolved
@abdou6666 abdou6666 self-requested a review February 5, 2025 07:33
@abdou6666
Copy link
Member

abdou6666 commented Feb 5, 2025

small bug the text displayed in the delete confirmation dialog should be plural in case of deletion multiple blocks (in the visual editor)
image

@yassinedorbozgithub
Copy link
Collaborator Author

small bug the text displayed in the delete confirmation dialog should be plural in case of deletion multiple blocks (in the visual editor) image

Hi @abdou6666, this PR updates will effect only the categories

@marrouchi marrouchi merged commit 2afb813 into main Feb 5, 2025
5 checks passed
@yassinedorbozgithub yassinedorbozgithub added refactor Restructuring existing source code and removed enhancement New feature or request labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Restructuring existing source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🤔 [ISSUE] - enhance categories dialog logic
4 participants