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

feat: Create new component multi step select async #469

Merged

Conversation

themarufsharifi
Copy link
Contributor

Description

Created a new Multi-Step Select Async Component

Related Issues

#94

Hey @salahlalami, please check my changes and give me your feedback, It's just something I got from the description of the issue and created it. please provide me with some details of the project that I need to know for better work, I am interested in having daily PRs

@salahlalami
Copy link
Member

@themarufsharifi , you need to fetch data two times ,
1- first select fetch data auto on page load
2- when user select option from first select ,
3- second select appear and fetch data from server using {id} of option selected from firstSelect

Example GoupeOfCategory select and seconSelect of subcategory

@themarufsharifi
Copy link
Contributor Author

@salahlalami please review and give new feedback or merge it. I am not sure about the props of the component are they compatible with the convention you use in the repo?

I am not familiar with your coding style and convention it takes a little time.

@themarufsharifi themarufsharifi marked this pull request as ready for review September 7, 2023 16:27
@polymahh
Copy link
Collaborator

polymahh commented Sep 7, 2023

hello @themarufsharifi thank you for your contribution
i was trying to test this but with no luck ... i could only see the first options
can you give us screenshots for how it looks

@themarufsharifi
Copy link
Contributor Author

Hello @polymahh, thank you for trying to test, As this was a public component I didn't know where to use it, so I tested the component with fake data, Please help me with the following questions,

  1. Where should I use this component and test it in the app?
  2. From which entity i should fetch the data of the component?

@polymahh
Copy link
Collaborator

polymahh commented Sep 8, 2023

@themarufsharifi i actually dont know where to use this component
maybe @salahlalami can tell us more on that
can you show me how to test it with fake data

@themarufsharifi
Copy link
Contributor Author

@themarufsharifi i actually dont know where to use this component maybe @salahlalami can tell us more on that can you show me how to test it with fake data

Hi @salahlalami, Could you help us use this component and test it, I mean where should I use this?

@polymahh
Copy link
Collaborator

@themarufsharifi if you just want to try it
,maybe we can use it to select a client and
then selecting one of his invoices

@themarufsharifi
Copy link
Contributor Author

Thanks @polymahh for your answer, I am new to this project, so could you give me the entity name to get the clients and their invoices

@polymahh
Copy link
Collaborator

@themarufsharifi "client" entity for clients and "invoice" entity for invoices
maybe you can use these routes
image

@themarufsharifi
Copy link
Contributor Author

themarufsharifi commented Sep 13, 2023

Screen.Recording.2023-09-13.at.11.19.04.AM.mov

@polymahh Thank you so much for your help, You can review it again and test it

const [multiStepSelectValue, setMultiStepSelectValue] = useState({});

<MultiStepSelectAsync
        entityName="invoice"
        subEntityName="items"
        onChange={(value) => setMultiStepSelectValue(value)}
        value={multiStepSelectValue}
        firstSelectValueKey="note"
        firstSelectLabelKey="note"
        secondSelectLabelKey="itemName"
        secondSelectValueKey="itemName"
        style={{ marginTop: 8 }}
      />

@salahlalami
Copy link
Member

Thank you @themarufsharifi

@salahlalami salahlalami merged commit c4693a8 into idurar:dev Sep 19, 2023
1 check passed
salahlalami added a commit that referenced this pull request Sep 20, 2023
* feat: new payment invoice module

* fix edit btn on read page

* fix amount showing balance

* cleaning consoles and unused var

* changing the amount input

* constraint added on tax feild

* create offer frontend feature

* create lead frontend feature

* revert frontend .env

* revert frontend .env

* revert offer model, create offer document

* feature:#548 craeted new email editor page :backend init

* feature:#548 craeted new email editor page :frontend init

* feature:#548 created new email editor page :frontend init

* feature:#548 created new email editor page :changes made

* feature:#548 created new email editor page :changes made

* feat: Create new component multi step select async (#469)

* feat: Create new component multi step select async

* feat: refactor multi-step select  component to get its initial values dynamic

* feat: made the multi step component more flexible

---------

Co-authored-by: Maruf <thesharifi.maruf@gmail.com>

* Feat: Create New Redux Settings Store (#556)

* 💄 Improve UI of Settings Menu

* ⚡️ improve settings performance

* 🔧 Setup Redux Settings

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* move backend to separate folder (#557)

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

---------

Co-authored-by: polymahh <otman.elkantaoui@gmail.com>
Co-authored-by: Ovilash Moitra <96794196+OvilashMoitra@users.noreply.github.com>
Co-authored-by: Erando Putra <ando.putra@live.com>
Co-authored-by: Erando Putra <38315094+Ando22@users.noreply.github.com>
Co-authored-by: ritik kumar <sinharitik589>
Co-authored-by: Maruf Sharifi <116145571+themarufsharifi@users.noreply.github.com>
Co-authored-by: Maruf <thesharifi.maruf@gmail.com>
Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>
salahlalami added a commit that referenced this pull request Sep 25, 2023
* feat: new payment invoice module

* fix edit btn on read page

* fix amount showing balance

* cleaning consoles and unused var

* changing the amount input

* constraint added on tax feild

* create offer frontend feature

* create lead frontend feature

* revert frontend .env

* revert frontend .env

* revert offer model, create offer document

* feature:#548 craeted new email editor page :backend init

* feature:#548 craeted new email editor page :frontend init

* feature:#548 created new email editor page :frontend init

* feature:#548 created new email editor page :changes made

* feature:#548 created new email editor page :changes made

* feat: Create new component multi step select async (#469)

* feat: Create new component multi step select async

* feat: refactor multi-step select  component to get its initial values dynamic

* feat: made the multi step component more flexible

---------

Co-authored-by: Maruf <thesharifi.maruf@gmail.com>

* Feat: Create New Redux Settings Store (#556)

* 💄 Improve UI of Settings Menu

* ⚡️ improve settings performance

* 🔧 Setup Redux Settings

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* move backend to separate folder (#557)

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* update getting started in readme.md w.r.t recent folder structure change (#564)

* 🐛 Fixing redirection to no found (#565)

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* 🚀 Settings Page : user can update (#559)

* 💩 working on Dynamic Form

* 🎨 layout and files Settings improved

* ✨ New Settings Module

* 🗃️ redux updateMany settings done

* 🚀 Settings Module Done

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* 🐛 fix bug caused by settings loading

* 🚨 Fix Settings & persist in Local storage (#569)

* 🚨 Fix Settings & persist in Local storage

* 🔇 remove logs

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

---------

Co-authored-by: polymahh <otman.elkantaoui@gmail.com>
Co-authored-by: Ovilash Moitra <96794196+OvilashMoitra@users.noreply.github.com>
Co-authored-by: Erando Putra <ando.putra@live.com>
Co-authored-by: Erando Putra <38315094+Ando22@users.noreply.github.com>
Co-authored-by: ritik kumar <sinharitik589>
Co-authored-by: Maruf Sharifi <116145571+themarufsharifi@users.noreply.github.com>
Co-authored-by: Maruf <thesharifi.maruf@gmail.com>
Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>
Co-authored-by: sagar-joshi <42578673+sagar-joshi@users.noreply.github.com>
salahlalami added a commit that referenced this pull request Sep 25, 2023
* feat: new payment invoice module

* fix edit btn on read page

* fix amount showing balance

* cleaning consoles and unused var

* changing the amount input

* constraint added on tax feild

* create offer frontend feature

* create lead frontend feature

* revert frontend .env

* revert frontend .env

* revert offer model, create offer document

* feature:#548 craeted new email editor page :backend init

* feature:#548 craeted new email editor page :frontend init

* feature:#548 created new email editor page :frontend init

* feature:#548 created new email editor page :changes made

* feature:#548 created new email editor page :changes made

* feat: Create new component multi step select async (#469)

* feat: Create new component multi step select async

* feat: refactor multi-step select  component to get its initial values dynamic

* feat: made the multi step component more flexible

---------

Co-authored-by: Maruf <thesharifi.maruf@gmail.com>

* Feat: Create New Redux Settings Store (#556)

* 💄 Improve UI of Settings Menu

* ⚡️ improve settings performance

* 🔧 Setup Redux Settings

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* move backend to separate folder (#557)

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* update getting started in readme.md w.r.t recent folder structure change (#564)

* 🐛 Fixing redirection to no found (#565)

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* 🚀 Settings Page : user can update (#559)

* 💩 working on Dynamic Form

* 🎨 layout and files Settings improved

* ✨ New Settings Module

* 🗃️ redux updateMany settings done

* 🚀 Settings Module Done

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* 🐛 fix bug caused by settings loading

* 🚨 Fix Settings & persist in Local storage (#569)

* 🚨 Fix Settings & persist in Local storage

* 🔇 remove logs

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* ⚡️ performance settings

* 💄 fix menuNav minor bug

* 🗃️ fix settings model minor bugs

---------

Co-authored-by: polymahh <otman.elkantaoui@gmail.com>
Co-authored-by: Ovilash Moitra <96794196+OvilashMoitra@users.noreply.github.com>
Co-authored-by: Erando Putra <ando.putra@live.com>
Co-authored-by: Erando Putra <38315094+Ando22@users.noreply.github.com>
Co-authored-by: ritik kumar <sinharitik589>
Co-authored-by: Maruf Sharifi <116145571+themarufsharifi@users.noreply.github.com>
Co-authored-by: Maruf <thesharifi.maruf@gmail.com>
Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>
Co-authored-by: sagar-joshi <42578673+sagar-joshi@users.noreply.github.com>
awesomedev82 pushed a commit to awesomedev82/idurar-erp-crm that referenced this pull request May 20, 2024
* feat: Create new component multi step select async

* feat: refactor multi-step select  component to get its initial values dynamic

* feat: made the multi step component more flexible

---------

Co-authored-by: Maruf <thesharifi.maruf@gmail.com>
awesomedev82 pushed a commit to awesomedev82/idurar-erp-crm that referenced this pull request May 20, 2024
* feat: new payment invoice module

* fix edit btn on read page

* fix amount showing balance

* cleaning consoles and unused var

* changing the amount input

* constraint added on tax feild

* create offer frontend feature

* create lead frontend feature

* revert frontend .env

* revert frontend .env

* revert offer model, create offer document

* feature:idurar#548 craeted new email editor page :backend init

* feature:idurar#548 craeted new email editor page :frontend init

* feature:idurar#548 created new email editor page :frontend init

* feature:idurar#548 created new email editor page :changes made

* feature:idurar#548 created new email editor page :changes made

* feat: Create new component multi step select async (idurar#469)

* feat: Create new component multi step select async

* feat: refactor multi-step select  component to get its initial values dynamic

* feat: made the multi step component more flexible

---------

Co-authored-by: Maruf <thesharifi.maruf@gmail.com>

* Feat: Create New Redux Settings Store (idurar#556)

* 💄 Improve UI of Settings Menu

* ⚡️ improve settings performance

* 🔧 Setup Redux Settings

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* move backend to separate folder (idurar#557)

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

---------

Co-authored-by: polymahh <otman.elkantaoui@gmail.com>
Co-authored-by: Ovilash Moitra <96794196+OvilashMoitra@users.noreply.github.com>
Co-authored-by: Erando Putra <ando.putra@live.com>
Co-authored-by: Erando Putra <38315094+Ando22@users.noreply.github.com>
Co-authored-by: ritik kumar <sinharitik589>
Co-authored-by: Maruf Sharifi <116145571+themarufsharifi@users.noreply.github.com>
Co-authored-by: Maruf <thesharifi.maruf@gmail.com>
Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>
awesomedev82 pushed a commit to awesomedev82/idurar-erp-crm that referenced this pull request May 20, 2024
* feat: new payment invoice module

* fix edit btn on read page

* fix amount showing balance

* cleaning consoles and unused var

* changing the amount input

* constraint added on tax feild

* create offer frontend feature

* create lead frontend feature

* revert frontend .env

* revert frontend .env

* revert offer model, create offer document

* feature:idurar#548 craeted new email editor page :backend init

* feature:idurar#548 craeted new email editor page :frontend init

* feature:idurar#548 created new email editor page :frontend init

* feature:idurar#548 created new email editor page :changes made

* feature:idurar#548 created new email editor page :changes made

* feat: Create new component multi step select async (idurar#469)

* feat: Create new component multi step select async

* feat: refactor multi-step select  component to get its initial values dynamic

* feat: made the multi step component more flexible

---------

Co-authored-by: Maruf <thesharifi.maruf@gmail.com>

* Feat: Create New Redux Settings Store (idurar#556)

* 💄 Improve UI of Settings Menu

* ⚡️ improve settings performance

* 🔧 Setup Redux Settings

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* move backend to separate folder (idurar#557)

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* update getting started in readme.md w.r.t recent folder structure change (idurar#564)

* 🐛 Fixing redirection to no found (idurar#565)

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* 🚀 Settings Page : user can update (idurar#559)

* 💩 working on Dynamic Form

* 🎨 layout and files Settings improved

* ✨ New Settings Module

* 🗃️ redux updateMany settings done

* 🚀 Settings Module Done

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* 🐛 fix bug caused by settings loading

* 🚨 Fix Settings & persist in Local storage (idurar#569)

* 🚨 Fix Settings & persist in Local storage

* 🔇 remove logs

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

---------

Co-authored-by: polymahh <otman.elkantaoui@gmail.com>
Co-authored-by: Ovilash Moitra <96794196+OvilashMoitra@users.noreply.github.com>
Co-authored-by: Erando Putra <ando.putra@live.com>
Co-authored-by: Erando Putra <38315094+Ando22@users.noreply.github.com>
Co-authored-by: ritik kumar <sinharitik589>
Co-authored-by: Maruf Sharifi <116145571+themarufsharifi@users.noreply.github.com>
Co-authored-by: Maruf <thesharifi.maruf@gmail.com>
Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>
Co-authored-by: sagar-joshi <42578673+sagar-joshi@users.noreply.github.com>
awesomedev82 pushed a commit to awesomedev82/idurar-erp-crm that referenced this pull request May 20, 2024
* feat: new payment invoice module

* fix edit btn on read page

* fix amount showing balance

* cleaning consoles and unused var

* changing the amount input

* constraint added on tax feild

* create offer frontend feature

* create lead frontend feature

* revert frontend .env

* revert frontend .env

* revert offer model, create offer document

* feature:idurar#548 craeted new email editor page :backend init

* feature:idurar#548 craeted new email editor page :frontend init

* feature:idurar#548 created new email editor page :frontend init

* feature:idurar#548 created new email editor page :changes made

* feature:idurar#548 created new email editor page :changes made

* feat: Create new component multi step select async (idurar#469)

* feat: Create new component multi step select async

* feat: refactor multi-step select  component to get its initial values dynamic

* feat: made the multi step component more flexible

---------

Co-authored-by: Maruf <thesharifi.maruf@gmail.com>

* Feat: Create New Redux Settings Store (idurar#556)

* 💄 Improve UI of Settings Menu

* ⚡️ improve settings performance

* 🔧 Setup Redux Settings

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* move backend to separate folder (idurar#557)

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* update getting started in readme.md w.r.t recent folder structure change (idurar#564)

* 🐛 Fixing redirection to no found (idurar#565)

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* 🚀 Settings Page : user can update (idurar#559)

* 💩 working on Dynamic Form

* 🎨 layout and files Settings improved

* ✨ New Settings Module

* 🗃️ redux updateMany settings done

* 🚀 Settings Module Done

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* 🐛 fix bug caused by settings loading

* 🚨 Fix Settings & persist in Local storage (idurar#569)

* 🚨 Fix Settings & persist in Local storage

* 🔇 remove logs

---------

Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>

* ⚡️ performance settings

* 💄 fix menuNav minor bug

* 🗃️ fix settings model minor bugs

---------

Co-authored-by: polymahh <otman.elkantaoui@gmail.com>
Co-authored-by: Ovilash Moitra <96794196+OvilashMoitra@users.noreply.github.com>
Co-authored-by: Erando Putra <ando.putra@live.com>
Co-authored-by: Erando Putra <38315094+Ando22@users.noreply.github.com>
Co-authored-by: ritik kumar <sinharitik589>
Co-authored-by: Maruf Sharifi <116145571+themarufsharifi@users.noreply.github.com>
Co-authored-by: Maruf <thesharifi.maruf@gmail.com>
Co-authored-by: Salah Eddine Lalami <50052356+idurar@users.noreply.github.com>
Co-authored-by: sagar-joshi <42578673+sagar-joshi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants