This is the app for the WellPartner Inventory API. The system keeps track of their items: Units, Assemblies, Subassemblies and Parts.
- Units consists of Assemblies
- Assemblies consists of Subassemblies and/or Parts
- Subassemblies consists of Parts
This section contains information about the app pages.
- Search for items containing the search string in Id, WellPartner Id, serial number or description
- View and edit an item's information
- Add a new part
- View, delete and add new lists
- Add and remove items in a list
- TypeScript
- React
- Vite
- ReactQuery
- Azure App Service with Entra authentication and authorization
- Deployment to Azure using GitHub Actions
Clone and Run the application:
- Clone the repo
- Navigate to project folder:
inventory-app
- Install modules:
npm i
- Run the app:
npm run dev
- Apply camelCase for folder names, such as
userProfilePage
, with the exception of component folder names that should be capitalized, i.eUserProfile
. - Choose descriptive names for component files. For instance, use
UserProfile.tsx
instead of generic names likeComponent1.tsx
orIndex.tsx
. - Organize folder structure hierarchically, considering trees and pages. Fro example, use
src/pages/add-part/.../batch
, where the batch directory is a subdirectory of its parent, and so forth. - Ensure page folders align with their corresponding URL segments. For example, name the page folder as
add-part-form
insrc/pages/add-part/add-part-form
, resulting in the URLhttps://.../add-part/add-part-form
.
Issues should have the following format:
- Type: Use one of the following prefixes to specify the nature of the change:
- feat for new features or enhancements.
- fix for bug fixes.
- chore for routine tasks or maintenance.
- refactor for code restructuring.
- Descriptive Text: Add a concise descriptive text.
If applicable, also give the issue a label.
Example
fix: Failed to Login BrowserAuthError
Branches should have the auto-generated name given to branches created from issues.
Example
205-fix-failed-to-login-browserautherror