Files
ERP_Distribution/distribution_fe
Kalana B. Thilakarathna 68b34b3fc3 Refactor store CRUD to pages, add map-based location picker
Refactored store creation and editing from modal sheets to dedicated pages (`/stores/new`, `/stores/[id]/edit`), and added a new store detail view page (`/stores/[id]`). Introduced a `LocationPicker` component using `react-leaflet` for map-based location selection, replacing manual latitude/longitude inputs. Updated navigation in the store list to use these pages. Improved UI and user feedback for store forms and details. Updated backend API and form logic to match the new flow. Added `leaflet`, `react-leaflet`, and types as dependencies. Temporarily relaxed store scope checks in `StoreService.cs`. Updated table actions and types for the new workflow.
2026-09-01 10:53:55 +05:30
..
2026-08-31 13:00:33 +05:30
2026-08-31 13:00:33 +05:30
2026-08-25 16:20:50 +05:30
2026-08-31 13:00:33 +05:30
2026-08-25 16:20:50 +05:30
2026-08-31 13:00:33 +05:30
2026-08-25 16:20:50 +05:30
2026-08-25 16:20:50 +05:30
2026-08-25 16:20:50 +05:30
2026-08-25 16:20:50 +05:30
2026-08-25 16:20:50 +05:30

Next.js template

This is a Next.js template with shadcn/ui.

Adding components

To add components to your app, run the following command:

npx shadcn@latest add button

This will place the ui components in the components directory.

Using components

To use the components in your app, import them as follows:

import { Button } from "@/components/ui/button";