Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
ea18a88
fix: upgrade zone.js from 0.13.3 to 0.14.7
snyk-bot Aug 4, 2024
b76ab87
NFG-423 Update testing docs
nfgallimore Aug 8, 2024
ff8820b
NFG-423 Add jest-dom, jest-fetch-mock for unit test mocking
nfgallimore Aug 8, 2024
2fb2697
NFG-83 Setup jest config
nfgallimore Aug 9, 2024
1e3f57f
Merge pull request #24 from Gallimore-Software/story/NFG-86-create-in…
Ahim-Gillamore Aug 29, 2024
56755ee
Merge pull request #22 from Gallimore-Software/snyk-upgrade-5ff66f990…
nfgallimore Aug 30, 2024
535704a
NFG-83 Remove unused doc folder. Documents live now in Teams. There i…
nfgallimore Aug 31, 2024
6b1b744
fix: upgrade zone.js from 0.13.3 to 0.14.10
snyk-bot Sep 2, 2024
1bb98fc
fix: upgrade @apollo/client from 3.11.1 to 3.11.4
snyk-bot Sep 2, 2024
955eab6
Merge pull request #34 from Gallimore-Software/staging
Ahim-Gillamore Sep 4, 2024
341f7f0
NFG-83 Made login page mobile responsive
flemton Sep 4, 2024
af4cf8c
NFG-83 Made register page mobile responsive
flemton Sep 4, 2024
378f246
NFG-83 remove inline styles for sidenav component
flemton Sep 4, 2024
7eb43e3
NFG-83 make dashboard metrics mobile responsive
flemton Sep 4, 2024
3f93232
NFG-83 make charts and visuals responsive
flemton Sep 4, 2024
9d98af9
NFG-83 make activity and recents responsive
flemton Sep 4, 2024
5edf923
NFG-83 remove inline styling
flemton Sep 4, 2024
032b479
NFG-83 add responsiveness to account info screen
flemton Sep 4, 2024
6c56590
NFG-76 product sku crud
Ahim-Gillamore Sep 5, 2024
752b732
NFG-83 show menu icon in mobile
flemton Sep 5, 2024
91c986e
NFG-76 batch record listing and UI
Ahim-Gillamore Sep 6, 2024
3f76f30
fix: upgrade multiple dependencies with Snyk
snyk-bot Sep 7, 2024
f4e0997
NFG-76 batch record list and create batch record wip
Ahim-Gillamore Sep 9, 2024
1edfdd7
Merge pull request #39 from Gallimore-Software/chapter/NFG-76-product…
Ahim-Gillamore Sep 17, 2024
d683f8c
story/NFG-67 managed prod and local environment and changed husky pre…
Ahim-Gillamore Sep 19, 2024
6639595
feature/NFG-67 updated node version to 20 for build
Ahim-Gillamore Sep 19, 2024
6dd8106
feature/NFG-67 batch record assigning operator
Ahim-Gillamore Sep 24, 2024
4b92fcb
NFG-447 add middleware sync component
nfgallimore Sep 28, 2024
2e332e8
Merge epic/NFG-67-Inventory-Mangement into story/NFG-86-Create-Invent…
nfgallimore Sep 28, 2024
9d0c71d
Merge epic/NFG-83-Setup-Infrastructure into story/NFG-86-Create-Inven…
nfgallimore Sep 28, 2024
e5a15a4
Merge branch 'chapter/NFG-83-setup-infrastructure' into story/NFG-86-…
nfgallimore Sep 28, 2024
834c455
Merge remote-tracking branch 'origin/feature/NFG-67-Inventory-Managem…
nfgallimore Sep 28, 2024
f4d9506
feature/NFG-67 inventory listing, searching and flitering, WIP is cre…
Ahim-Gillamore Sep 30, 2024
8ac617d
Merge pull request #43 from Gallimore-Software/feature/NFG-67-Invento…
Ahim-Gillamore Sep 30, 2024
f19e616
Merge pull request #42 from Gallimore-Software/story/NFG-86-Create-In…
Ahim-Gillamore Sep 30, 2024
a688278
NFG-86/change-button-label
John-Lloyd-013 Sep 30, 2024
95b3af8
Merge pull request #44 from Gallimore-Software/story/NFG-86-Create-In…
nfgallimore Sep 30, 2024
dac4078
NFG-86/change-save-to-submit
John-Lloyd-013 Sep 30, 2024
9ede345
NFG-83 Added validation errors on create inventoryHUSKY-0
chrisatgallimore Sep 30, 2024
136a51c
Merge branch 'story/NFG-86-Create-Inventory-Items' of https://github.…
chrisatgallimore Sep 30, 2024
a8b7862
Merge pull request #45 from Gallimore-Software/story/NFG-86-Create-In…
nfgallimore Oct 1, 2024
3674205
NFG-86 update husky pre-push
nfgallimore Oct 1, 2024
5cf3f32
Merge remote-tracking branch 'origin/snyk-upgrade-8e04989d219ae746177…
nfgallimore Oct 1, 2024
0c499dd
Merge remote-tracking branch 'origin/snyk-upgrade-0fcd30fead96cea10ae…
nfgallimore Oct 1, 2024
52c5f51
Merge remote-tracking branch 'origin/snyk-upgrade-93aac2261eea51bbfb5…
nfgallimore Oct 1, 2024
82ca9ff
NFG-86 update husky pre-push
nfgallimore Oct 1, 2024
0b3ea58
NFG-86 lint updates
nfgallimore Oct 1, 2024
a584456
NFG-86 allow the word merge in commit messages for husky pre-push
nfgallimore Oct 1, 2024
9cd87b4
NFG-86 Submit button functionality
chrisatgallimore Oct 3, 2024
283a54d
NFG-86 Inventory table showing saved files, auto-complete partially w…
chrisatgallimore Oct 4, 2024
d74b8ce
NFG-86 'Added SKU duplicate check'
John-Lloyd-013 Oct 4, 2024
9282e45
NFG-86 Inventory Manager Delete partial push
chrisatgallimore Oct 7, 2024
186b00d
Update README.md
John-Lloyd-013 Oct 7, 2024
600dec2
NFG-86 update workflow files
nfgallimore Oct 10, 2024
fe16c59
NFG-86 'Refined inventory dashboard'
John-Lloyd-013 Oct 16, 2024
93e65a0
NFG-86 'Added auto-generated files and env to .gitignore'
John-Lloyd-013 Oct 16, 2024
c12fe08
NFG-86 'Added initial styling to dashboard'
John-Lloyd-013 Oct 16, 2024
fae7341
NFG-86 'Added components table'
John-Lloyd-013 Oct 16, 2024
992dd16
NFG-86 "Moved previous 'inventory-dashboard' template to the correct …
John-Lloyd-013 Oct 17, 2024
25190aa
NFG-86 'Updated .gitignore' file
John-Lloyd-013 Oct 17, 2024
ea04fec
NFG-86 "Removed auto-generated files in project"
John-Lloyd-013 Oct 17, 2024
c009210
Merge pull request #51 from Gallimore-Software/story/NFG-86-Create-In…
nfgallimore Oct 17, 2024
ecc2f7c
Merge pull request #50 from Gallimore-Software/John-Lloyd-013-patch-1
nfgallimore Oct 17, 2024
542bb3b
Update ci.yaml
nfgallimore Aug 8, 2025
5c28185
Update ci.yaml
nfgallimore Aug 8, 2025
44001e1
NFG-86 Rename environments folder to environments, edit node_module t…
nfgallimore Aug 8, 2025
cc91a9b
NFG-86 update eslint
nfgallimore Aug 8, 2025
c834fdb
Merge branch 'feature/NFG-86-revival' of github.com:Gallimore-Softwar…
nfgallimore Aug 8, 2025
7eb156c
NFG-86 Revise package.json lint command
nfgallimore Aug 8, 2025
edaa17a
NFG-86-Update ci.yaml
nfgallimore Aug 8, 2025
75dc430
NFG-86 simplify CI
nfgallimore Aug 8, 2025
45ef1d0
NFG-86 Update husky precommit to use npx prettier
nfgallimore Aug 8, 2025
879d8cc
NFG-86 bypass auth guard
nfgallimore Aug 8, 2025
3ef6d61
NFG-86 update auth
nfgallimore Aug 8, 2025
fb4cb89
NFG-86 Update package.json and carriage returns
nfgallimore Aug 8, 2025
ae7abb6
Merge pull request #58 from Gallimore-Software/feature/NFG-86-revival
nfgallimore Aug 8, 2025
2eb1c77
NFG-86 Update title
nfgallimore Aug 8, 2025
12df164
NFG-86 update output location for build
nfgallimore Aug 8, 2025
5d76969
Merge pull request #60 from Gallimore-Software/feature/NFG-86-revival
nfgallimore Aug 9, 2025
1f2a30d
NFG-86 update output arg in build node script
nfgallimore Aug 9, 2025
48430ce
Merge pull request #61 from Gallimore-Software/feature/NFG-86-revival
nfgallimore Aug 9, 2025
d74aba7
NFG-86 update tsconfig output dir
nfgallimore Aug 9, 2025
951bb13
Merge branch 'feature/NFG-86-revival' of github.com:Gallimore-Softwar…
nfgallimore Aug 9, 2025
def242e
Merge pull request #62 from Gallimore-Software/feature/NFG-86-revival
nfgallimore Aug 9, 2025
ea7bee7
NFG-86 fix build command
nfgallimore Aug 9, 2025
e555681
Merge branch 'feature/NFG-86-revival' of github.com:Gallimore-Softwar…
nfgallimore Aug 9, 2025
ca548d4
Merge pull request #63 from Gallimore-Software/feature/NFG-86-revival
nfgallimore Aug 9, 2025
796efcf
Update tsconfig.app.json
nfgallimore Aug 9, 2025
63c5c05
Merge pull request #64 from Gallimore-Software/nfgallimore-patch-1
nfgallimore Aug 9, 2025
79c70d0
Update tsconfig.spec.json
nfgallimore Aug 9, 2025
38e1f42
Merge pull request #65 from Gallimore-Software/nfgallimore-patch-1
nfgallimore Aug 9, 2025
206e79e
Update tsconfig.app.json
nfgallimore Aug 9, 2025
1453390
Merge pull request #67 from Gallimore-Software/nfgallimore-patch-1
nfgallimore Aug 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: '' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "weekly"
interval: 'weekly'
28 changes: 0 additions & 28 deletions .github/workflows/angular-test-coverage.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/azure-static-web-apps-deploy.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Enforce Branch Naming
on:
push:
branches:
- "*"
- '*'

jobs:
check-branch-name:
Expand Down
75 changes: 64 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,95 @@ on:
push:
branches:
- development
- testing
- staging
- production
- 'story/*'
pull_request:
branches:
- development
- testing
- staging
- production

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]

steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

# Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: ${{ matrix.node-version }}

# Cache dependencies
- name: Cache node modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-

# Install dependencies
- name: Install dependencies
run: npm install
run: npm ci

# # Lint the code
# - name: Run linting
# run: npm run lint

# - name: Run tests
# run: npm test
# # Run Prettier check
# - name: Run Prettier
# run: npm run format

# # Run Jest tests with coverage
# - name: Run unit tests with coverage
# run: npm run test

# # Run end-to-end Cypress tests
# - name: Run Cypress tests
# run: npm run cypress:run

# Upload test coverage report as an artifact
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/

deploy:
runs-on: ubuntu-latest
needs: build
needs: [build]
if: github.ref == 'refs/heads/production'

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install dependencies
run: npm ci

- name: Deploy to Production
run: |
# Add your deployment script here
# Build the project before deploying
- name: Build project
run: npm run build

# Deploy to Azure Static Web Apps
- name: Build And Deploy to Azure
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for GitHub integrations (i.e., PR comments)
action: 'upload'
app_location: '/' # App source code path
api_location: '' # Api source code path - optional
output_location: 'dist/' # Built app content directory - adjust to match your app’s dist folder
25 changes: 25 additions & 0 deletions .github/workflows/commit-msg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Enforce Commit Message

on:
push:
branches:
- '*'

jobs:
check-commit-message:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Enforce commit message Jira issue ID
run: |
COMMITS=$(git rev-list --all)
for COMMIT in $COMMITS; do
MESSAGE=$(git log --format=%B -n 1 $COMMIT)
if [[ ! $MESSAGE =~ (Merge|NFG-[0-9]+) ]]; then
echo "Error: Commit message '$MESSAGE' does not contain a Jira issue ID (NFG-<issue-number>)."
exit 1
fi
done
35 changes: 0 additions & 35 deletions .github/workflows/test.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,12 @@ testem.log
# System files
.DS_Store
Thumbs.db
package-lock.json
docs*

# Auto-generated files
*.css.map
*.css

# Environments
src/environment
13 changes: 13 additions & 0 deletions .hintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": [
"development"
],
"hints": {
"axe/forms": [
"default",
{
"label": "off"
}
]
}
}
18 changes: 12 additions & 6 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#!/bin/sh
# This hook checks that branches are named according to the convention.

# This hook checks that branches are named according to the updated convention.
current_branch=$(git rev-parse --abbrev-ref HEAD)
branch_regex="^(chapter|story|bug|epic)/NFG-[0-9]+-.+$"
branch_regex="^(development|staging|testing|production|(^(chapter|story|bug|feature)/NFG-[0-9]+-.+$)$)"

if ! echo "$current_branch" | grep -Eq "$branch_regex"; then
echo "Error: Branch name '$current_branch' does not follow the naming convention."
echo "Please rename your branch to follow the convention: (chapter|story|bug|epic)/NFG-123-description."
exit 1
if ! echo "$current_branch" | grep -qE "$branch_regex"; then
echo "Error: Branch name '$current_branch' does not follow the naming convention."
echo "Please rename your branch to follow the convention: "
echo " - For environment branches: (development|staging|testing|production)"
echo " - For feature branches: (chapter|story|bug|feature)/NFG-<issue-number>-description."
exit 1
fi

# Format staged files using Prettier
npx prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') --write --ignore-unknown
git update-index --again
17 changes: 10 additions & 7 deletions .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,26 @@ protected_branches='development|testing|staging|production'

current_branch=$(git rev-parse --abbrev-ref HEAD)

# Prevent direct push to protected branches
if echo "$current_branch" | grep -Eq "$protected_branches"; then
echo "Error: Direct push to $current_branch is not allowed."
echo "Please use pull requests for changes to this branch."
exit 1
fi

# Do not allow push if missing Jira issue ID in commit message.
# Allow commit messages that are merge commits to bypass Jira issue ID check
while read local_ref local_sha remote_ref remote_sha; do
if [ "$local_sha" = "0000000000000000000000000000000000000000" ]; then
# Branch is being deleted, ignore
continue
fi

COMMITS=$(git rev-list $remote_sha..$local_sha)
for COMMIT in $COMMITS; do
MESSAGE=$(git log --format=%B -n 1 $COMMIT)
if [[ ! $MESSAGE =~ NFG-[0-9]+ ]]; then

# Skip the check for merge commits
if [[ $MESSAGE =~ ^Merge ]]; then
continue
fi

# Enforce Jira issue ID in other commit messages
if [[ ! $MESSAGE =~ (Merge|NFG-[0-9]+) ]]; then
echo "Error: Commit message '$MESSAGE' does not contain a Jira issue ID (NFG-<issue-number>)."
exit 1
fi
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Nufacturing App
# Nufacturing ERP / CRM App

## Overview

Expand Down Expand Up @@ -68,7 +68,7 @@ The Nufacturing App employs a comprehensive multi-environment setup to facilitat

### Testing Environment

- **Purpose:** Runs a full suite of automated tests to catch bugs before code reaches staging or production.
- **Purpose:** Runs a full suite of manual User Acceptance Tests to catch bugs before code reaches staging or production.
- **Setup:**
- Testing MongoDB
- Testing API
Expand Down Expand Up @@ -238,4 +238,4 @@ Use tags for marking significant releases or milestones. For example, `v1.0.0`.

By maintaining these five environments, Gallimore Software ensures a robust, reliable, and efficient development and deployment process for the Nufacturing app. This approach leads to higher quality software and improved user satisfaction, aligning with our goals of delivering innovative and customer-centric solutions.

[def]: ./docs/workflow.png
[def]: ./docs/WORKFLOW.png
6 changes: 6 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environment/environment.ts",
"with": "src/environment/environment.prod.ts"
}
],
"budgets": [
{
"type": "initial",
Expand Down
Empty file added cypress.json
Empty file.
1 change: 0 additions & 1 deletion docs/146.68344b18d1a38606.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/265.542fc14b96dc487f.js

This file was deleted.

Loading
Loading