-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fa): Creating changebla month for financial-aid (#14974)
* adding sortable feature * Revert "adding sortable feature" This reverts commit d9691c5. * adding more detail for api * removing white space break just adding html element to the db * adding applied * when creating application * use applied when applied * creating modal * wokring onf rontend for update date * code review * remvoing unused css * applied month * updateing spec * update from code bunny * updating test * remvoing applied * fixing migration * test * trying to make test work * more test * trying to get create test to work * removing test to move on * using now factory lets go * testing lint --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8d821f4
commit b2d46d9
Showing
13 changed files
with
240 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
apps/financial-aid/backend/migrations/20240528122439-update-application-add-applied.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
async up(queryInterface, Sequelize) { | ||
return queryInterface.sequelize.transaction(async (t) => { | ||
// Add the new column | ||
await queryInterface.addColumn( | ||
'applications', | ||
'applied', | ||
{ | ||
type: Sequelize.DATE, | ||
allowNull: true, | ||
}, | ||
{ transaction: t }, | ||
) | ||
|
||
// Update the applied column with the createdAt date | ||
await queryInterface.sequelize.query( | ||
` | ||
UPDATE applications | ||
SET applied = created; | ||
`, | ||
{ transaction: t }, | ||
) | ||
|
||
// Change the column to not allow null values if necessary | ||
await queryInterface.changeColumn( | ||
'applications', | ||
'applied', | ||
{ | ||
type: Sequelize.DATE, | ||
allowNull: false, | ||
}, | ||
{ transaction: t }, | ||
) | ||
}) | ||
}, | ||
|
||
async down(queryInterface, Sequelize) { | ||
return queryInterface.sequelize.transaction((t) => | ||
Promise.all([ | ||
queryInterface.removeColumn('applications', 'applied', { | ||
transaction: t, | ||
}), | ||
]), | ||
) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
apps/financial-aid/backend/src/app/modules/application/factories/date.factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const nowFactory = () => new Date() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
apps/financial-aid/web-veita/src/components/AppliedMonthModal/AppliedMonthModal.css.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { style } from '@vanilla-extract/css' | ||
|
||
export const modal = style({ | ||
display: 'block', | ||
width: '100%', | ||
maxWidth: '440px', | ||
boxShadow: '0px 8px 32px rgba(0, 0, 0, 0.08)', | ||
borderRadius: '12px', | ||
}) |
Oops, something went wrong.