Skip to content
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

Clean Architecture - Empty project folder + Test folder #1

Merged
merged 5 commits into from
Oct 18, 2022
Merged

Conversation

Ladam0203
Copy link
Owner

I have added the base project folders to the backend folder, as a base for the Clean architecture.

@Ladam0203 Ladam0203 requested a review from StAl3x October 18, 2022 20:51
Copy link
Collaborator

@StAl3x StAl3x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good architecture looks clean

@StAl3x StAl3x merged commit 3045723 into dev Oct 18, 2022
@Ladam0203 Ladam0203 deleted the CleanBase branch October 18, 2022 21:03
@Ladam0203 Ladam0203 changed the title Clean base Clean Architecture - Empty project folder + Test folder Oct 18, 2022
Ladam0203 pushed a commit that referenced this pull request Oct 31, 2022
* Db context, Item,Unit entities

* regions names changed

onmodel region deleted (redundant)
TableMapping => Database sets

* Todo removed from dbcontext

* guess it is fixed

* final fix

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
ChristianHesberg added a commit that referenced this pull request Oct 31, 2022
ChristianHesberg added a commit that referenced this pull request Oct 31, 2022
This reverts commit ec964e9, reversing
changes made to 1c27772.
Ladam0203 added a commit that referenced this pull request Oct 31, 2022
Ladam0203 added a commit that referenced this pull request Oct 31, 2022
Ladam0203 added a commit that referenced this pull request Oct 31, 2022
RomanMeasv added a commit that referenced this pull request Nov 12, 2022
* Set up inetfaces, empty classes and dependecy injection for the Item entity

* Added tests for ItemRepository and ItemService

* Update FATEL_Backend/Application/Interfaces/IItemRepository.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Resolved int to string in Service and Repo method paramters at ID

* RenamedDbContext to AppDbContext and corrected Program.cs

* #1.2 (#9)

* Db context, Item,Unit entities

* regions names changed

onmodel region deleted (redundant)
TableMapping => Database sets

* Todo removed from dbcontext

* guess it is fixed

* final fix

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>

* Moved DbContext files to AppDbContext

* Renamed it in the paramter as well

* Added method back for mocking

* Added implementation and test

* Made the Items have details so the tests are more sure

* Added comments

* Read Item methods with test

* clean up

* Renamed DbContext to AppDbContext in test

* Removed not working test

* The fields in the Item should be a property

* Removed unused constructor in AppDbContext

* Removed unnecessary parenthesis

* Read and ReadAll method in API

* Added Read and ReadAll methods to API (tested in DB as well)

* Update FATEL_Backend/API/Controllers/ItemController.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Added the empty AppDbContext constructor back for mocking

* Added error handling in api and changed service to readonly

* Item delete implemented in repo up to controller with tests

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Update item repo - edit item dto

update item repo complete with test

* update item service test written

* Item service test not working

* Update test works fine

* clean up

* deleted postDtoValidation tests

* Clean up #2 keeping in mind the other branches

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* final touch

* Added TODO

* Added update method in API

* Added TODOs

* Added TODOs

* Updated TODOs

* Added Exception messages and corrected update method

* Pasted PostItemDTO validator into PutItemDTO validator (for now)

* Updated the test for the ItemRepo's update method test

* Made a separet Seed method

* Added a more realistic Seed method

* Rebuild and Seed always applies to Item repo. Has to be removed later

* Always seed and rebuild only applies to development bulild

* Changed the comments

* Fatel frontend (#16)

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Base frontend for FATEL + Item fetching test

* Did tests, API Create and so on, only validator has to be done

* Base frontend for FATEL + Item fetching test

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Can fetch all items from API

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* yes

* final touch

* WIP

* Base frontend for FATEL + Item fetching test

* Can fetch all items from API

* WIP

* Inventory: Items with headlines in a grid

* Squashed commit of the following:

commit 92ec26b
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 10:46:37 2022 +0100

    Changed the comments

commit cd8eae2
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:54:08 2022 +0100

    Always seed and rebuild only applies to development bulild

commit 983f966
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:50:12 2022 +0100

    Rebuild and Seed always applies to Item repo. Has to be removed later

commit 4e7e903
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:49:22 2022 +0100

    Added a more realistic Seed method

commit f323d14
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 11:05:16 2022 +0100

    Made a separet Seed method

commit 0652186
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:43:25 2022 +0100

    Updated the test for the ItemRepo's update method test

commit d219222
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:42:13 2022 +0100

    Pasted PostItemDTO validator into PutItemDTO validator (for now)

commit bef71a6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:40:25 2022 +0100

    Added Exception messages and corrected update method

commit 9a4dce6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:23:08 2022 +0100

    Updated TODOs

commit 51ed0aa
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:17:03 2022 +0100

    Added TODOs

commit b9bfee8
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:19:00 2022 +0100

    Added TODOs

commit 78663e6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:15:22 2022 +0100

    Added update method in API

commit 25266bb
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:07:06 2022 +0100

    Added TODO

commit 0ecd8b3
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 14:04:25 2022 +0100

    final touch

commit 6b1224a
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:44:27 2022 +0100

    Added <Item> to the Create method's ActionResult type

commit b0d5ff2
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:41:28 2022 +0100

    Added route to Create in ItemController

commit d7a2c62
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:38:02 2022 +0100

    Tested and corrected the PostItemDTO Validator

commit 2c9a80e
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit f635241
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit 7a9cd53
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 671949a
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ade0fc3
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 16:15:03 2022 +0100

    Clean up #2 keeping in mind the other branches

commit c6b1107
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 16:02:56 2022 +0100

    deleted postDtoValidation tests

commit c52c60e
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:59:28 2022 +0100

    clean up

commit 2f5653c
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 15:32:40 2022 +0100

    Update test works fine

commit 0299e18
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:14:14 2022 +0100

    Item service test not working

commit 9d0bbbd
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 12:01:57 2022 +0100

    update item service test written

commit f933f7b
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 11:09:35 2022 +0100

    Update item repo - edit item dto

    update item repo complete with test

commit 0c2bae7
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 12:01:56 2022 +0100

    Working on PostItemDTOValidation - 2 tests not passing

commit 78d41d7
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 11:09:41 2022 +0100

    Finished postItemDTOValidator and first test for it

commit 74cbc7a
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit bb1fa4d
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit b3c28ca
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 23:11:45 2022 +0100

    just a line for delete plus added mapper into program.cs

commit f9b9ab8
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ded755a
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 348704f
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 10:20:34 2022 +0100

    Item delete implemented in repo up to controller with tests

* Added Cors to backend

* Added gitignore

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Entry operations created

-Entry entity
-EntryTable in DbContext
-Entry repository with create and read all method(includes tests)
-Entry service with create and read all methods (includes tests)
-PostEntryDTO
-PostEntryDTO validator created but with no implementation
-Create test in ItemService and ItemRepository

* entry controller

* Removed unnecassry create method from EntryService

* Update IEntryRepository.cs

* Update EntryRepository.cs

* Update EntryRepositoryTest.cs

* Create angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Movement BE, Mcontroller, Mrepo, Mservice

* Movement Record "implemented" error: Reference not set to instance of an object

* Recording movement works with pieces

* ReadTotalQuantityOf() workd also for Meter and SquareMeter items

* Added Movement validation and checking whether the object stored is same as in the request

* Fixed validator issue

* Shortened code in ItemRepository

* Added extra validation for Movement

* The general idea for recording movement and recording initial movement

This is broken code, heavily WIP

* added repositoryFacade

-updated repository facade to match itemRepository
-changed tests to reflect changes in item service
- cleaned up putItemDTO

* Update angular.yml

* RepoFacade is used in EntryService

* Cleanup for merge into dev

Removed MovementService and Repo
Removed Registering the separet Repos, only the facade gets registered

* Fatel frontend item crud (#29)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* No log is made if the "Item to be created"'s quantity is 0

* Test deleteandREcord and deleting item with non zero quantity

* Update angular.yml

* Added MovementValidator test

* Updated package lock

* Added base for PutItemDTOValidatorTest

* Added tests for PutItemDTO

* Removed test cases so they are correct on the CI machine lol

\r\n or \n bruh

* Delete angular.yml

* No duplicate item creation based on properties (#34)

* Added logic to check whether item with the same properties already exists

* Added TODO

* Update angular.yml

* Delete angular.yml

* Update ItemRepository.cs

Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>

* Fatel frontend item crud (#35)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* fix: Table width, display of unit column

* Added headlines in category accordions

* UI style changes

* UI style changes (looks pretty rn ngl)

* Added "New Item" button

* Add Item WIP

* UI styling changes

* UI styling

* created add item component

* create binding between addItemComponent and Inventory component

output field from add item component to inventory component

* from observable<item[]> to promise<Item[]> on readall method

* hotfixed action container

* New categorisation

* mat snack bar implemented, resetting fields on create item

* styling changes

* Added filter pipe

* search field WIP

* search WIP

* Update inventory.component.html

* broken validation

* sidenav ui changes

* sidenav ui styling

* Update mat-sidenav-container.component.css

* minor styling changes

* transition style change

* Added requiredIfMatches validator

* Update requiredIfMatches.ts

* Added requiredIfMatches validator

* reqiredIfMatches, simpler approach

* using form control instead of ngmodel

* closing add-item-component

* validation work in progress

* edit button in table rows

* Solved length and width validation problem

* Update add-item.component.ts

* removed actions column from tables :(

* add-item-button disabled state styling

* Added live form validation to add item component fields

* Removed unused imports

* Added placeholder and error message for Unit

* search field styling

* disabling and styling add item button

Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Update category.ts

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>
Co-authored-by: StAl3x <90683186+StAl3x@users.noreply.github.com>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>
ChristianHesberg added a commit that referenced this pull request Nov 26, 2022
* Set up inetfaces, empty classes and dependecy injection for the Item entity

* Added tests for ItemRepository and ItemService

* Update FATEL_Backend/Application/Interfaces/IItemRepository.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Resolved int to string in Service and Repo method paramters at ID

* RenamedDbContext to AppDbContext and corrected Program.cs

* #1.2 (#9)

* Db context, Item,Unit entities

* regions names changed

onmodel region deleted (redundant)
TableMapping => Database sets

* Todo removed from dbcontext

* guess it is fixed

* final fix

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>

* Moved DbContext files to AppDbContext

* Renamed it in the paramter as well

* Added method back for mocking

* Added implementation and test

* Made the Items have details so the tests are more sure

* Added comments

* Read Item methods with test

* clean up

* Renamed DbContext to AppDbContext in test

* Removed not working test

* The fields in the Item should be a property

* Removed unused constructor in AppDbContext

* Removed unnecessary parenthesis

* Read and ReadAll method in API

* Added Read and ReadAll methods to API (tested in DB as well)

* Update FATEL_Backend/API/Controllers/ItemController.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Added the empty AppDbContext constructor back for mocking

* Added error handling in api and changed service to readonly

* Item delete implemented in repo up to controller with tests

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Update item repo - edit item dto

update item repo complete with test

* update item service test written

* Item service test not working

* Update test works fine

* clean up

* deleted postDtoValidation tests

* Clean up #2 keeping in mind the other branches

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* final touch

* Added TODO

* Added update method in API

* Added TODOs

* Added TODOs

* Updated TODOs

* Added Exception messages and corrected update method

* Pasted PostItemDTO validator into PutItemDTO validator (for now)

* Updated the test for the ItemRepo's update method test

* Made a separet Seed method

* Added a more realistic Seed method

* Rebuild and Seed always applies to Item repo. Has to be removed later

* Always seed and rebuild only applies to development bulild

* Changed the comments

* Fatel frontend (#16)

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Base frontend for FATEL + Item fetching test

* Did tests, API Create and so on, only validator has to be done

* Base frontend for FATEL + Item fetching test

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Can fetch all items from API

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* yes

* final touch

* WIP

* Base frontend for FATEL + Item fetching test

* Can fetch all items from API

* WIP

* Inventory: Items with headlines in a grid

* Squashed commit of the following:

commit 92ec26b
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 10:46:37 2022 +0100

    Changed the comments

commit cd8eae2
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:54:08 2022 +0100

    Always seed and rebuild only applies to development bulild

commit 983f966
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:50:12 2022 +0100

    Rebuild and Seed always applies to Item repo. Has to be removed later

commit 4e7e903
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:49:22 2022 +0100

    Added a more realistic Seed method

commit f323d14
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 11:05:16 2022 +0100

    Made a separet Seed method

commit 0652186
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:43:25 2022 +0100

    Updated the test for the ItemRepo's update method test

commit d219222
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:42:13 2022 +0100

    Pasted PostItemDTO validator into PutItemDTO validator (for now)

commit bef71a6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:40:25 2022 +0100

    Added Exception messages and corrected update method

commit 9a4dce6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:23:08 2022 +0100

    Updated TODOs

commit 51ed0aa
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:17:03 2022 +0100

    Added TODOs

commit b9bfee8
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:19:00 2022 +0100

    Added TODOs

commit 78663e6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:15:22 2022 +0100

    Added update method in API

commit 25266bb
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:07:06 2022 +0100

    Added TODO

commit 0ecd8b3
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 14:04:25 2022 +0100

    final touch

commit 6b1224a
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:44:27 2022 +0100

    Added <Item> to the Create method's ActionResult type

commit b0d5ff2
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:41:28 2022 +0100

    Added route to Create in ItemController

commit d7a2c62
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:38:02 2022 +0100

    Tested and corrected the PostItemDTO Validator

commit 2c9a80e
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit f635241
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit 7a9cd53
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 671949a
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ade0fc3
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 16:15:03 2022 +0100

    Clean up #2 keeping in mind the other branches

commit c6b1107
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 16:02:56 2022 +0100

    deleted postDtoValidation tests

commit c52c60e
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:59:28 2022 +0100

    clean up

commit 2f5653c
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 15:32:40 2022 +0100

    Update test works fine

commit 0299e18
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:14:14 2022 +0100

    Item service test not working

commit 9d0bbbd
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 12:01:57 2022 +0100

    update item service test written

commit f933f7b
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 11:09:35 2022 +0100

    Update item repo - edit item dto

    update item repo complete with test

commit 0c2bae7
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 12:01:56 2022 +0100

    Working on PostItemDTOValidation - 2 tests not passing

commit 78d41d7
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 11:09:41 2022 +0100

    Finished postItemDTOValidator and first test for it

commit 74cbc7a
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit bb1fa4d
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit b3c28ca
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 23:11:45 2022 +0100

    just a line for delete plus added mapper into program.cs

commit f9b9ab8
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ded755a
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 348704f
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 10:20:34 2022 +0100

    Item delete implemented in repo up to controller with tests

* Added Cors to backend

* Added gitignore

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Entry operations created

-Entry entity
-EntryTable in DbContext
-Entry repository with create and read all method(includes tests)
-Entry service with create and read all methods (includes tests)
-PostEntryDTO
-PostEntryDTO validator created but with no implementation
-Create test in ItemService and ItemRepository

* entry controller

* Removed unnecassry create method from EntryService

* Update IEntryRepository.cs

* Update EntryRepository.cs

* Update EntryRepositoryTest.cs

* Create angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Movement BE, Mcontroller, Mrepo, Mservice

* Movement Record "implemented" error: Reference not set to instance of an object

* Recording movement works with pieces

* ReadTotalQuantityOf() workd also for Meter and SquareMeter items

* Added Movement validation and checking whether the object stored is same as in the request

* Fixed validator issue

* Shortened code in ItemRepository

* Added extra validation for Movement

* The general idea for recording movement and recording initial movement

This is broken code, heavily WIP

* added repositoryFacade

-updated repository facade to match itemRepository
-changed tests to reflect changes in item service
- cleaned up putItemDTO

* Update angular.yml

* RepoFacade is used in EntryService

* Cleanup for merge into dev

Removed MovementService and Repo
Removed Registering the separet Repos, only the facade gets registered

* Fatel frontend item crud (#29)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* No log is made if the "Item to be created"'s quantity is 0

* Test deleteandREcord and deleting item with non zero quantity

* Update angular.yml

* Added MovementValidator test

* Updated package lock

* Added base for PutItemDTOValidatorTest

* Added tests for PutItemDTO

* Removed test cases so they are correct on the CI machine lol

\r\n or \n bruh

* Delete angular.yml

* No duplicate item creation based on properties (#34)

* Added logic to check whether item with the same properties already exists

* Added TODO

* Update angular.yml

* Delete angular.yml

* Update ItemRepository.cs

Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>

* Fatel frontend item crud (#35)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* fix: Table width, display of unit column

* Added headlines in category accordions

* UI style changes

* UI style changes (looks pretty rn ngl)

* Added "New Item" button

* Add Item WIP

* UI styling changes

* UI styling

* created add item component

* create binding between addItemComponent and Inventory component

output field from add item component to inventory component

* from observable<item[]> to promise<Item[]> on readall method

* hotfixed action container

* New categorisation

* mat snack bar implemented, resetting fields on create item

* styling changes

* Added filter pipe

* search field WIP

* search WIP

* Update inventory.component.html

* broken validation

* sidenav ui changes

* sidenav ui styling

* Update mat-sidenav-container.component.css

* minor styling changes

* transition style change

* Added requiredIfMatches validator

* Update requiredIfMatches.ts

* Added requiredIfMatches validator

* reqiredIfMatches, simpler approach

* using form control instead of ngmodel

* closing add-item-component

* validation work in progress

* edit button in table rows

* Solved length and width validation problem

* Update add-item.component.ts

* removed actions column from tables :(

* add-item-button disabled state styling

* Added live form validation to add item component fields

* Removed unused imports

* Added placeholder and error message for Unit

* search field styling

* disabling and styling add item button

Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Update category.ts

* removed unused things

* Inventory restrucutring

Added NgRx
Moved Toolbar (add-item) and Filter (searchbar) into separate components
Tweaked a little the FilterPipe to accept Observable values

* Fixed note not created from the frontend

The get string variable was in plural in the HTML, changed it to correspond with backend domain entity's field.

* Changed notes spelling to note.

* Entities variable names camelCased + secondary buttons color change

* length or width must be greater than 0 working

* Revert "Inventory restrucutring"

This reverts commit 9f56d5a.

* Edit-Item component WIP

* Editing Items done

* Update categories.states.ts

* Update edit-item.component.ts

* Deleting items (#49)

* Editing Items done

* Update categories.states.ts

* Update edit-item.component.ts

* Deleting items

* Update categories.component.ts

Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Entries travel back with modified item

* Confirm buttons styling: add-item, edit-item

* Bottom navigation buttons added WIP

* UI styling

* Fixed properties getting lost when Item parsed into ItemWithEntry

* Recording movement & Entries page (#5, #6) (frontend) (#55)

* Bottom navigation buttons added WIP

* WIP

* Added initial state kinda resetting in reducer

* WIP

* Added initial state kinda resetting in reducer

* Basic setup for movement (not showing up lol)

* recording movement WIP

* movement wip

* Recording movement "done" - functionality working

Also categories sorted alphabetically

* Created entry service with readAll method

* Removed unused imports

* -

* -

* Generated diary component

* Added new filter pipe

* Diary WIP

* Entries filter

* Hungarian time format

* Update diary.component.html

Co-authored-by: RomanMeasv <90683512+RomanMeasv@users.noreply.github.com>

* #10 delete warehouse (#56)

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* test readall and create with and without context

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* DeleteWareHouseTest

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* test readall and create with and without context

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* mark test as fact

* Added small - finalizing changes

* Removed CreateItem test

Repo doesnt have to be tested, it was failing bc it was missing warehouseId

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>

* #5 recording movement (#57)

* Bottom navigation buttons added WIP

* WIP

* Added initial state kinda resetting in reducer

* WIP

* Added initial state kinda resetting in reducer

* Basic setup for movement (not showing up lol)

* recording movement WIP

* movement wip

* Recording movement "done" - functionality working

Also categories sorted alphabetically

* record movement wip

* added margin & WIP for tomorrow

* Diary styling

* Update diary.component.ts

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

* Authentication and authorization (#58)

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* test readall and create with and without context

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* DeleteWareHouseTest

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* test readall and create with and without context

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* mark test as fact

* Added small - finalizing changes

* user service created

* authentication and authorization implemented in backend

* userservice test written

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>

* Warehouse service with axios and readAll method

* Warehouse WIP

* Loading warehouses into Diary & Inventory & small changes

* Item with Entry also maps the WarehouseId

* Adding item to warehouse WIP

* Ignoring Warehouse field in DbContext on item

* Renamed state

* set warehouse to null to prevent it from being returned to front end

* Made it so that Update does not need WarehouseId as it never changes

* Warehouse add-item WIP

* Warehouse is nulled after transaction

* Add Item & Edit Item on warehouse WIP

* Nulling entry WH wherever entry is created

* Delete Item with NgRx

* Adding Entry to Warehouse

* Removed full body check from UpdateQuantity in ItemService

* Unit of the item can be modified

* removed console logs

* Added fully functioning Warehouse service (CUD)

* + to last commit

* Adding warehouse works

* Recording movement confirmation DONE

* sorted by timestamp

* Update diary.component.ts

* FIX: WH state stays even if switching between warehouses

* Basic styling for scrolling

* Update mat-sidenav-container.component.css

* Editing Warehouse WIP

* Edit warehouse name works (on inventory window)

* Editing Warehouse Styling done

* Deleting warehouse frontend (#65)

* Editing Warehouse WIP

* Edit warehouse name works (on inventory window)

* Delete warehouse - WORKS

* Delete warehouse - WORKS

* Update tool-bar.component.html

* Deleting Warehouse styling done

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>
Co-authored-by: StAl3x <90683186+StAl3x@users.noreply.github.com>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>
Co-authored-by: Romčo <roma0966@easv365.dk>
ChristianHesberg added a commit that referenced this pull request Dec 17, 2022
* Set up inetfaces, empty classes and dependecy injection for the Item entity

* Added tests for ItemRepository and ItemService

* Update FATEL_Backend/Application/Interfaces/IItemRepository.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Resolved int to string in Service and Repo method paramters at ID

* RenamedDbContext to AppDbContext and corrected Program.cs

* #1.2 (#9)

* Db context, Item,Unit entities

* regions names changed

onmodel region deleted (redundant)
TableMapping => Database sets

* Todo removed from dbcontext

* guess it is fixed

* final fix

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>

* Moved DbContext files to AppDbContext

* Renamed it in the paramter as well

* Added method back for mocking

* Added implementation and test

* Made the Items have details so the tests are more sure

* Added comments

* Read Item methods with test

* clean up

* Renamed DbContext to AppDbContext in test

* Removed not working test

* The fields in the Item should be a property

* Removed unused constructor in AppDbContext

* Removed unnecessary parenthesis

* Read and ReadAll method in API

* Added Read and ReadAll methods to API (tested in DB as well)

* Update FATEL_Backend/API/Controllers/ItemController.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Added the empty AppDbContext constructor back for mocking

* Added error handling in api and changed service to readonly

* Item delete implemented in repo up to controller with tests

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Update item repo - edit item dto

update item repo complete with test

* update item service test written

* Item service test not working

* Update test works fine

* clean up

* deleted postDtoValidation tests

* Clean up #2 keeping in mind the other branches

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* final touch

* Added TODO

* Added update method in API

* Added TODOs

* Added TODOs

* Updated TODOs

* Added Exception messages and corrected update method

* Pasted PostItemDTO validator into PutItemDTO validator (for now)

* Updated the test for the ItemRepo's update method test

* Made a separet Seed method

* Added a more realistic Seed method

* Rebuild and Seed always applies to Item repo. Has to be removed later

* Always seed and rebuild only applies to development bulild

* Changed the comments

* Fatel frontend (#16)

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Base frontend for FATEL + Item fetching test

* Did tests, API Create and so on, only validator has to be done

* Base frontend for FATEL + Item fetching test

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Can fetch all items from API

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* yes

* final touch

* WIP

* Base frontend for FATEL + Item fetching test

* Can fetch all items from API

* WIP

* Inventory: Items with headlines in a grid

* Squashed commit of the following:

commit 92ec26b
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 10:46:37 2022 +0100

    Changed the comments

commit cd8eae2
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:54:08 2022 +0100

    Always seed and rebuild only applies to development bulild

commit 983f966
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:50:12 2022 +0100

    Rebuild and Seed always applies to Item repo. Has to be removed later

commit 4e7e903
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:49:22 2022 +0100

    Added a more realistic Seed method

commit f323d14
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 11:05:16 2022 +0100

    Made a separet Seed method

commit 0652186
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:43:25 2022 +0100

    Updated the test for the ItemRepo's update method test

commit d219222
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:42:13 2022 +0100

    Pasted PostItemDTO validator into PutItemDTO validator (for now)

commit bef71a6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:40:25 2022 +0100

    Added Exception messages and corrected update method

commit 9a4dce6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:23:08 2022 +0100

    Updated TODOs

commit 51ed0aa
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:17:03 2022 +0100

    Added TODOs

commit b9bfee8
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:19:00 2022 +0100

    Added TODOs

commit 78663e6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:15:22 2022 +0100

    Added update method in API

commit 25266bb
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:07:06 2022 +0100

    Added TODO

commit 0ecd8b3
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 14:04:25 2022 +0100

    final touch

commit 6b1224a
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:44:27 2022 +0100

    Added <Item> to the Create method's ActionResult type

commit b0d5ff2
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:41:28 2022 +0100

    Added route to Create in ItemController

commit d7a2c62
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:38:02 2022 +0100

    Tested and corrected the PostItemDTO Validator

commit 2c9a80e
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit f635241
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit 7a9cd53
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 671949a
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ade0fc3
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 16:15:03 2022 +0100

    Clean up #2 keeping in mind the other branches

commit c6b1107
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 16:02:56 2022 +0100

    deleted postDtoValidation tests

commit c52c60e
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:59:28 2022 +0100

    clean up

commit 2f5653c
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 15:32:40 2022 +0100

    Update test works fine

commit 0299e18
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:14:14 2022 +0100

    Item service test not working

commit 9d0bbbd
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 12:01:57 2022 +0100

    update item service test written

commit f933f7b
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 11:09:35 2022 +0100

    Update item repo - edit item dto

    update item repo complete with test

commit 0c2bae7
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 12:01:56 2022 +0100

    Working on PostItemDTOValidation - 2 tests not passing

commit 78d41d7
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 11:09:41 2022 +0100

    Finished postItemDTOValidator and first test for it

commit 74cbc7a
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit bb1fa4d
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit b3c28ca
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 23:11:45 2022 +0100

    just a line for delete plus added mapper into program.cs

commit f9b9ab8
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ded755a
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 348704f
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 10:20:34 2022 +0100

    Item delete implemented in repo up to controller with tests

* Added Cors to backend

* Added gitignore

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Entry operations created

-Entry entity
-EntryTable in DbContext
-Entry repository with create and read all method(includes tests)
-Entry service with create and read all methods (includes tests)
-PostEntryDTO
-PostEntryDTO validator created but with no implementation
-Create test in ItemService and ItemRepository

* entry controller

* Removed unnecassry create method from EntryService

* Update IEntryRepository.cs

* Update EntryRepository.cs

* Update EntryRepositoryTest.cs

* Create angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Movement BE, Mcontroller, Mrepo, Mservice

* Movement Record "implemented" error: Reference not set to instance of an object

* Recording movement works with pieces

* ReadTotalQuantityOf() workd also for Meter and SquareMeter items

* Added Movement validation and checking whether the object stored is same as in the request

* Fixed validator issue

* Shortened code in ItemRepository

* Added extra validation for Movement

* The general idea for recording movement and recording initial movement

This is broken code, heavily WIP

* added repositoryFacade

-updated repository facade to match itemRepository
-changed tests to reflect changes in item service
- cleaned up putItemDTO

* Update angular.yml

* RepoFacade is used in EntryService

* Cleanup for merge into dev

Removed MovementService and Repo
Removed Registering the separet Repos, only the facade gets registered

* Fatel frontend item crud (#29)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* No log is made if the "Item to be created"'s quantity is 0

* Test deleteandREcord and deleting item with non zero quantity

* Update angular.yml

* Added MovementValidator test

* Updated package lock

* Added base for PutItemDTOValidatorTest

* Added tests for PutItemDTO

* Removed test cases so they are correct on the CI machine lol

\r\n or \n bruh

* Delete angular.yml

* No duplicate item creation based on properties (#34)

* Added logic to check whether item with the same properties already exists

* Added TODO

* Update angular.yml

* Delete angular.yml

* Update ItemRepository.cs

Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>

* Fatel frontend item crud (#35)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* fix: Table width, display of unit column

* Added headlines in category accordions

* UI style changes

* UI style changes (looks pretty rn ngl)

* Added "New Item" button

* Add Item WIP

* UI styling changes

* UI styling

* created add item component

* create binding between addItemComponent and Inventory component

output field from add item component to inventory component

* from observable<item[]> to promise<Item[]> on readall method

* hotfixed action container

* New categorisation

* mat snack bar implemented, resetting fields on create item

* styling changes

* Added filter pipe

* search field WIP

* search WIP

* Update inventory.component.html

* broken validation

* sidenav ui changes

* sidenav ui styling

* Update mat-sidenav-container.component.css

* minor styling changes

* transition style change

* Added requiredIfMatches validator

* Update requiredIfMatches.ts

* Added requiredIfMatches validator

* reqiredIfMatches, simpler approach

* using form control instead of ngmodel

* closing add-item-component

* validation work in progress

* edit button in table rows

* Solved length and width validation problem

* Update add-item.component.ts

* removed actions column from tables :(

* add-item-button disabled state styling

* Added live form validation to add item component fields

* Removed unused imports

* Added placeholder and error message for Unit

* search field styling

* disabling and styling add item button

Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Update category.ts

* removed unused things

* Inventory restrucutring

Added NgRx
Moved Toolbar (add-item) and Filter (searchbar) into separate components
Tweaked a little the FilterPipe to accept Observable values

* Fixed note not created from the frontend

The get string variable was in plural in the HTML, changed it to correspond with backend domain entity's field.

* Changed notes spelling to note.

* Entities variable names camelCased + secondary buttons color change

* length or width must be greater than 0 working

* Revert "Inventory restrucutring"

This reverts commit 9f56d5a.

* Edit-Item component WIP

* Editing Items done

* Update categories.states.ts

* Update edit-item.component.ts

* Deleting items (#49)

* Editing Items done

* Update categories.states.ts

* Update edit-item.component.ts

* Deleting items

* Update categories.component.ts

Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Entries travel back with modified item

* Confirm buttons styling: add-item, edit-item

* Bottom navigation buttons added WIP

* UI styling

* Fixed properties getting lost when Item parsed into ItemWithEntry

* Recording movement & Entries page (#5, #6) (frontend) (#55)

* Bottom navigation buttons added WIP

* WIP

* Added initial state kinda resetting in reducer

* WIP

* Added initial state kinda resetting in reducer

* Basic setup for movement (not showing up lol)

* recording movement WIP

* movement wip

* Recording movement "done" - functionality working

Also categories sorted alphabetically

* Created entry service with readAll method

* Removed unused imports

* -

* -

* Generated diary component

* Added new filter pipe

* Diary WIP

* Entries filter

* Hungarian time format

* Update diary.component.html

Co-authored-by: RomanMeasv <90683512+RomanMeasv@users.noreply.github.com>

* #10 delete warehouse (#56)

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* test readall and create with and without context

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* DeleteWareHouseTest

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* test readall and create with and without context

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* mark test as fact

* Added small - finalizing changes

* Removed CreateItem test

Repo doesnt have to be tested, it was failing bc it was missing warehouseId

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>

* #5 recording movement (#57)

* Bottom navigation buttons added WIP

* WIP

* Added initial state kinda resetting in reducer

* WIP

* Added initial state kinda resetting in reducer

* Basic setup for movement (not showing up lol)

* recording movement WIP

* movement wip

* Recording movement "done" - functionality working

Also categories sorted alphabetically

* record movement wip

* added margin & WIP for tomorrow

* Diary styling

* Update diary.component.ts

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

* Authentication and authorization (#58)

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* test readall and create with and without context

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* DeleteWareHouseTest

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* test readall and create with and without context

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* mark test as fact

* Added small - finalizing changes

* user service created

* authentication and authorization implemented in backend

* userservice test written

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>

* Warehouse service with axios and readAll method

* Warehouse WIP

* Loading warehouses into Diary & Inventory & small changes

* Item with Entry also maps the WarehouseId

* Adding item to warehouse WIP

* Ignoring Warehouse field in DbContext on item

* Renamed state

* set warehouse to null to prevent it from being returned to front end

* Made it so that Update does not need WarehouseId as it never changes

* Warehouse add-item WIP

* Warehouse is nulled after transaction

* Add Item & Edit Item on warehouse WIP

* Nulling entry WH wherever entry is created

* Delete Item with NgRx

* Adding Entry to Warehouse

* Removed full body check from UpdateQuantity in ItemService

* Unit of the item can be modified

* removed console logs

* Added fully functioning Warehouse service (CUD)

* + to last commit

* Adding warehouse works

* Recording movement confirmation DONE

* sorted by timestamp

* Update diary.component.ts

* FIX: WH state stays even if switching between warehouses

* Basic styling for scrolling

* Update mat-sidenav-container.component.css

* Editing Warehouse WIP

* Edit warehouse name works (on inventory window)

* Editing Warehouse Styling done

* Deleting warehouse frontend (#65)

* Editing Warehouse WIP

* Edit warehouse name works (on inventory window)

* Delete warehouse - WORKS

* Delete warehouse - WORKS

* Update tool-bar.component.html

* Deleting Warehouse styling done

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>
Co-authored-by: StAl3x <90683186+StAl3x@users.noreply.github.com>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>
Co-authored-by: Romčo <roma0966@easv365.dk>

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>
Co-authored-by: StAl3x <90683186+StAl3x@users.noreply.github.com>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>
Co-authored-by: Romčo <roma0966@easv365.dk>
StAl3x added a commit that referenced this pull request Dec 17, 2022
* Set up inetfaces, empty classes and dependecy injection for the Item entity

* Added tests for ItemRepository and ItemService

* Update FATEL_Backend/Application/Interfaces/IItemRepository.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Resolved int to string in Service and Repo method paramters at ID

* RenamedDbContext to AppDbContext and corrected Program.cs

* #1.2 (#9)

* Db context, Item,Unit entities

* regions names changed

onmodel region deleted (redundant)
TableMapping => Database sets

* Todo removed from dbcontext

* guess it is fixed

* final fix

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>

* Moved DbContext files to AppDbContext

* Renamed it in the paramter as well

* Added method back for mocking

* Added implementation and test

* Made the Items have details so the tests are more sure

* Added comments

* Read Item methods with test

* clean up

* Renamed DbContext to AppDbContext in test

* Removed not working test

* The fields in the Item should be a property

* Removed unused constructor in AppDbContext

* Removed unnecessary parenthesis

* Read and ReadAll method in API

* Added Read and ReadAll methods to API (tested in DB as well)

* Update FATEL_Backend/API/Controllers/ItemController.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Added the empty AppDbContext constructor back for mocking

* Added error handling in api and changed service to readonly

* Item delete implemented in repo up to controller with tests

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Update item repo - edit item dto

update item repo complete with test

* update item service test written

* Item service test not working

* Update test works fine

* clean up

* deleted postDtoValidation tests

* Clean up #2 keeping in mind the other branches

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* final touch

* Added TODO

* Added update method in API

* Added TODOs

* Added TODOs

* Updated TODOs

* Added Exception messages and corrected update method

* Pasted PostItemDTO validator into PutItemDTO validator (for now)

* Updated the test for the ItemRepo's update method test

* Made a separet Seed method

* Added a more realistic Seed method

* Rebuild and Seed always applies to Item repo. Has to be removed later

* Always seed and rebuild only applies to development bulild

* Changed the comments

* Fatel frontend (#16)

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Base frontend for FATEL + Item fetching test

* Did tests, API Create and so on, only validator has to be done

* Base frontend for FATEL + Item fetching test

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Can fetch all items from API

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* yes

* final touch

* WIP

* Base frontend for FATEL + Item fetching test

* Can fetch all items from API

* WIP

* Inventory: Items with headlines in a grid

* Squashed commit of the following:

commit 92ec26b
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 10:46:37 2022 +0100

    Changed the comments

commit cd8eae2
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:54:08 2022 +0100

    Always seed and rebuild only applies to development bulild

commit 983f966
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:50:12 2022 +0100

    Rebuild and Seed always applies to Item repo. Has to be removed later

commit 4e7e903
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:49:22 2022 +0100

    Added a more realistic Seed method

commit f323d14
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 11:05:16 2022 +0100

    Made a separet Seed method

commit 0652186
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:43:25 2022 +0100

    Updated the test for the ItemRepo's update method test

commit d219222
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:42:13 2022 +0100

    Pasted PostItemDTO validator into PutItemDTO validator (for now)

commit bef71a6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:40:25 2022 +0100

    Added Exception messages and corrected update method

commit 9a4dce6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:23:08 2022 +0100

    Updated TODOs

commit 51ed0aa
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:17:03 2022 +0100

    Added TODOs

commit b9bfee8
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:19:00 2022 +0100

    Added TODOs

commit 78663e6
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:15:22 2022 +0100

    Added update method in API

commit 25266bb
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:07:06 2022 +0100

    Added TODO

commit 0ecd8b3
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 14:04:25 2022 +0100

    final touch

commit 6b1224a
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:44:27 2022 +0100

    Added <Item> to the Create method's ActionResult type

commit b0d5ff2
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:41:28 2022 +0100

    Added route to Create in ItemController

commit d7a2c62
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:38:02 2022 +0100

    Tested and corrected the PostItemDTO Validator

commit 2c9a80e
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit f635241
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit 7a9cd53
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 671949a
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ade0fc3
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 16:15:03 2022 +0100

    Clean up #2 keeping in mind the other branches

commit c6b1107
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 16:02:56 2022 +0100

    deleted postDtoValidation tests

commit c52c60e
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:59:28 2022 +0100

    clean up

commit 2f5653c
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 15:32:40 2022 +0100

    Update test works fine

commit 0299e18
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:14:14 2022 +0100

    Item service test not working

commit 9d0bbbd
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 12:01:57 2022 +0100

    update item service test written

commit f933f7b
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 11:09:35 2022 +0100

    Update item repo - edit item dto

    update item repo complete with test

commit 0c2bae7
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 12:01:56 2022 +0100

    Working on PostItemDTOValidation - 2 tests not passing

commit 78d41d7
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 11:09:41 2022 +0100

    Finished postItemDTOValidator and first test for it

commit 74cbc7a
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit bb1fa4d
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit b3c28ca
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 23:11:45 2022 +0100

    just a line for delete plus added mapper into program.cs

commit f9b9ab8
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ded755a
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 348704f
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 10:20:34 2022 +0100

    Item delete implemented in repo up to controller with tests

* Added Cors to backend

* Added gitignore

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Entry operations created

-Entry entity
-EntryTable in DbContext
-Entry repository with create and read all method(includes tests)
-Entry service with create and read all methods (includes tests)
-PostEntryDTO
-PostEntryDTO validator created but with no implementation
-Create test in ItemService and ItemRepository

* entry controller

* Removed unnecassry create method from EntryService

* Update IEntryRepository.cs

* Update EntryRepository.cs

* Update EntryRepositoryTest.cs

* Create angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Movement BE, Mcontroller, Mrepo, Mservice

* Movement Record "implemented" error: Reference not set to instance of an object

* Recording movement works with pieces

* ReadTotalQuantityOf() workd also for Meter and SquareMeter items

* Added Movement validation and checking whether the object stored is same as in the request

* Fixed validator issue

* Shortened code in ItemRepository

* Added extra validation for Movement

* The general idea for recording movement and recording initial movement

This is broken code, heavily WIP

* added repositoryFacade

-updated repository facade to match itemRepository
-changed tests to reflect changes in item service
- cleaned up putItemDTO

* Update angular.yml

* RepoFacade is used in EntryService

* Cleanup for merge into dev

Removed MovementService and Repo
Removed Registering the separet Repos, only the facade gets registered

* Fatel frontend item crud (#29)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* No log is made if the "Item to be created"'s quantity is 0

* Test deleteandREcord and deleting item with non zero quantity

* Update angular.yml

* Added MovementValidator test

* Updated package lock

* Added base for PutItemDTOValidatorTest

* Added tests for PutItemDTO

* Removed test cases so they are correct on the CI machine lol

\r\n or \n bruh

* Delete angular.yml

* No duplicate item creation based on properties (#34)

* Added logic to check whether item with the same properties already exists

* Added TODO

* Update angular.yml

* Delete angular.yml

* Update ItemRepository.cs

Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>

* Fatel frontend item crud (#35)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* fix: Table width, display of unit column

* Added headlines in category accordions

* UI style changes

* UI style changes (looks pretty rn ngl)

* Added "New Item" button

* Add Item WIP

* UI styling changes

* UI styling

* created add item component

* create binding between addItemComponent and Inventory component

output field from add item component to inventory component

* from observable<item[]> to promise<Item[]> on readall method

* hotfixed action container

* New categorisation

* mat snack bar implemented, resetting fields on create item

* styling changes

* Added filter pipe

* search field WIP

* search WIP

* Update inventory.component.html

* broken validation

* sidenav ui changes

* sidenav ui styling

* Update mat-sidenav-container.component.css

* minor styling changes

* transition style change

* Added requiredIfMatches validator

* Update requiredIfMatches.ts

* Added requiredIfMatches validator

* reqiredIfMatches, simpler approach

* using form control instead of ngmodel

* closing add-item-component

* validation work in progress

* edit button in table rows

* Solved length and width validation problem

* Update add-item.component.ts

* removed actions column from tables :(

* add-item-button disabled state styling

* Added live form validation to add item component fields

* Removed unused imports

* Added placeholder and error message for Unit

* search field styling

* disabling and styling add item button

Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Update category.ts

* removed unused things

* Inventory restrucutring

Added NgRx
Moved Toolbar (add-item) and Filter (searchbar) into separate components
Tweaked a little the FilterPipe to accept Observable values

* Fixed note not created from the frontend

The get string variable was in plural in the HTML, changed it to correspond with backend domain entity's field.

* Changed notes spelling to note.

* Entities variable names camelCased + secondary buttons color change

* length or width must be greater than 0 working

* Revert "Inventory restrucutring"

This reverts commit 9f56d5a.

* Edit-Item component WIP

* Editing Items done

* Update categories.states.ts

* Update edit-item.component.ts

* Deleting items (#49)

* Editing Items done

* Update categories.states.ts

* Update edit-item.component.ts

* Deleting items

* Update categories.component.ts

Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Entries travel back with modified item

* Confirm buttons styling: add-item, edit-item

* Bottom navigation buttons added WIP

* UI styling

* Fixed properties getting lost when Item parsed into ItemWithEntry

* Recording movement & Entries page (#5, #6) (frontend) (#55)

* Bottom navigation buttons added WIP

* WIP

* Added initial state kinda resetting in reducer

* WIP

* Added initial state kinda resetting in reducer

* Basic setup for movement (not showing up lol)

* recording movement WIP

* movement wip

* Recording movement "done" - functionality working

Also categories sorted alphabetically

* Created entry service with readAll method

* Removed unused imports

* -

* -

* Generated diary component

* Added new filter pipe

* Diary WIP

* Entries filter

* Hungarian time format

* Update diary.component.html

Co-authored-by: RomanMeasv <90683512+RomanMeasv@users.noreply.github.com>

* #10 delete warehouse (#56)

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* test readall and create with and without context

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* DeleteWareHouseTest

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* test readall and create with and without context

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* mark test as fact

* Added small - finalizing changes

* Removed CreateItem test

Repo doesnt have to be tested, it was failing bc it was missing warehouseId

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>

* #5 recording movement (#57)

* Bottom navigation buttons added WIP

* WIP

* Added initial state kinda resetting in reducer

* WIP

* Added initial state kinda resetting in reducer

* Basic setup for movement (not showing up lol)

* recording movement WIP

* movement wip

* Recording movement "done" - functionality working

Also categories sorted alphabetically

* record movement wip

* added margin & WIP for tomorrow

* Diary styling

* Update diary.component.ts

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

* Authentication and authorization (#58)

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* test readall and create with and without context

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* DeleteWareHouseTest

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* test readall and create with and without context

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* mark test as fact

* Added small - finalizing changes

* user service created

* authentication and authorization implemented in backend

* userservice test written

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>

* Warehouse service with axios and readAll method

* Warehouse WIP

* Loading warehouses into Diary & Inventory & small changes

* Item with Entry also maps the WarehouseId

* Adding item to warehouse WIP

* Ignoring Warehouse field in DbContext on item

* Renamed state

* set warehouse to null to prevent it from being returned to front end

* Made it so that Update does not need WarehouseId as it never changes

* Warehouse add-item WIP

* Warehouse is nulled after transaction

* Add Item & Edit Item on warehouse WIP

* Nulling entry WH wherever entry is created

* Delete Item with NgRx

* Adding Entry to Warehouse

* Removed full body check from UpdateQuantity in ItemService

* Unit of the item can be modified

* removed console logs

* Added fully functioning Warehouse service (CUD)

* + to last commit

* Adding warehouse works

* Recording movement confirmation DONE

* sorted by timestamp

* Update diary.component.ts

* FIX: WH state stays even if switching between warehouses

* Basic styling for scrolling

* Update mat-sidenav-container.component.css

* Editing Warehouse WIP

* Edit warehouse name works (on inventory window)

* Editing Warehouse Styling done

* Deleting warehouse frontend (#65)

* Editing Warehouse WIP

* Edit warehouse name works (on inventory window)

* Delete warehouse - WORKS

* Delete warehouse - WORKS

* Update tool-bar.component.html

* Deleting Warehouse styling done

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

* amounts piped to 3 decimal places

* Warehouse action bar extracted, has to display Inventory/Diary on the page

* Moved states to root folder

* toolbar header

* Wareouse editing/deleting stops when switching between warehouses

* Update diary.component.html

* DTOs renamed and deleted (Movement, PutItemDTO)

* favicon added

* Fix quantity must be int bug (#71)

* added validation to quantity and length and width

* Delete requiredIfMatches.ts

* No warehouse page (#72)

* Basic no warehouse message

* No warehouse page done ig

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

* #16 report inventory (#73)

* Inventory Report WIP

* createReport method without header

* service in toolbar and createPDF () onclick

* Report creates of the inventory with all the items

* Report creation with all items work

* Items filtered in report

* Item report works with filter and date inside

Co-authored-by: Miloš Jozek <dumm0232@easv365.dk>

* #17 report diary (#74)

* Inventory Report WIP

* createReport method without header

* service in toolbar and createPDF () onclick

* Report creates of the inventory with all the items

* Report creation with all items work

* two way binding on selector

* Items filtered in report

* filter working

* diary repo creation

* final touch diary report

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Year filter (#77)

* two way binding on selector

* filter working

* Styling year filter WIP

Final touches would be:
arrow not blue when selecting an option,
match color with search field (they are both rgba0,0,0,.42 but not really)
selected filter option changes the form color or something idk

Co-authored-by: RomanMeasv <90683512+RomanMeasv@users.noreply.github.com>

* Finalized report creation - formatting needed on export diary button

* Export diary button formatted

* Install ngx translate core and http loader

* Added initialization of ngx

* First translation works

* Diary html translated

* Add item labels translated

* Close button to add item component

* add item component confirm button translation done

* Categories component translated

* Edit item component translated

* Filter bar translated

* Record movement component translated

* tool bar component translated

* Translated no warehouse component

* translated inventory/diary

* Translation regarding reports

* Login frontend (#81)

* some basic functionality

* authorization implemented in back end

* headers placed into methods rather than export constant

this makes it so the token is added at each method call, so if the user logs out, they can't access the methods any longer

* can login and be redirected to main app

* login page WIP

login form needs formatting otherwise it looks kewl

* login form fields styling

* login done

* Update login.component.ts

Co-authored-by: RomanMeasv <90683512+RomanMeasv@users.noreply.github.com>

* Fix Font try n.1

* Language of the page is english, unless the navigator is hungarian

* Translated login page

* notify user on error

-notify user of incorrect username or password.
-notify user of fail to connect to server

* Logout feature done ig, some unnecessary styling

* Category table styling

* switched diary and inventory icons in navbar & small change to the translation file (export in diary)

* Minimal styling changes

* Renaming category backend, other small fixes (#90)

* Base button added for expanding category

* Added edit category component

* Can update a group of item's names

* Base button added for expanding category

* Can update a group of item's names

* Added edit category component

* UpdateNameRange

* Untested UpdateNameRange

* Extended tests with patch validator

* UpdateRange works with Attach

* cleaning up, re-routing when token expired

-token expiry set to 8 hours
- entry service deleted (never used)
- snack bar added to item and warehouse service
- rerouting to login page added upon 401 status(unauthorized)

* Base button added for expanding category

* Can update a group of item's names

* Added edit category component

* UpdateNameRange

* Untested UpdateNameRange

* Extended tests with patch validator

* UpdateRange works with Attach

* Category name editing WIP

* cleaning up, re-routing when token expired

-token expiry set to 8 hours
- entry service deleted (never used)
- snack bar added to item and warehouse service
- rerouting to login page added upon 401 status(unauthorized)

* Removed or commented out editing category changes in category component

* Update ItemRepository.cs

updatenamerange method was in twice

* Update categories.component.html

unresolved variable

Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>

* errors 400 and over caught and user notified

* snackbar messages given with translatable text

* ItemService translation b4 Christians Correction

* ItemService translated

* Login & Warehouse Service translated

* categories for pdf reports

* Unit names are translated in the new inventory report

* Final pdf report

* Updated formatting an put entry report style to reguler

* onStopEditCategory method

* Base category editing

* Correct UI state for editing category name

* Renaming of caegory succesful, does not update the NgRx just yet

* Renaming category works (even with enter)

* Input border does not show up instantly

* Input field and tick added for category renaming

* Renaming icon only displays with categories having more than 1 item in it

* No warehouse page displays if there is no warehouses loaded

* If there is no warehouses, hide the inventory and diary button

* If there is only one warehouse, it will auto-focus on the creation

Otherwise, it will not autofocus newly created warehouses

* By default, the first warehouse is selected... now for sure xd

* Added broken edit and movement button formatting

* Category edit button has hover animation

* Mobile UI (#97)

* errors 400 and over caught and user notified

* snackbar messages given with translatable text

* routing guards for mobile

* basic mobile login

* mobile login page

* starting on mobile nav bar

* Warehouse mobile navigation page

Tomorrow we do MobileInventoryComponent

* mobile/desktop guards working

* removed dead code

* Mobile Inventory page WIP

* items list in mobile component

BUT if you refresh the mobileInventory page, then you will lose the selected warehouse and nothig loads

* go bak button needs method plz

* Changed routes to nested routes

* Mobile Inventory categories WIP

* Styling Mobile Inventory WIP

Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

* Phone UI translated

* Removed unused component and added extra space for errors (#99)

Extra space: add item and edit item

Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>

* Center header texts in report

* refactored all (#101)

* Mobile Inventory Styling WIP

* Unit names are translated in the category page, default lang set back to eng

* Added language specific dates and correct report date parsing

* fixed the bug

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>
Co-authored-by: StAl3x <90683186+StAl3x@users.noreply.github.com>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>
Co-authored-by: Romčo <roma0966@easv365.dk>
Co-authored-by: Miloš Jozek <dumm0232@easv365.dk>
Ladam0203 added a commit that referenced this pull request Dec 21, 2022
* Sprint Review 2 State (#66)

* Set up inetfaces, empty classes and dependecy injection for the Item entity

* Added tests for ItemRepository and ItemService

* Update FATEL_Backend/Application/Interfaces/IItemRepository.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Resolved int to string in Service and Repo method paramters at ID

* RenamedDbContext to AppDbContext and corrected Program.cs

* #1.2 (#9)

* Db context, Item,Unit entities

* regions names changed

onmodel region deleted (redundant)
TableMapping => Database sets

* Todo removed from dbcontext

* guess it is fixed

* final fix

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>

* Moved DbContext files to AppDbContext

* Renamed it in the paramter as well

* Added method back for mocking

* Added implementation and test

* Made the Items have details so the tests are more sure

* Added comments

* Read Item methods with test

* clean up

* Renamed DbContext to AppDbContext in test

* Removed not working test

* The fields in the Item should be a property

* Removed unused constructor in AppDbContext

* Removed unnecessary parenthesis

* Read and ReadAll method in API

* Added Read and ReadAll methods to API (tested in DB as well)

* Update FATEL_Backend/API/Controllers/ItemController.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Added the empty AppDbContext constructor back for mocking

* Added error handling in api and changed service to readonly

* Item delete implemented in repo up to controller with tests

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Update item repo - edit item dto

update item repo complete with test

* update item service test written

* Item service test not working

* Update test works fine

* clean up

* deleted postDtoValidation tests

* Clean up #2 keeping in mind the other branches

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* final touch

* Added TODO

* Added update method in API

* Added TODOs

* Added TODOs

* Updated TODOs

* Added Exception messages and corrected update method

* Pasted PostItemDTO validator into PutItemDTO validator (for now)

* Updated the test for the ItemRepo's update method test

* Made a separet Seed method

* Added a more realistic Seed method

* Rebuild and Seed always applies to Item repo. Has to be removed later

* Always seed and rebuild only applies to development bulild

* Changed the comments

* Fatel frontend (#16)

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Base frontend for FATEL + Item fetching test

* Did tests, API Create and so on, only validator has to be done

* Base frontend for FATEL + Item fetching test

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Can fetch all items from API

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* yes

* final touch

* WIP

* Base frontend for FATEL + Item fetching test

* Can fetch all items from API

* WIP

* Inventory: Items with headlines in a grid

* Squashed commit of the following:

commit 92ec26bfae88dd8330f40d32a246a6a31a7ad4c4
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 10:46:37 2022 +0100

    Changed the comments

commit cd8eae2fa3eb1185ca8b9dc7f24f29070fd7c800
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:54:08 2022 +0100

    Always seed and rebuild only applies to development bulild

commit 983f966119f8661e5be9b59eda7ee99f6a91c98b
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:50:12 2022 +0100

    Rebuild and Seed always applies to Item repo. Has to be removed later

commit 4e7e9031c68e809248ff6c9bcb445c7ba2dd0517
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:49:22 2022 +0100

    Added a more realistic Seed method

commit f323d1458203924535953c7afcb22b328ddc5438
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 11:05:16 2022 +0100

    Made a separet Seed method

commit 0652186db370882a72abcae956c4b2eb9311c9b4
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:43:25 2022 +0100

    Updated the test for the ItemRepo's update method test

commit d2192223d4f3599aea30f5e67f19aca7090770ba
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:42:13 2022 +0100

    Pasted PostItemDTO validator into PutItemDTO validator (for now)

commit bef71a66288932a95ad2a4ed19b248be98a66499
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:40:25 2022 +0100

    Added Exception messages and corrected update method

commit 9a4dce6d60932bf72f9de4c16d1df41890e3a50c
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:23:08 2022 +0100

    Updated TODOs

commit 51ed0aa275d0b59cb40d9b41312940d558685e2f
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:17:03 2022 +0100

    Added TODOs

commit b9bfee81738aa34090b48927d113253d5ddaa11d
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:19:00 2022 +0100

    Added TODOs

commit 78663e629e374037d69b15b8da8838d204be0b37
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:15:22 2022 +0100

    Added update method in API

commit 25266bb540e3b7a8a1ca06861679469f018f5270
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:07:06 2022 +0100

    Added TODO

commit 0ecd8b384e50bff0fa0ce261c0b08e8e9549ab3b
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 14:04:25 2022 +0100

    final touch

commit 6b1224ad3abbbbfa1126afac16a2fa99fd155dff
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:44:27 2022 +0100

    Added <Item> to the Create method's ActionResult type

commit b0d5ff25767299c0bd79a84718f8e279d4626ccb
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:41:28 2022 +0100

    Added route to Create in ItemController

commit d7a2c627019f51ee00976d8bb29ddf0d4aeb44cc
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:38:02 2022 +0100

    Tested and corrected the PostItemDTO Validator

commit 2c9a80e8b83482501e18a7d990b576e2531011fb
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit f6352413434da7616a7427c9384322356b1ef08a
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit 7a9cd53c6ca584f83807d9861c653ca90fb0e574
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 671949a628a63877c7b31ac7e3c57a1c3a23c445
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ade0fc3747112d38b51c1a1731e3ffcb9600a330
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 16:15:03 2022 +0100

    Clean up #2 keeping in mind the other branches

commit c6b1107ccef2f3fde4884eab82692c86b1d4e9fb
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 16:02:56 2022 +0100

    deleted postDtoValidation tests

commit c52c60e3ccd4102627b193274ae5bf33ea3aaca4
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:59:28 2022 +0100

    clean up

commit 2f5653c714c50f7dbee9c3cc43e901cba95c3cb5
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 15:32:40 2022 +0100

    Update test works fine

commit 0299e1898aff6936181e76ba04349c6384b4ed83
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:14:14 2022 +0100

    Item service test not working

commit 9d0bbbdee5f2cfd9a9a8918dc9837bd631d8fce9
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 12:01:57 2022 +0100

    update item service test written

commit f933f7bcb3432c585bbd3d93b7fbf80d4c9e3e37
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 11:09:35 2022 +0100

    Update item repo - edit item dto

    update item repo complete with test

commit 0c2bae7d2a73151cbd1ab94753c6e559558e6641
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 12:01:56 2022 +0100

    Working on PostItemDTOValidation - 2 tests not passing

commit 78d41d71990a04f7cd1df87d1800a6e3d7653a61
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 11:09:41 2022 +0100

    Finished postItemDTOValidator and first test for it

commit 74cbc7a70ab37f105548b6b4bd8276086c049fd4
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit bb1fa4d358548842f0f4baa0c23068ed0b553006
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit b3c28ca75356b61b77ff062787b3e49a56254193
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 23:11:45 2022 +0100

    just a line for delete plus added mapper into program.cs

commit f9b9ab8dac4506846266fb173b89eb4107cdebe7
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ded755aaadba4ab10959aad971b2e1a46e86c9c0
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 348704f3ee0e382d60ba628141398600699421c7
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 10:20:34 2022 +0100

    Item delete implemented in repo up to controller with tests

* Added Cors to backend

* Added gitignore

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Entry operations created

-Entry entity
-EntryTable in DbContext
-Entry repository with create and read all method(includes tests)
-Entry service with create and read all methods (includes tests)
-PostEntryDTO
-PostEntryDTO validator created but with no implementation
-Create test in ItemService and ItemRepository

* entry controller

* Removed unnecassry create method from EntryService

* Update IEntryRepository.cs

* Update EntryRepository.cs

* Update EntryRepositoryTest.cs

* Create angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Movement BE, Mcontroller, Mrepo, Mservice

* Movement Record "implemented" error: Reference not set to instance of an object

* Recording movement works with pieces

* ReadTotalQuantityOf() workd also for Meter and SquareMeter items

* Added Movement validation and checking whether the object stored is same as in the request

* Fixed validator issue

* Shortened code in ItemRepository

* Added extra validation for Movement

* The general idea for recording movement and recording initial movement

This is broken code, heavily WIP

* added repositoryFacade

-updated repository facade to match itemRepository
-changed tests to reflect changes in item service
- cleaned up putItemDTO

* Update angular.yml

* RepoFacade is used in EntryService

* Cleanup for merge into dev

Removed MovementService and Repo
Removed Registering the separet Repos, only the facade gets registered

* Fatel frontend item crud (#29)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* No log is made if the "Item to be created"'s quantity is 0

* Test deleteandREcord and deleting item with non zero quantity

* Update angular.yml

* Added MovementValidator test

* Updated package lock

* Added base for PutItemDTOValidatorTest

* Added tests for PutItemDTO

* Removed test cases so they are correct on the CI machine lol

\r\n or \n bruh

* Delete angular.yml

* No duplicate item creation based on properties (#34)

* Added logic to check whether item with the same properties already exists

* Added TODO

* Update angular.yml

* Delete angular.yml

* Update ItemRepository.cs

Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>

* Fatel frontend item crud (#35)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* fix: Table width, display of unit column

* Added headlines in category accordions

* UI style changes

* UI style changes (looks pretty rn ngl)

* Added "New Item" button

* Add Item WIP

* UI styling changes

* UI styling

* created add item component

* create binding between addItemComponent and Inventory component

output field from add item component to inventory component

* from observable<item[]> to promise<Item[]> on readall method

* hotfixed action container

* New categorisation

* mat snack bar implemented, resetting fields on create item

* styling changes

* Added filter pipe

* search field WIP

* search WIP

* Update inventory.component.html

* broken validation

* sidenav ui changes

* sidenav ui styling

* Update mat-sidenav-container.component.css

* minor styling changes

* transition style change

* Added requiredIfMatches validator

* Update requiredIfMatches.ts

* Added requiredIfMatches validator

* reqiredIfMatches, simpler approach

* using form control instead of ngmodel

* closing add-item-component

* validation work in progress

* edit button in table rows

* Solved length and width validation problem

* Update add-item.component.ts

* removed actions column from tables :(

* add-item-button disabled state styling

* Added live form validation to add item component fields

* Removed unused imports

* Added placeholder and error message for Unit

* search field styling

* disabling and styling add item button

Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Update category.ts

* removed unused things

* Inventory restrucutring

Added NgRx
Moved Toolbar (add-item) and Filter (searchbar) into separate components
Tweaked a little the FilterPipe to accept Observable values

* Fixed note not created from the frontend

The get string variable was in plural in the HTML, changed it to correspond with backend domain entity's field.

* Changed notes spelling to note.

* Entities variable names camelCased + secondary buttons color change

* length or width must be greater than 0 working

* Revert "Inventory restrucutring"

This reverts commit 9f56d5a469378d1ed2c255a78d33e8d93b7faafe.

* Edit-Item component WIP

* Editing Items done

* Update categories.states.ts

* Update edit-item.component.ts

* Deleting items (#49)

* Editing Items done

* Update categories.states.ts

* Update edit-item.component.ts

* Deleting items

* Update categories.component.ts

Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Entries travel back with modified item

* Confirm buttons styling: add-item, edit-item

* Bottom navigation buttons added WIP

* UI styling

* Fixed properties getting lost when Item parsed into ItemWithEntry

* Recording movement & Entries page (#5, #6) (frontend) (#55)

* Bottom navigation buttons added WIP

* WIP

* Added initial state kinda resetting in reducer

* WIP

* Added initial state kinda resetting in reducer

* Basic setup for movement (not showing up lol)

* recording movement WIP

* movement wip

* Recording movement "done" - functionality working

Also categories sorted alphabetically

* Created entry service with readAll method

* Removed unused imports

* -

* -

* Generated diary component

* Added new filter pipe

* Diary WIP

* Entries filter

* Hungarian time format

* Update diary.component.html

Co-authored-by: RomanMeasv <90683512+RomanMeasv@users.noreply.github.com>

* #10 delete warehouse (#56)

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* test readall and create with and without context

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* DeleteWareHouseTest

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* test readall and create with and without context

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* mark test as fact

* Added small - finalizing changes

* Removed CreateItem test

Repo doesnt have to be tested, it was failing bc it was missing warehouseId

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>

* #5 recording movement (#57)

* Bottom navigation buttons added WIP

* WIP

* Added initial state kinda resetting in reducer

* WIP

* Added initial state kinda resetting in reducer

* Basic setup for movement (not showing up lol)

* recording movement WIP

* movement wip

* Recording movement "done" - functionality working

Also categories sorted alphabetically

* record movement wip

* added margin & WIP for tomorrow

* Diary styling

* Update diary.component.ts

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

* Authentication and authorization (#58)

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* test readall and create with and without context

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* DeleteWareHouseTest

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* test readall and create with and without context

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* mark test as fact

* Added small - finalizing changes

* user service created

* authentication and authorization implemented in backend

* userservice test written

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>

* Warehouse service with axios and readAll method

* Warehouse WIP

* Loading warehouses into Diary & Inventory & small changes

* Item with Entry also maps the WarehouseId

* Adding item to warehouse WIP

* Ignoring Warehouse field in DbContext on item

* Renamed state

* set warehouse to null to prevent it from being returned to front end

* Made it so that Update does not need WarehouseId as it never changes

* Warehouse add-item WIP

* Warehouse is nulled after transaction

* Add Item & Edit Item on warehouse WIP

* Nulling entry WH wherever entry is created

* Delete Item with NgRx

* Adding Entry to Warehouse

* Removed full body check from UpdateQuantity in ItemService

* Unit of the item can be modified

* removed console logs

* Added fully functioning Warehouse service (CUD)

* + to last commit

* Adding warehouse works

* Recording movement confirmation DONE

* sorted by timestamp

* Update diary.component.ts

* FIX: WH state stays even if switching between warehouses

* Basic styling for scrolling

* Update mat-sidenav-container.component.css

* Editing Warehouse WIP

* Edit warehouse name works (on inventory window)

* Editing Warehouse Styling done

* Deleting warehouse frontend (#65)

* Editing Warehouse WIP

* Edit warehouse name works (on inventory window)

* Delete warehouse - WORKS

* Delete warehouse - WORKS

* Update tool-bar.component.html

* Deleting Warehouse styling done

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>
Co-authored-by: StAl3x <90683186+StAl3x@users.noreply.github.com>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>
Co-authored-by: Romčo <roma0966@easv365.dk>

* Sprint3 merge (#108)

* Set up inetfaces, empty classes and dependecy injection for the Item entity

* Added tests for ItemRepository and ItemService

* Update FATEL_Backend/Application/Interfaces/IItemRepository.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/Interfaces/IItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Update FATEL_Backend/Application/ItemService.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Resolved int to string in Service and Repo method paramters at ID

* RenamedDbContext to AppDbContext and corrected Program.cs

* #1.2 (#9)

* Db context, Item,Unit entities

* regions names changed

onmodel region deleted (redundant)
TableMapping => Database sets

* Todo removed from dbcontext

* guess it is fixed

* final fix

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>

* Moved DbContext files to AppDbContext

* Renamed it in the paramter as well

* Added method back for mocking

* Added implementation and test

* Made the Items have details so the tests are more sure

* Added comments

* Read Item methods with test

* clean up

* Renamed DbContext to AppDbContext in test

* Removed not working test

* The fields in the Item should be a property

* Removed unused constructor in AppDbContext

* Removed unnecessary parenthesis

* Read and ReadAll method in API

* Added Read and ReadAll methods to API (tested in DB as well)

* Update FATEL_Backend/API/Controllers/ItemController.cs

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>

* Added the empty AppDbContext constructor back for mocking

* Added error handling in api and changed service to readonly

* Item delete implemented in repo up to controller with tests

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Update item repo - edit item dto

update item repo complete with test

* update item service test written

* Item service test not working

* Update test works fine

* clean up

* deleted postDtoValidation tests

* Clean up #2 keeping in mind the other branches

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* deleted delete

* Did tests, API Create and so on, only validator has to be done

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* final touch

* Added TODO

* Added update method in API

* Added TODOs

* Added TODOs

* Updated TODOs

* Added Exception messages and corrected update method

* Pasted PostItemDTO validator into PutItemDTO validator (for now)

* Updated the test for the ItemRepo's update method test

* Made a separet Seed method

* Added a more realistic Seed method

* Rebuild and Seed always applies to Item repo. Has to be removed later

* Always seed and rebuild only applies to development bulild

* Changed the comments

* Fatel frontend (#16)

* FluentValidation, DTOs, Item Controller

* FluentValidation, DTOs, Item Controller

* just a line for delete plus added mapper into program.cs

* deleted delete

* Base frontend for FATEL + Item fetching test

* Did tests, API Create and so on, only validator has to be done

* Base frontend for FATEL + Item fetching test

* Finished postItemDTOValidator and first test for it

* Working on PostItemDTOValidation - 2 tests not passing

* Can fetch all items from API

* Tested and corrected the PostItemDTO Validator

* Added route to Create in ItemController

* Added <Item> to the Create method's ActionResult type

* yes

* final touch

* WIP

* Base frontend for FATEL + Item fetching test

* Can fetch all items from API

* WIP

* Inventory: Items with headlines in a grid

* Squashed commit of the following:

commit 92ec26bfae88dd8330f40d32a246a6a31a7ad4c4
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 10:46:37 2022 +0100

    Changed the comments

commit cd8eae2fa3eb1185ca8b9dc7f24f29070fd7c800
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:54:08 2022 +0100

    Always seed and rebuild only applies to development bulild

commit 983f966119f8661e5be9b59eda7ee99f6a91c98b
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:50:12 2022 +0100

    Rebuild and Seed always applies to Item repo. Has to be removed later

commit 4e7e9031c68e809248ff6c9bcb445c7ba2dd0517
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Thu Nov 3 09:49:22 2022 +0100

    Added a more realistic Seed method

commit f323d1458203924535953c7afcb22b328ddc5438
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 11:05:16 2022 +0100

    Made a separet Seed method

commit 0652186db370882a72abcae956c4b2eb9311c9b4
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:43:25 2022 +0100

    Updated the test for the ItemRepo's update method test

commit d2192223d4f3599aea30f5e67f19aca7090770ba
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:42:13 2022 +0100

    Pasted PostItemDTO validator into PutItemDTO validator (for now)

commit bef71a66288932a95ad2a4ed19b248be98a66499
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:40:25 2022 +0100

    Added Exception messages and corrected update method

commit 9a4dce6d60932bf72f9de4c16d1df41890e3a50c
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:23:08 2022 +0100

    Updated TODOs

commit 51ed0aa275d0b59cb40d9b41312940d558685e2f
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Wed Nov 2 10:17:03 2022 +0100

    Added TODOs

commit b9bfee81738aa34090b48927d113253d5ddaa11d
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:19:00 2022 +0100

    Added TODOs

commit 78663e629e374037d69b15b8da8838d204be0b37
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:15:22 2022 +0100

    Added update method in API

commit 25266bb540e3b7a8a1ca06861679469f018f5270
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 17:07:06 2022 +0100

    Added TODO

commit 0ecd8b384e50bff0fa0ce261c0b08e8e9549ab3b
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 14:04:25 2022 +0100

    final touch

commit 6b1224ad3abbbbfa1126afac16a2fa99fd155dff
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:44:27 2022 +0100

    Added <Item> to the Create method's ActionResult type

commit b0d5ff25767299c0bd79a84718f8e279d4626ccb
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:41:28 2022 +0100

    Added route to Create in ItemController

commit d7a2c627019f51ee00976d8bb29ddf0d4aeb44cc
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 13:38:02 2022 +0100

    Tested and corrected the PostItemDTO Validator

commit 2c9a80e8b83482501e18a7d990b576e2531011fb
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit f6352413434da7616a7427c9384322356b1ef08a
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit 7a9cd53c6ca584f83807d9861c653ca90fb0e574
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 671949a628a63877c7b31ac7e3c57a1c3a23c445
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ade0fc3747112d38b51c1a1731e3ffcb9600a330
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 16:15:03 2022 +0100

    Clean up #2 keeping in mind the other branches

commit c6b1107ccef2f3fde4884eab82692c86b1d4e9fb
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 16:02:56 2022 +0100

    deleted postDtoValidation tests

commit c52c60e3ccd4102627b193274ae5bf33ea3aaca4
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:59:28 2022 +0100

    clean up

commit 2f5653c714c50f7dbee9c3cc43e901cba95c3cb5
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 15:32:40 2022 +0100

    Update test works fine

commit 0299e1898aff6936181e76ba04349c6384b4ed83
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 15:14:14 2022 +0100

    Item service test not working

commit 9d0bbbdee5f2cfd9a9a8918dc9837bd631d8fce9
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 12:01:57 2022 +0100

    update item service test written

commit f933f7bcb3432c585bbd3d93b7fbf80d4c9e3e37
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 11:09:35 2022 +0100

    Update item repo - edit item dto

    update item repo complete with test

commit 0c2bae7d2a73151cbd1ab94753c6e559558e6641
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 12:01:56 2022 +0100

    Working on PostItemDTOValidation - 2 tests not passing

commit 78d41d71990a04f7cd1df87d1800a6e3d7653a61
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 11:09:41 2022 +0100

    Finished postItemDTOValidator and first test for it

commit 74cbc7a70ab37f105548b6b4bd8276086c049fd4
Author: Ádám Lőrincz <adam7605@easv365.dk>
Date:   Tue Nov 1 10:18:08 2022 +0100

    Did tests, API Create and so on, only validator has to be done

commit bb1fa4d358548842f0f4baa0c23068ed0b553006
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Tue Nov 1 09:13:40 2022 +0100

    deleted delete

commit b3c28ca75356b61b77ff062787b3e49a56254193
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 23:11:45 2022 +0100

    just a line for delete plus added mapper into program.cs

commit f9b9ab8dac4506846266fb173b89eb4107cdebe7
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit ded755aaadba4ab10959aad971b2e1a46e86c9c0
Author: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Date:   Mon Oct 31 16:41:44 2022 +0100

    FluentValidation, DTOs, Item Controller

commit 348704f3ee0e382d60ba628141398600699421c7
Author: ChristianHesberg <chri59kx@easv365.dk>
Date:   Tue Nov 1 10:20:34 2022 +0100

    Item delete implemented in repo up to controller with tests

* Added Cors to backend

* Added gitignore

Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Entry operations created

-Entry entity
-EntryTable in DbContext
-Entry repository with create and read all method(includes tests)
-Entry service with create and read all methods (includes tests)
-PostEntryDTO
-PostEntryDTO validator created but with no implementation
-Create test in ItemService and ItemRepository

* entry controller

* Removed unnecassry create method from EntryService

* Update IEntryRepository.cs

* Update EntryRepository.cs

* Update EntryRepositoryTest.cs

* Create angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Update angular.yml

* Movement BE, Mcontroller, Mrepo, Mservice

* Movement Record "implemented" error: Reference not set to instance of an object

* Recording movement works with pieces

* ReadTotalQuantityOf() workd also for Meter and SquareMeter items

* Added Movement validation and checking whether the object stored is same as in the request

* Fixed validator issue

* Shortened code in ItemRepository

* Added extra validation for Movement

* The general idea for recording movement and recording initial movement

This is broken code, heavily WIP

* added repositoryFacade

-updated repository facade to match itemRepository
-changed tests to reflect changes in item service
- cleaned up putItemDTO

* Update angular.yml

* RepoFacade is used in EntryService

* Cleanup for merge into dev

Removed MovementService and Repo
Removed Registering the separet Repos, only the facade gets registered

* Fatel frontend item crud (#29)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* No log is made if the "Item to be created"'s quantity is 0

* Test deleteandREcord and deleting item with non zero quantity

* Update angular.yml

* Added MovementValidator test

* Updated package lock

* Added base for PutItemDTOValidatorTest

* Added tests for PutItemDTO

* Removed test cases so they are correct on the CI machine lol

\r\n or \n bruh

* Delete angular.yml

* No duplicate item creation based on properties (#34)

* Added logic to check whether item with the same properties already exists

* Added TODO

* Update angular.yml

* Delete angular.yml

* Update ItemRepository.cs

Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>

* Fatel frontend item crud (#35)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* Accordion WIP

* categoriseItems function WIP

* categorizing method for items array DONE

* Warehouse Inventory

- basic Accordion done (openable categories)
- basic Table done (can see data)

* fix: Table width, display of unit column

* Added headlines in category accordions

* UI style changes

* UI style changes (looks pretty rn ngl)

* Added "New Item" button

* Add Item WIP

* UI styling changes

* UI styling

* created add item component

* create binding between addItemComponent and Inventory component

output field from add item component to inventory component

* from observable<item[]> to promise<Item[]> on readall method

* hotfixed action container

* New categorisation

* mat snack bar implemented, resetting fields on create item

* styling changes

* Added filter pipe

* search field WIP

* search WIP

* Update inventory.component.html

* broken validation

* sidenav ui changes

* sidenav ui styling

* Update mat-sidenav-container.component.css

* minor styling changes

* transition style change

* Added requiredIfMatches validator

* Update requiredIfMatches.ts

* Added requiredIfMatches validator

* reqiredIfMatches, simpler approach

* using form control instead of ngmodel

* closing add-item-component

* validation work in progress

* edit button in table rows

* Solved length and width validation problem

* Update add-item.component.ts

* removed actions column from tables :(

* add-item-button disabled state styling

* Added live form validation to add item component fields

* Removed unused imports

* Added placeholder and error message for Unit

* search field styling

* disabling and styling add item button

Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Update category.ts

* removed unused things

* Inventory restrucutring

Added NgRx
Moved Toolbar (add-item) and Filter (searchbar) into separate components
Tweaked a little the FilterPipe to accept Observable values

* Fixed note not created from the frontend

The get string variable was in plural in the HTML, changed it to correspond with backend domain entity's field.

* Changed notes spelling to note.

* Entities variable names camelCased + secondary buttons color change

* length or width must be greater than 0 working

* Revert "Inventory restrucutring"

This reverts commit 9f56d5a469378d1ed2c255a78d33e8d93b7faafe.

* Edit-Item component WIP

* Editing Items done

* Update categories.states.ts

* Update edit-item.component.ts

* Deleting items (#49)

* Editing Items done

* Update categories.states.ts

* Update edit-item.component.ts

* Deleting items

* Update categories.component.ts

Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Entries travel back with modified item

* Confirm buttons styling: add-item, edit-item

* Bottom navigation buttons added WIP

* UI styling

* Fixed properties getting lost when Item parsed into ItemWithEntry

* Recording movement & Entries page (#5, #6) (frontend) (#55)

* Bottom navigation buttons added WIP

* WIP

* Added initial state kinda resetting in reducer

* WIP

* Added initial state kinda resetting in reducer

* Basic setup for movement (not showing up lol)

* recording movement WIP

* movement wip

* Recording movement "done" - functionality working

Also categories sorted alphabetically

* Created entry service with readAll method

* Removed unused imports

* -

* -

* Generated diary component

* Added new filter pipe

* Diary WIP

* Entries filter

* Hungarian time format

* Update diary.component.html

Co-authored-by: RomanMeasv <90683512+RomanMeasv@users.noreply.github.com>

* #10 delete warehouse (#56)

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* test readall and create with and without context

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* DeleteWareHouseTest

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* test readall and create with and without context

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* mark test as fact

* Added small - finalizing changes

* Removed CreateItem test

Repo doesnt have to be tested, it was failing bc it was missing warehouseId

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>

* #5 recording movement (#57)

* Bottom navigation buttons added WIP

* WIP

* Added initial state kinda resetting in reducer

* WIP

* Added initial state kinda resetting in reducer

* Basic setup for movement (not showing up lol)

* recording movement WIP

* movement wip

* Recording movement "done" - functionality working

Also categories sorted alphabetically

* record movement wip

* added margin & WIP for tomorrow

* Diary styling

* Update diary.component.ts

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

* Authentication and authorization (#58)

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* test readall and create with and without context

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* DeleteWareHouseTest

* Created Warehouse

* Set up interfaces and base classes for Warehouse repository management

* Added WarehouseRepo to Facade and added constructor to Warehouse repo

* Set up Warehouse, Item and Entry and DbContext to accomodate Warehouses

* Added Warehouse table to DbContext

* Added Diary link to DbContext

* test readall and create with and without context

* Created the Warehhouse Service and it's interface and corrected the WH repo and its interface

* warehouseServiceTest readAll,Create with and without context

* ReadAll warehouse implemented - Might be problems with JSON nesting later

* WarehouseService Create test

* createWarehouse feature

* warehouse id added to item

-need to validate warehouse id in validators

* delete method written - edit test written

* DeleteWareHouseTest

* mark test as fact

* Added small - finalizing changes

* user service created

* authentication and authorization implemented in backend

* userservice test written

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>

* Warehouse service with axios and readAll method

* Warehouse WIP

* Loading warehouses into Diary & Inventory & small changes

* Item with Entry also maps the WarehouseId

* Adding item to warehouse WIP

* Ignoring Warehouse field in DbContext on item

* Renamed state

* set warehouse to null to prevent it from being returned to front end

* Made it so that Update does not need WarehouseId as it never changes

* Warehouse add-item WIP

* Warehouse is nulled after transaction

* Add Item & Edit Item on warehouse WIP

* Nulling entry WH wherever entry is created

* Delete Item with NgRx

* Adding Entry to Warehouse

* Removed full body check from UpdateQuantity in ItemService

* Unit of the item can be modified

* removed console logs

* Added fully functioning Warehouse service (CUD)

* + to last commit

* Adding warehouse works

* Recording movement confirmation DONE

* sorted by timestamp

* Update diary.component.ts

* FIX: WH state stays even if switching between warehouses

* Basic styling for scrolling

* Update mat-sidenav-container.component.css

* Editing Warehouse WIP

* Edit warehouse name works (on inventory window)

* Editing Warehouse Styling done

* Deleting warehouse frontend (#65)

* Editing Warehouse WIP

* Edit warehouse name works (on inventory window)

* Delete warehouse - WORKS

* Delete warehouse - WORKS

* Update tool-bar.component.html

* Deleting Warehouse styling done

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

* amounts piped to 3 decimal places

* Warehouse action bar extracted, has to display Inventory/Diary on the page

* Moved states to root folder

* toolbar header

* Wareouse editing/deleting stops when switching between warehouses

* Update diary.component.html

* DTOs renamed and deleted (Movement, PutItemDTO)

* favicon added

* Fix quantity must be int bug (#71)

* added validation to quantity and length and width

* Delete requiredIfMatches.ts

* No warehouse page (#72)

* Basic no warehouse message

* No warehouse page done ig

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

* #16 report inventory (#73)

* Inventory Report WIP

* createReport method without header

* service in toolbar and createPDF () onclick

* Report creates of the inventory with all the items

* Report creation with all items work

* Items filtered in report

* Item report works with filter and date inside

Co-authored-by: Miloš Jozek <dumm0232@easv365.dk>

* #17 report diary (#74)

* Inventory Report WIP

* createReport method without header

* service in toolbar and createPDF () onclick

* Report creates of the inventory with all the items

* Report creation with all items work

* two way binding on selector

* Items filtered in report

* filter working

* diary repo creation

* final touch diary report

Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: Ádám Lőrincz <90683098+Ladam0203@users.noreply.github.com>

* Year filter (#77)

* two way binding on selector

* filter working

* Styling year filter WIP

Final touches would be:
arrow not blue when selecting an option,
match color with search field (they are both rgba0,0,0,.42 but not really)
selected filter option changes the form color or something idk

Co-authored-by: RomanMeasv <90683512+RomanMeasv@users.noreply.github.com>

* Finalized report creation - formatting needed on export diary button

* Export diary button formatted

* Install ngx translate core and http loader

* Added initialization of ngx

* First translation works

* Diary html translated

* Add item labels translated

* Close button to add item component

* add item component confirm button translation done

* Categories component translated

* Edit item component translated

* Filter bar translated

* Record movement component translated

* tool bar component translated

* Translated no warehouse component

* translated inventory/diary

* Translation regarding reports

* Login frontend (#81)

* some basic functionality

* authorization implemented in back end

* headers placed into methods rather than export constant

this makes it so the token is added at each method call, so if the user logs out, they can't access the methods any longer

* can login and be redirected to main app

* login page WIP

login form needs formatting otherwise it looks kewl

* login form fields styling

* login done

* Update login.component.ts

Co-authored-by: RomanMeasv <90683512+RomanMeasv@users.noreply.github.com>

* Fix Font try n.1

* Language of the page is english, unless the navigator is hungarian

* Translated login page

* notify user on error

-notify user of incorrect username or password.
-notify user of fail to connect to server

* Logout feature done ig, some unnecessary styling

* Category table styling

* switched diary and inventory icons in navbar & small change to the translation file (export in diary)

* Minimal styling changes

* Renaming category backend, other small fixes (#90)

* Base button added for expanding category

* Added edit category component

* Can update a group of item's names

* Base button added for expanding category

* Can update a group of item's names

* Added edit category component

* UpdateNameRange

* Untested UpdateNameRange

* Extended tests with patch validator

* UpdateRange works with Attach

* cleaning up, re-routing when token expired

-token expiry set to 8 hours
- entry service deleted (never used)
- snack bar added to item and warehouse service
- rerouting to login page added upon 401 status(unauthorized)

* Base button added for expanding category

* Can update a group of item's names

* Added edit category component

* UpdateNameRange

* Untested UpdateNameRange

* Extended tests with patch validator

* UpdateRange works with Attach

* Category name editing WIP

* cleaning up, re-routing when token expired

-token expiry set to 8 hours
- entry service deleted (never used)
- snack bar added to item and warehouse service
- rerouting to login page added upon 401 status(unauthorized)

* Removed or commented out editing category changes in category component

* Update ItemRepository.cs

updatenamerange method was in twice

* Update categories.component.html

unresolved variable

Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>

* errors 400 and over caught and user notified

* snackbar messages given with translatable text

* ItemService translation b4 Christians Correction

* ItemService translated

* Login & Warehouse Service translated

* categories for pdf reports

* Unit names are translated in the new inventory report

* Final pdf report

* Updated formatting an put entry report style to reguler

* onStopEditCategory method

* Base category editing

* Correct UI state for editing category name

* Renaming of caegory succesful, does not update the NgRx just yet

* Renaming category works (even with enter)

* Input border does not show up instantly

* Input field and tick added for category renaming

* Renaming icon only displays with categories having more than 1 item in it

* No warehouse page displays if there is no warehouses loaded

* If there is no warehouses, hide the inventory and diary button

* If there is only one warehouse, it will auto-focus on the creation

Otherwise, it will not autofocus newly created warehouses

* By default, the first warehouse is selected... now for sure xd

* Added broken edit and movement button formatting

* Category edit button has hover animation

* Mobile UI (#97)

* errors 400 and over caught and user notified

* snackbar messages given with translatable text

* routing guards for mobile

* basic mobile login

* mobile login page

* starting on mobile nav bar

* Warehouse mobile navigation page

Tomorrow we do MobileInventoryComponent

* mobile/desktop guards working

* removed dead code

* Mobile Inventory page WIP

* items list in mobile component

BUT if you refresh the mobileInventory page, then you will lose the selected warehouse and nothig loads

* go bak button needs method plz

* Changed routes to nested routes

* Mobile Inventory categories WIP

* Styling Mobile Inventory WIP

Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: Ádám Lőrincz <adam7605@easv365.dk>

* Phone UI translated

* Removed unused component and added extra space for errors (#99)

Extra space: add item and edit item

Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>

* Center header texts in report

* refactored all (#101)

* Mobile Inventory Styling WIP

* Unit names are translated in the category page, default lang set back to eng

* Added language specific dates and correct report date parsing

* fixed the bug

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>
Co-authored-by: StAl3x <90683186+StAl3x@users.noreply.github.com>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>
Co-authored-by: Romčo <roma0966@easv365.dk>
Co-authored-by: Miloš Jozek <dumm0232@easv365.dk>

* GetUserByUsername should return null if no user is found

Co-authored-by: Romčo <90683512+RomanMeasv@users.noreply.github.com>
Co-authored-by: StAl3x <90683186+StAl3x@users.noreply.github.com>
Co-authored-by: Miloš Jozek <90444097+BoldHeadBall@users.noreply.github.com>
Co-authored-by: ChristianHesberg <chri59kx@easv365.dk>
Co-authored-by: ChristianHesberg <90753431+ChristianHesberg@users.noreply.github.com>
Co-authored-by: Romčo <roma0966@easv365.dk>
Co-authored-by: Miloš Jozek <dumm0232@easv365.dk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants