Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Sprint 4 #13

Merged
merged 126 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
82acf04
refactor: use `$push` operator in creating transactions
Dwigoric Nov 19, 2023
03a843e
feat: added loan date to res
anaj00 Nov 20, 2023
5d50b7d
chore: upgrade yarn
Dwigoric Nov 21, 2023
b386642
fix: migrate changes to sprint 4 branch
kndonetm Nov 21, 2023
f737f37
feat: add loan approval dates
kndonetm Nov 21, 2023
99e5903
refactor: adjust loan info edit route
kndonetm Nov 21, 2023
0a0e2af
fix: add username to loans query option
Dwigoric Nov 21, 2023
54a1b93
refactor: add more weight to loanee username
Dwigoric Nov 21, 2023
7651da5
!refactor: add region to location schema
Dwigoric Nov 22, 2023
a9b9a89
fix: initialize settings correctly
Dwigoric Nov 22, 2023
2f61f24
feat: initial deductions
kndonetm Nov 22, 2023
e0a8bca
feat: add `dueDate` to loan schema
Dwigoric Nov 22, 2023
a7ed1e3
Merge branch 'Sprint-4' of https://github.com/Dwigoric/unboundmnl-are…
kndonetm Nov 22, 2023
d81eb48
feat: accept `released` loan status
Dwigoric Nov 22, 2023
33f1146
feat: officer password edit route
Dwigoric Nov 22, 2023
021343a
feat: initial deduction calculations and oic
kndonetm Nov 22, 2023
5ec51f8
chore: remove console logs
kndonetm Nov 22, 2023
3d4dc1b
feat: loan running balance
kndonetm Nov 22, 2023
0d75c3d
feat: loan running balance
kndonetm Nov 22, 2023
aa01758
feat: set up agenda controller for cron jobs
Dwigoric Nov 22, 2023
a697eb9
feat: admin pw change route
Dwigoric Nov 22, 2023
b186fa5
refactor: make loan routes more intuitive
Dwigoric Nov 23, 2023
5c40597
refactor: make deposit routes more intuitive
Dwigoric Nov 23, 2023
cbd7168
chore: upgrade dependencies
Dwigoric Nov 23, 2023
dc35743
feat: set up agenda job workflow
Dwigoric Nov 23, 2023
2802cb6
chore: upgrade argon2
Dwigoric Nov 23, 2023
6c97fa3
feat: set up flow for marking loan as released
Dwigoric Nov 23, 2023
9a5826c
fix: rounding errors for loans
kndonetm Nov 23, 2023
1bda438
Merge branch 'Sprint-4' of https://github.com/Dwigoric/unboundmnl-are…
kndonetm Nov 23, 2023
24e27e4
feat: deposit rounding errors
kndonetm Nov 23, 2023
a575aed
refactor: update default settings to match new schema
kndonetm Nov 23, 2023
a4cb547
refactor: change setting values to Decimal type
kndonetm Nov 23, 2023
dcf4e5b
feat: define and create jobs using `@hokify/agenda`
Dwigoric Nov 23, 2023
00e79ec
chore: comment starting agenda jobs to avoid errors
Dwigoric Nov 23, 2023
06e14f0
feat: added interestDue and amountDue to loanTransactionSchema.
riki-11 Nov 23, 2023
ae678c2
chore: upgrade yarn lockfile
Dwigoric Nov 23, 2023
5a144f0
fix(temp): create new connection using agenda's builtin driver
Dwigoric Nov 23, 2023
f45e688
feat: set initial due date on release
Dwigoric Nov 24, 2023
1ab221c
feat: accept comma-separated status for loans
Dwigoric Nov 24, 2023
859c7d1
fix: accept comma-separated status for loans
Dwigoric Nov 24, 2023
49f9caa
feat: add job for extending due dates
Dwigoric Nov 24, 2023
5a8f20e
feat: deposit ledger calculations.
riki-11 Nov 24, 2023
0dc7bdc
feat: deposit ledger calculations.
riki-11 Nov 24, 2023
e105fe3
feat: edit loan settings
kndonetm Nov 24, 2023
19da3b4
feat: edit deposit settings
kndonetm Nov 24, 2023
a6da8e2
feat: edit notification settings
kndonetm Nov 24, 2023
36d2ebb
refactor: interest rate setting can no longer be disabled
kndonetm Nov 24, 2023
a8676f1
feat: date of next interest payment for loans
kndonetm Nov 25, 2023
2d2ceaa
feat: automatic loan interest calculation
kndonetm Nov 25, 2023
237965b
refactor: balance cannot go below 0
kndonetm Nov 25, 2023
644df4e
refactor: disallow passing JWT to URL query parameter
Dwigoric Nov 26, 2023
ff0615c
feat: deposit submission and next interest dates tracking
kndonetm Nov 26, 2023
98d7571
feat: automatic deposit interest calculation
kndonetm Nov 26, 2023
8dee59d
refactor: skip unpaid loan repayments
Dwigoric Nov 26, 2023
7d76166
feat: mark repayments as paid
Dwigoric Nov 26, 2023
ae20e99
fix: accept GET /loans without status query
Dwigoric Nov 26, 2023
4173ad9
feat: deselect ledger from info in getting specific loan
Dwigoric Nov 28, 2023
7235e5a
feat: return tx ID after creating new tx
Dwigoric Nov 28, 2023
787f07a
docs: made model names uniform, added documentation to auth and db
kndonetm Nov 28, 2023
dc9f686
chore: remove unused interest rate from deposit schema
kndonetm Nov 28, 2023
940a974
docs: half of the models
kndonetm Nov 28, 2023
cfc2033
fix(member): occupation field
Dwigoric Nov 28, 2023
641c5d7
feat: add code documentation
Dwigoric Nov 28, 2023
3ce1fa7
docs: add git commit format
Dwigoric Nov 28, 2023
94885e9
docs: model docs part 2
kndonetm Nov 28, 2023
2dd6f0a
Merge branch 'Sprint-4' of https://github.com/Dwigoric/unboundmnl-are…
kndonetm Nov 28, 2023
65f7e03
ci: build jsdoc
Dwigoric Nov 28, 2023
e99169a
ci: build code docs
Dwigoric Nov 28, 2023
23327cb
docs: model docs part 3
kndonetm Nov 28, 2023
d72d160
docs: remove spaces from WRS element IDs
Dwigoric Nov 28, 2023
f00561a
ci: unzip WRS from `artifacts` folder
Dwigoric Nov 28, 2023
856d872
ci: cancel currently in-progress runs
Dwigoric Nov 28, 2023
d4ef783
docs: routes part 1
kndonetm Nov 28, 2023
84ba2c6
Merge branch 'Sprint-4' of https://github.com/Dwigoric/unboundmnl-are…
kndonetm Nov 28, 2023
6f1f0cd
refactor: extract parseDecimal to its own module
kndonetm Nov 28, 2023
b9c2387
deps: remove jsdoc
Dwigoric Nov 28, 2023
d946b7a
ci: change deploy step names
Dwigoric Nov 28, 2023
c4de822
docs: routes part 2
kndonetm Nov 28, 2023
01d70e2
ci: remove unused files and folders
Dwigoric Nov 28, 2023
1c35053
ci: fix rm version
Dwigoric Nov 28, 2023
f638cc5
ci: use `git rm` to remove files and folders from deploy
Dwigoric Nov 28, 2023
1f9dabc
ci: try removing `artifacts` from directory directly
Dwigoric Nov 28, 2023
c82b08c
ci: run `rm` using passwordless `sudo`
Dwigoric Nov 28, 2023
3f85331
docs: set up md files for handbook
Dwigoric Nov 28, 2023
e393372
docs: add a "see also" section
Dwigoric Nov 28, 2023
c30ad38
refactor: change users route paths
Dwigoric Nov 28, 2023
bc96142
docs: add API route standard
Dwigoric Nov 29, 2023
138a657
docs: remove semicolons in code style
Dwigoric Nov 29, 2023
4ea74a9
docs: add variable declaration standard
Dwigoric Nov 29, 2023
46e4356
docs: add note for `Object.freeze`
Dwigoric Nov 29, 2023
8778b5d
docs: add spacing standard for sections
Dwigoric Nov 29, 2023
fb8a4b3
docs: add Vue standard documentation
Dwigoric Nov 29, 2023
5487aa9
docs: use TL;DR block in variable declaration
Dwigoric Nov 29, 2023
1918123
docs: fix vuetify components link
Dwigoric Nov 29, 2023
d49044d
docs: modify deployment pipeline explanation
Dwigoric Nov 29, 2023
29f69e8
chore: upgrade dependencies
Dwigoric Nov 29, 2023
eeef0c3
docs: update users route jsdoc
Dwigoric Nov 29, 2023
8e0813b
!refactor: specify notification types
Dwigoric Nov 29, 2023
bb6e42e
docs: add equality operator coding standard
Dwigoric Nov 29, 2023
96fcf3b
docs: add vue reactivity standard
Dwigoric Nov 29, 2023
bdb55ad
feat: add validation for notification settings
Dwigoric Nov 29, 2023
d91bb89
docs: schedules and app boilerplate
kndonetm Nov 29, 2023
df3f53f
fix: broken import paths
kndonetm Nov 29, 2023
3472518
docs: routes part 4
kndonetm Nov 29, 2023
fade9b7
docs: logging in and out
anaj00 Nov 29, 2023
4c83f21
chore: remove unnecessary `console.log`s
Dwigoric Nov 29, 2023
6124037
docs: routes part 5
kndonetm Nov 29, 2023
2069883
Merge branch 'Sprint-4' of https://github.com/Dwigoric/unboundmnl-are…
kndonetm Nov 29, 2023
f7541e6
docs: routes part 5
kndonetm Nov 29, 2023
b4732f8
docs: fixed location of nameSchema documentation
kndonetm Nov 29, 2023
6735408
chore: revert to before the deploy broke
kndonetm Nov 29, 2023
d00dbe2
Revert "chore: revert to before the deploy broke"
Dwigoric Nov 29, 2023
5c6ad25
docs: auth + loan dash + loans
anaj00 Nov 30, 2023
352b33a
docs: fixed grammatical inconsistencies
anaj00 Nov 30, 2023
69d5b06
docs: changed pov
anaj00 Nov 30, 2023
826dee9
docs: change POV form from 1st to 2nd/3rd
Dwigoric Nov 30, 2023
7383e54
docs: add some instructions in browsing the documentation
Dwigoric Nov 30, 2023
963033c
docs: use procedure markup for login
Dwigoric Nov 30, 2023
f576376
docs: add screenshot of loan dashboard
Dwigoric Nov 30, 2023
df7d7f7
docs: add steps in creating a loan application
Dwigoric Nov 30, 2023
d8d41d8
docs: add images used last push...
Dwigoric Nov 30, 2023
5fbd0d9
docs(login): move warning to step
Dwigoric Nov 30, 2023
52c0f73
docs(logout): add button screenshot
Dwigoric Nov 30, 2023
81371a1
docs(loans): add steps for loan approval and rejection
Dwigoric Nov 30, 2023
089a6f8
docs: add topics for ledgers
Dwigoric Nov 30, 2023
c54c4ef
docs: clarified loan payment frequency
kndonetm Dec 1, 2023
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
47 changes: 47 additions & 0 deletions .github/workflows/deployment_azure-app-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ on:
- 'Sprint-[0-9]'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
WRS_INSTANCE: docs/ucwa
WRS_ARTIFACT: webHelpUCWA2-all.zip
WRS_DOCKER_VERSION: 232.10165.1

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -32,6 +41,44 @@ jobs:
echo 'Install dependencies'
yarn install --immutable

- name: Build jsdoc documentation
uses: andstor/jsdoc-action@v1
with:
source_dir: .
recurse: true
output_dir: ./public/docs/jsdoc

- name: Build Writerside docs using Docker
uses: JetBrains/writerside-github-action@v4
with:
instance: ${{ env.WRS_INSTANCE }}
artifact: ${{ env.WRS_ARTIFACT }}
docker-version: ${{ env.WRS_DOCKER_VERSION }}

- name: Upload Writerside documentation artifact
uses: actions/upload-artifact@v3
with:
name: wrs_docs
path: |
artifacts/${{ env.WRS_ARTIFACT }}
artifacts/report.json
retention-days: 7

- name: Test Writerside documentation
uses: JetBrains/writerside-checker-action@v1
with:
instance: ${{ env.WRS_INSTANCE }}

- name: Unzip Writerside artifact
uses: montudor/action-zip@v1
with:
args: unzip -qq artifacts/${{ env.WRS_ARTIFACT }} -d ./public/docs/code

- name: Remove unused files and folders
run: |
sudo rm -rf artifacts
git rm -rf docs

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
Expand Down
670 changes: 335 additions & 335 deletions .yarn/releases/yarn-4.0.1.cjs → .yarn/releases/yarn-4.0.2.cjs
100644 → 100755

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableGlobalCache: false

nodeLinker: pnp

yarnPath: .yarn/releases/yarn-4.0.1.cjs
yarnPath: .yarn/releases/yarn-4.0.2.cjs
12 changes: 12 additions & 0 deletions docs/c.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE categories
SYSTEM "https://resources.jetbrains.com/writerside/1.0/categories.dtd">
<categories>
<category id="loans" name="Loans" order="1" />
<category id="deposits" name="Deposits" order="2" />
<category id="profiles" name="Profiles" order="3" />
<category id="admin" name="Admin" order="4" />
<category id="uh" name="User Handbook" order="5" />
<category id="vue" name="Vue" order="98" />
<category id="ds" name="Development Standards" order="99"/>
</categories>
12 changes: 12 additions & 0 deletions docs/cfg/buildprofiles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<buildprofiles xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/build-profiles.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<variables></variables>
<build-profile instance="ucwa">
<variables>
<noindex-content>true</noindex-content>
</variables>
</build-profile>

</buildprofiles>
5 changes: 5 additions & 0 deletions docs/cfg/glossary.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE terms SYSTEM "https://resources.jetbrains.com/writerside/1.0/glossary.dtd">
<terms>
<term name="es6">ECMAScript 6 or ECMAScript 2015</term>
</terms>
Binary file added docs/images/approve-reject.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dashboard-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/download-application-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/login-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/logout-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/member-search-result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/topics/Adding-Deposit-Ledger-Transaction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Adding Deposit Ledger Transaction

Start typing here...
3 changes: 3 additions & 0 deletions docs/topics/Adding-Loan-Ledger-Transaction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Adding Loan Ledger Transaction

Start typing here...
22 changes: 22 additions & 0 deletions docs/topics/Admin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Admin

<seealso>
<category ref="admin">
<a href="Changing-Password.md" />
<a href="Loan-and-Deposit-Settings.md" />
<a href="Notification-Settings.md" />
</category>
<category ref="uh">
<a href="Authenticating-Logging-In.md" />
<a href="Loans.md" />
<a href="Deposits.md" />
<a href="Profiles.md" />
</category>
<category ref="ds">
<a href="Naming.md" />
<a href="Comments.md" />
<a href="Code-Style.md" />
<a href="Git-Commit-Messages.md" />
<a href="Vue.md"></a>
</category>
</seealso>
41 changes: 41 additions & 0 deletions docs/topics/Authenticating-Logging-In.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Authenticating/Logging In

Upon product turnover, the designated profile for login is
exclusively the ___admin___ profile, which will be promptly provided.
Once granted access to the website, the ___admin___ has the capability
to establish supplementary profiles for other officers to utilize.

<procedure title="Logging In" id="logging-in" type="steps">
<step>Enter your credentials on the login form.</step>
<step>
<em>Optional</em>: Check the <strong>Remember me</strong> option if
you wish to have your credentials remembered by your device.
<warning>
If you are using a public device, it is <strong>highly recommended</strong>
that you do not check the <strong>Remember me</strong> option.
</warning>
</step>
<step>Click on the <strong>Log In</strong> button.</step>
<img src="login-page.png" alt="Login page screenshot" />
<p>
Checking the <strong>Remember me</strong> option will
allow you to skip the login process on your next visit.
</p>
</procedure>


<seealso>
<category ref="uh">
<a href="Admin.md" />
<a href="Loans.md" />
<a href="Deposits.md" />
<a href="Profiles.md" />
</category>
<category ref="ds">
<a href="Naming.md" />
<a href="Comments.md" />
<a href="Code-Style.md" />
<a href="Git-Commit-Messages.md" />
<a href="Vue.md"></a>
</category>
</seealso>
21 changes: 21 additions & 0 deletions docs/topics/Changing-Password.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Changing Password

<seealso>
<category ref="admin">
<a href="Loan-and-Deposit-Settings.md" />
<a href="Notification-Settings.md" />
</category>
<category ref="uh">
<a href="Authenticating-Logging-In.md" />
<a href="Loans.md" />
<a href="Deposits.md" />
<a href="Profiles.md" />
</category>
<category ref="ds">
<a href="Naming.md" />
<a href="Comments.md" />
<a href="Code-Style.md" />
<a href="Git-Commit-Messages.md" />
<a href="Vue.md"></a>
</category>
</seealso>
103 changes: 103 additions & 0 deletions docs/topics/Code-Style.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Code Style

> If you are using VS Code or WebStorm,
> you can install the Prettier and ESLint extensions
> to automatically format your code. Both repositories
> contain Prettier and ESLint rules for code style.
> You can find them in the `.prettierrc` and `.eslintrc` files
> respectively.

## Indentation

All indentation must be done using **spaces**.
One indentation level is equal to **4 spaces**.

## Line Length

All lines must not exceed **25 characters**.

## Semicolons

All statements must **NOT** end with a semicolon (`;`).

## Braces

All braces must be placed on the same line as the statement they refer to.

### Example { id="braces-example" }

```javascript
if (true) {
// ...
}
```

## Spacing

### Operators

All operators must be surrounded by **spaces**.

#### Example { id="spacing-operators-example" }

```javascript
const a = 1 + 2
```

### Keywords

All keywords must be followed by a **space**.

#### Example { id="spacing-keywords-example" }

```javascript
if (true) {
// ...
}
```

### Commas

All commas must be followed by a **space**.

#### Example { id="spacing-commas-example" }

```javascript
const a = [1, 2, 3]
```

### Sections

All sections must be separated by **one blank line**.

#### Example { id="spacing-sections-example" }

```javascript
function a() {
// ...
}

function b() {
// ...
}
```

If a function definition contains a significant amount of code,
it may be separated into sections. Make sure to add a comment
above each section to describe what it does.

<seealso>
<category ref="uh">
<a href="Admin.md" />
<a href="Authenticating-Logging-In.md" />
<a href="Loans.md" />
<a href="Deposits.md" />
<a href="Profiles.md" />
</category>
<category ref="ds">
<a href="Naming.md" />
<a href="Comments.md" />
<a href="Git-Commit-Messages.md" />
<a href="Vue.md"></a>
</category>
</seealso>
81 changes: 81 additions & 0 deletions docs/topics/Coding-Standards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Coding Standards

This page contains the coding standards for the %product%.

## General

When developing the product, follow the
<tooltip term='es6'>ES6</tooltip> standard.
Both repositories are written in
<tooltip term='es6'>ES6</tooltip>.

## Variable Declaration

<tldr>
<p><strong>Always</strong> use <code>const</code> unless you need to reassign the variable.</p>
</tldr>

All variables must be declared using the `const` keyword.
However, some variables may be declared using the `let` keyword
if they are to be reassigned later on.

> Note that in JavaScript, `const` does not mean that the variable is immutable.
> It only means that the variable cannot be reassigned.
> If you have an object declared using `const`, you can still modify its properties.
> If you want to make an object immutable, you can use the
> `Object.freeze()` method.
{ style='note' }

### Example { id="variables-example" }

```javascript
// Do this
const a = 1

// NEVER this
var a = 1

// Sometimes this
let a = 1
```

## Equality Operators

<tldr>
<p><strong>Always</strong> use <code>===</code> and <code>!==</code>.</p>
</tldr>

All equality operators must be strict.
This means that you must use `===` and `!==` instead of `==` and `!=`.

### Example { id="equality-operators-example" }

```javascript
// Do this
if (a === b) {
// ...
}

// NEVER this
if (a == b) {
// ...
}
```


<seealso>
<category ref="uh">
<a href="Admin.md" />
<a href="Authenticating-Logging-In.md" />
<a href="Loans.md" />
<a href="Deposits.md" />
<a href="Profiles.md" />
</category>
<category ref="ds">
<a href="Naming.md" />
<a href="Comments.md" />
<a href="Code-Style.md" />
<a href="Git-Commit-Messages.md" />
<a href="Vue.md"></a>
</category>
</seealso>
Loading
Loading