20 Commits

Author SHA1 Message Date
62f99842b3 Remove unused nav items and comment out info property
This commit removes several navigation items from the `navData` array in `nav-config-dashboard.tsx`, including 'Dashboard', 'User', 'Blog', 'Sign in', and 'Not found'. The 'Product' item's `info` property has also been commented out. A commented-out section has been added to preserve the removed items for reference, and `#region` and `#endregion` comments have been introduced for better code organization.
2025-07-03 14:51:35 +02:00
caf507fe1a Remove Iconify import and add Fab component
This commit removes the import statement for the `Iconify` component from `src/components/iconify` in `app.tsx`. It also adds an import for the `Fab` component from the `@mui/material` library.
2025-07-03 14:35:10 +02:00
ba08b3a3d0 Refactor product data structure and imports
- Added import for `Product` type in `_data.ts`.
- Renamed `_products` to `_productsTextile` and defined a new array of product objects.
- Updated `getProductsAsync` in `product-service.ts` to return the new `_products` array from mock data.
2025-07-03 14:33:28 +02:00
b0c6cdcd13 Add filter functionality and async retrieval
Introduce a new `_filters` constant in `_data.ts` that defines various filter objects for invoices and related data. Update `filter-service.ts` to import `_filters` and define the `Filter` type. Implement `getFiltersAsync` function to asynchronously retrieve the filter data.
2025-07-03 14:26:17 +02:00
3fd7553ce8 Refactor Filter type structure
Updated the `Filter` type to include `id` and `label` properties. Removed the `dataType` property and replaced it with a `type` property that utilizes the `Type` type. This enhances the filter's structure by providing unique identification and standardizing data type representation.
2025-07-03 14:16:27 +02:00
947257646d Add Type and Filter type definitions
Introduced a new `Type` definition with five string values: 'BOOLEAN', 'DATE', 'VARCHAR', 'INTEGER', and 'DECIMAL'. Added a `Filter` type that includes a `name` property and a `dataType` property of type `Type`.
2025-07-03 14:08:10 +02:00
ada2e1cb72 Add optional URL to Product type and update Link component
Updated the `Product` type in `product-service.ts` to include an optional `url` property. Modified the `Link` component in `product-item.tsx` to use this new `url` for navigation, defaulting to '/404' if not provided. This enhances product item display by making product names clickable.
2025-07-03 09:14:49 +02:00
786c9e13f0 Rename getProducts to getProductsAsync for clarity
Updated the `getProducts` function in `product-service.ts` to `getProductsAsync` to reflect its asynchronous nature. Adjusted the import in `products-view.tsx` accordingly and modified the `useEffect` hook in `ProductsView` to utilize the new function, ensuring proper handling of asynchronous requests.
2025-07-02 17:07:57 +02:00
0acdfdb1eb Update Product type and enhance ProductItem component
Modified the `Product` type to make `status` and `coverUrl` optional, and added a new `version` property for improved flexibility. Updated the `getProducts` function to reflect these changes. In the `ProductItem` component, added a new `Label` to display the product's version and ensured a default image is used if `coverUrl` is not provided. Updated rendering logic to conditionally show both status and version.
2025-07-02 17:07:06 +02:00
3d49f32175 Make Product properties optional and improve safety
Updated the `Product` type in `product-service.ts` to make `price`, `colors`, and `priceSale` optional. Removed hardcoded values from the `getProducts` function, allowing for more flexible product creation. Enhanced the `ProductItem` component to safely access the `colors` property using optional chaining, defaulting to an empty array if undefined.
2025-07-02 16:11:55 +02:00
3be5cba323 Refactor product data types and update components
Replaced `ProductItemProps` with a new `Product` type in `product-service.ts`, which includes properties like `id`, `name`, `price`, `status`, and `coverUrl`. Updated the `getProducts` function to return `Promise<Product[]>` instead of `Promise<ProductItemProps[]>`. Modified the `ProductItem` component in `product-item.tsx` to accept the new `Product` type. Adjusted `products-view.tsx` to import `Product` and manage the state as `Array<Product>`.
2025-07-02 15:59:34 +02:00
b7c5734a1b Refactor ProductItemProps type definition
Moved `ProductItemProps` from `product-item.tsx` to `product-service.ts` for centralized access. Updated `product-item.tsx` to import the type from the new location. Adjusted imports in `products-view.tsx` to streamline dependencies and reduce redundancy. This improves code organization and maintains a single source of truth for the `ProductItemProps` type.
2025-07-02 15:45:44 +02:00
a155c991c6 Add product fetching functionality to ProductsView
Updated `products-view.tsx` to use `useEffect` for fetching products from an API and manage them with a new state variable. Modified rendering logic to display fetched products instead of a mocked list.

Created/modified `product-service.ts` to include the `getProducts` function, simulating an API call that returns an array of product objects.
2025-07-02 15:38:27 +02:00
b6ffdaf03f Update image source for digital data icon
Modified the `src` attribute of an `<img>` element in `app.tsx` to replace the previous image with a new icon located at "/assets/images/dd-button-icon.webp". This change enhances the visual representation of the application by using a more relevant image.
2025-07-02 11:45:44 +02:00
325b27262e Add floating action button to App component
Updated the `App` component in `app.tsx` to include a new floating action button (Fab) linking to Digital Data. The button now features a transparent background and no box shadow, along with an image for improved visual representation. The `useScrollToTop` function remains unchanged but has a more streamlined implementation.
2025-07-02 11:16:26 +02:00
8771e025bc Standardproduktbild hinzugefügt und mit useState konfiguriert. 2025-07-02 11:05:16 +02:00
6bb1758040 MUI-React-Vorlage hinzufügen 2025-07-01 19:05:55 +02:00
a69339427a Add Material-UI and Emotion dependencies to the project 2025-06-30 13:01:56 +02:00
e0915269f7 feat: initialize dd-hub-react project with Vite and React 2025-06-30 11:54:39 +02:00
fb114384e0 Initial commit 2025-06-30 10:47:25 +02:00