-
Notifications
You must be signed in to change notification settings - Fork 117
wip: refactor everything #268
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
base: master
Are you sure you want to change the base?
Conversation
|
Preview is ready! 🚀 You can view it here: https://valhalla-app-tests.gis-ops.com/268 |
|
This looks amazing @mustaphaturhan! I just had a quick look and the new UI looks a lot cleaner already. I'm not going through the entire code, but I see that you broke up that huge map component, which was long overdue. As I said before, I like the idea of using shdcn which just pulls the components into the repo, this may help us maintain the UI longer into the future. Happy to merge this once you've gone through the remaining TODO's :-) |
- Removed `@emotion/react` and `@emotion/styled` from dependencies. - Updated versions for several packages including `axios`, `date-fns`, `lucide-react`, `maplibre-gl`, `tailwind-merge`, and `tailwindcss`. - Deleted unused components: `Checkbox` and `CustomSlider`. - Introduced new UI components: `CheckboxSetting`, `SelectSetting`, and updated `SliderSetting` for better functionality. - Refactored `SettingsPanel` to utilize new UI components and improve settings management.
- Changed the application name from `converter-demo-app` to `valhalla-web` and updated the version to `1.0.0` in `package.json`. - Refactored settings-related imports and variables in `common-actions.ts`, `settings-panel.tsx`, and `settings-options.ts` for consistency and clarity. - Introduced new types and structured settings data for better organization and maintainability.
- refactored the structure of components by moving them into a more organized directory structure under `src/components`.
…t versions to fix vulnerable gh-pages package
33a6e3d to
3e41379
Compare
… `useLayoutEffect`, and update eslint configuration.
… remove unused `pairwise` utility
|
I think I am coming to end but can you test the app again? @chrstnbwnkl @nilsnolde |
…g to info popup, and refine popup css
Related with #256.
🛠️ Fixes Issue
react-beautiful-dndto@hello-pangea/dndsincereact-beautiful-dndis not supporting anymore. In the future, we will migrate to better dnd library but@hello-pangea/dndis full compatible withreact-beautiful-dndrenderwithcreateRootsince it is deprecated.semantic-ui-reactand starts to usetailwindcsssemantic-ui-reactis very outdated library and we have better alternatives at the moment. Instead of it, we are starting to use our design system library that created with shadcn. So we will be able to freely change everything.emotionnow.mapStateToPropsin favor of react hooks. UseuseSelectoranduseDispatchinstead of it. However, it is not finalized yet. We may completely deprecate it in future updates.wpsexist in the URL.valhalla-weband makes version 1.0.0componentsfolder for better, organized structure.envfile.This pull request is still work in progress but I wanted to create it to get some opinions from people. So if you have some recommendations or objections, please let me know 🙏🏻.
Todos
tanstack/queryfor request for better caching support. For example, reverse geocode responses aren't changing a lot. So we can cache the values.Follow-ups
📄 Note to reviewers
Good luck. Sorry for this huge pull request :(
📷 Screenshots