55 Commits

Author SHA1 Message Date
49452998cb Refactor: Dokumentenabfragefunktionen hinzufügen und Mock-Daten importieren
- _documents aus dem Mock-Modul importieren
 - DocQuery-Typ für optionale Abfrageparameter hinzufügen
 - Implementierung der Funktionen getDocuments, getDocumentById und getDocumentByName
 - Beibehaltung der ursprünglichen Doc-Typ-Definition für Konsistenz
2025-07-09 13:36:54 +02:00
0009ceae81 Create fake data for documents 2025-07-09 13:18:51 +02:00
480393743f feat: add sample document data array with typed document structure
- Define Doc type representing documents with id, name, and binary data
 - Export sample documents array with example PDF, DOCX, and XLSX files
 - Use Uint8Array to simulate file binary content in-memory
2025-07-09 11:50:05 +02:00
e47bb4f35c refactor(getFiltersAsync): umbenannt in getAttributesAsync 2025-07-09 11:33:30 +02:00
3b2dba5317 refactor(FilterCreateDto): umbenannt in AttributeCreateDto 2025-07-09 11:30:29 +02:00
48be96a28b refactor(filter-service.ts): umbenannt in attribute-service.ts 2025-07-09 11:28:41 +02:00
15fe1dfec6 fix(create-filter-modal): Verhindert unkontrollierte bis kontrollierte Eingabewarnungen in CreateFilterModal 2025-07-09 11:10:47 +02:00
d7e3e500ab fix: Zurücksetzen des Formularstatus beim Schließen von CreateFilterModal
- Funktion `closeReset` hinzugefügt, um `name`, `label`, und `selectedType` beim Schließen des Modals zurückzusetzen
- Stellt sicher, dass das Formular nach der Filtererstellung oder dem manuellen Schließen gelöscht wird
- Modaler `onClose` Handler und `createFiltersAsync` Callback aktualisiert, um `closeReset` zu verwenden
2025-07-09 11:05:07 +02:00
fdd093b8aa feat(ui): Verbesserung von CreateFilterModal mit Validierung und dynamischer Filtererstellung
- Validierung für `name` und `type` vor der Filtererstellung hinzugefügt
- Verbinden der Felder `label`, `name` und `type` mit dem Formularstatus
- Hardcodierte Werte im Aufruf `createFiltersAsync` durch Benutzereingaben ersetzt
- Einführung der Funktion `tryCreateFilter` für eine bessere Struktur
- Falsche Verwendung von `Name` und `Label` behoben
2025-07-09 10:38:13 +02:00
4056719b50 refactor(create-filter-modal): add useStates to name and label text-fields 2025-07-09 01:29:31 +02:00
dbea5cbeec refactor(create-filter-model): add combobox for types and text fields for label and name 2025-07-09 01:27:35 +02:00
ae5c9908bb feat(filter-service): add create method.
- create FilterCreateDto
2025-07-09 00:17:27 +02:00
89adc16a0e feat(create-filter-model): Erstellen ohne Komponente.
- Use-States hinzufügen
2025-07-08 23:44:01 +02:00
f340130f89 refactor(doc-search-view): Gitter zu Filtern hinzufügen 2025-07-07 13:51:02 +02:00
593f4deb3e refactor(doc-search-view): Hinzufügen eines Fehlerprotokolls unter der Standard-Fallanweisung. 2025-07-07 13:25:17 +02:00
042a1a76c3 feat(date-filter): Hinzufügen von Zeit- und DateTime-Filtern 2025-07-07 13:24:10 +02:00
cf67c387c6 refactor(Typ): Hinzufügen der Typen ‚TIME‘ und ‚DATETIME‘.
- Hinzufügen von Mock-Daten für neue Typen
2025-07-07 11:17:51 +02:00
b8e2100331 unnötige useState und useEffect entfernen 2025-07-07 11:07:51 +02:00
66ab925b5d feat(date-filter): Hinzufügen, um DATE-Datentyp zu behandeln 2025-07-07 11:01:38 +02:00
29e033b8de feat(TextFilter): Hinzufügen zur Behandlung von VARCHAR 2025-07-07 10:35:07 +02:00
0eef478a41 feat(filters): Eingabevalidierung für IntFilter hinzufügen, um nur numerische Werte zuzulassen 2025-07-07 10:01:15 +02:00
55ba6031eb feat(num-filter.tsx): created to handle numerical inputs 2025-07-07 09:43:19 +02:00
21d47b1f90 Remove unused import and update BoolFilterProps
Removed the import statement for `FormControlLabel` from `bool-filter.tsx`. Also, eliminated the optional `onClick` property from the `BoolFilterProps` type definition.
2025-07-04 14:29:10 +02:00
9b831c86d4 Refactor DocSearchView to use BoolFilter component
Introduced a new `BoolFilter` component to encapsulate the checkbox and switch functionality previously handled in `DocSearchView`. This refactor improves code organization and reusability. Removed unnecessary imports from `doc-search-view.tsx` and added imports for the new component in `bool-filter.tsx`.
2025-07-04 14:01:22 +02:00
8893b96e9b Update MUI packages and enhance DocSearchView component
- Added `@mui/icons-material` package (v^7.2.0).
- Updated several MUI packages to version 7.2.0.
- Updated `@babel/runtime` to version 7.27.6.
- Updated `@emotion/cache` to version 11.14.0.
- Updated `react-is` to version ^19.1.0.
- Modified `DocSearchView` to use a `Checkbox` with icons for boolean filters.
2025-07-04 13:30:53 +02:00
673efe51ed Add filter state management and UI updates
Introduce state management for disabled filter states in the DocSearchView component. Add Material-UI components for switches and update rendering logic to conditionally display enabled/disabled states. Adjust handling of VARCHAR filters to ensure correct TextField IDs.
2025-07-04 12:50:23 +02:00
b06595e8d8 Refactor filter rendering in DocSearchView component
Updated the rendering logic for filters to use a switch statement, allowing for flexible handling of different filter types. The layout remains unchanged, but the logic for rendering each filter type has been enhanced for future extensibility.
2025-07-04 10:39:18 +02:00
05c7b49bbc Refactor DocSearchView layout and update button text
- Added a new <Box> component to wrap <DocSearch> and <DocSort> for improved styling.
- Changed button text from "New post" to "New filter".
- Removed the old <Box> structure and integrated its contents into the new layout.
2025-07-04 10:11:23 +02:00
b107273db3 Update filter type and refactor DocSearchView component
- Made the `label` property in the `Filter` type optional for greater flexibility.
- Added `TextField` import in `doc-search-view.tsx` for user input.
- Removed `DocSearch` and `DocSort` components, replacing them with a `TextField` that uses `filter.label` or `filter.type` as its label.
2025-07-04 10:07:55 +02:00
5f6eda0fc7 Enhance DocSearchView with filters and sorting options
Updated the `DocSearchView` component to initialize the `filters` state with an empty array. Added a new section to render filters, mapping over the `filters` array to display `DocSearch` and `DocSort` components. This improves the user interface by enabling sorting and filtering of displayed posts.
2025-07-04 09:36:36 +02:00
f8be0b0b5f Add filters state and fetch logic in DocSearchView
Updated imports to include useEffect for side effects.
Introduced a new state variable `filters` to manage Filter objects.
Implemented useEffect to asynchronously fetch filters using getFiltersAsync.
2025-07-04 09:13:26 +02:00
a73ff5b9a4 Update Document Search icon and add SVG asset
Changed the icon for the 'Document Search' entry in
`nav-config-dashboard.tsx` from `ic-cart` to `ic-doc-search`.
Added a new SVG file `ic-doc-search.svg` containing the
markup for the updated icon.
2025-07-03 17:07:59 +02:00
1a9a683b25 Rebrand project and add Document Search feature
Updated project name and version in package-lock.json.
Modified navigation to include a new 'Document Search' item.
Introduced lazy-loaded DocumentSearch component in sections.tsx.
Created doc-search.tsx with a DocSearchView for displaying posts.
2025-07-03 16:59:54 +02:00
e8a96dd6c4 Add document management features and components
Introduces `DocItem`, `DocSearch`, and `DocSort` components for displaying, searching, and sorting documents. The `DocSearchView` component integrates these functionalities, providing a user interface for document management, including a button to create new posts. Updates `index.ts` to export the new `DocSearchView` component.
2025-07-03 16:13:45 +02:00
e9aa405464 Update default route to ProductsPage in sections.tsx
Replaced the DashboardPage component with ProductsPage
for the default index route in the routesSection array.
2025-07-03 14:57:59 +02:00
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