monitorizare-vot-ong icon indicating copy to clipboard operation
monitorizare-vot-ong copied to clipboard

[UI] [BACKLOG] Prepare playground page with all new UI elements

Open aniri opened this issue 5 years ago • 7 comments

We are starting migrating to a prettier UI for the app.

It would be great to have a demo page will all new input elements and all the setup for their behaviour (checkboxes, text areas, buttons, dropdowns, table, paginated table). This way we can easily re-use them when redesigning the app and keep a consistent style.

The styleguide is available here: https://www.figma.com/file/61NHR7fwmV1Dsv4Pb6F8T7/code4ro_mv_user-management_2018.04.21-(Copy)?node-id=816%3A217

aniri avatar Feb 18 '20 19:02 aniri

@aniri how about a Storybook integration?

It should be as easy as npx sb init Already installing project dependencies.

iamandrewluca avatar Sep 26 '20 12:09 iamandrewluca

@aniri how about a Storybook integration?

@iamandrewluca sounds good!

aniri avatar Sep 26 '20 12:09 aniri

Encountered some problems. We need to move tsconfig.json file one level up in the project folder. I took a look at project history, and it seems this project was started with angular@2, and upgraded till angular@9 Folder structure may not be exactly as it is default now, and storybook cannot be initialized correctly.

I made the fix with moving tsconfig file, I'll make a PR. (Also no more warnings in console)

I would suggest in the future to create a brand new Angular app, and overlay it on top of current app. I did this once in a https://github.com/code4moldova/voluntar-web repository.

iamandrewluca avatar Sep 26 '20 15:09 iamandrewluca

@iamandrewluca hi , i managed to install storybook on this app (it took a little bit of handling but it works) please see this pr/ branch you can contribute there as well

idormenco avatar Oct 05 '20 09:10 idormenco

Ok, then I'll close my PR's in favor of this

iamandrewluca avatar Oct 05 '20 09:10 iamandrewluca

@iamandrewluca we should discuss on code4ro slack on what we have to do further and sync our efforts.

idormenco avatar Oct 05 '20 10:10 idormenco

hey @iamandrewluca @idormenco thanks for your help with this! We'll postpone this part for now and focus first on updating the UI and then on extracting reusable components :smiley:

aniri avatar Oct 06 '20 06:10 aniri