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

Sb email qc component #79

Open
wants to merge 340 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
340 commits
Select commit Hold shift + click to select a range
171eb07
update error handling on getIamRecordById
mjwdavis May 22, 2024
cfdf4d4
#44 dates section of form
spelkey-ucd May 22, 2024
27dea96
Merge branch 'dev' into 14-component-library-employee-search-basic
spelkey-ucd May 22, 2024
a3687e0
Merge pull request #40 from UCDavisLibrary/14-component-library-emplo…
spelkey-ucd May 22, 2024
3f45d25
merge stash
sbagg May 22, 2024
84f85dc
fixes to #14
spelkey-ucd May 23, 2024
02f0e36
#45
spelkey-ucd May 23, 2024
f79af55
#44
spelkey-ucd May 23, 2024
7807536
wire up approval request draft save #44
spelkey-ucd May 24, 2024
42f945b
#44
spelkey-ucd May 24, 2024
671dcdb
initial commit
mjwdavis May 24, 2024
3e4f948
approval request expenditures. #44
spelkey-ucd May 28, 2024
cec183a
stash
sbagg May 29, 2024
f74378d
Merge branch 'dev' into sb-approver-gui
sbagg May 29, 2024
48e712b
approval request funding source form #44 #46
spelkey-ucd May 29, 2024
e7c12c4
employees add on with validation problem
sbagg May 30, 2024
becbeff
add content to page
mjwdavis May 31, 2024
2bd9442
Merge branch 'dev' into sb-approver-gui
sbagg May 31, 2024
3f24cd3
#44
spelkey-ucd May 31, 2024
b6d30b9
35 app admin landing page #47
mjwdavis May 31, 2024
d1454f2
PR fixes added still having issues with the Validation
sbagg Jun 1, 2024
d1c394d
remove logs
spelkey-ucd Jun 3, 2024
137e092
Merge pull request #47 from UCDavisLibrary/35-app-admin-landing-page
spelkey-ucd Jun 3, 2024
0f612fb
fixes to #35
spelkey-ucd Jun 3, 2024
dab3296
#49
spelkey-ucd Jun 4, 2024
69aeb6b
requested changes added
sbagg Jun 5, 2024
d221860
ui component for #49
spelkey-ucd Jun 5, 2024
53a69ac
clearing debugging functions and adding descriptions
sbagg Jun 5, 2024
17a89ee
draft component added
sbagg Jun 8, 2024
280076d
ititial committ
mjwdavis Jun 11, 2024
0712384
Merge branch 'dev' into sb-approver-gui
spelkey-ucd Jun 11, 2024
14737a5
Merge pull request #43 from UCDavisLibrary/sb-approver-gui
spelkey-ucd Jun 11, 2024
b32d293
fixes for #24
spelkey-ucd Jun 11, 2024
6b35414
#51
spelkey-ucd Jun 12, 2024
4c43efb
requested pull request changes
sbagg Jun 13, 2024
c059629
#46
spelkey-ucd Jun 13, 2024
6ce8505
#52
spelkey-ucd Jun 13, 2024
6c27acc
stash
sbagg Jun 14, 2024
44b3427
Merge branch 'dev' into sb-draftlist
sbagg Jun 14, 2024
b94e3d5
2nd Review stash
sbagg Jun 14, 2024
b67136c
stash
sbagg Jun 14, 2024
48127e0
pull request edit #2
sbagg Jun 14, 2024
7a3751c
#55
spelkey-ucd Jun 14, 2024
c033d3e
stash
sbagg Jun 16, 2024
bd725ef
initial teaser
sbagg Jun 16, 2024
99ff3aa
initial upload of teaser
sbagg Jun 16, 2024
9dea51a
initial commit teaser
sbagg Jun 17, 2024
88e6c32
#55
spelkey-ucd Jun 17, 2024
81dbcf2
#55
spelkey-ucd Jun 17, 2024
706bcbb
Merge pull request #50 from UCDavisLibrary/sb-draftlist
spelkey-ucd Jun 17, 2024
85be553
clean up #48
spelkey-ucd Jun 17, 2024
ca5e220
#57
spelkey-ucd Jun 17, 2024
bcdbbac
stash
sbagg Jun 17, 2024
f3459e0
merge stash
sbagg Jun 17, 2024
e89b670
#57
spelkey-ucd Jun 18, 2024
aee25fa
#57
spelkey-ucd Jun 18, 2024
9e90b93
stash
sbagg Jun 19, 2024
f05d3ee
Merge branch 'dev' into sb-teaser
sbagg Jun 19, 2024
36b8911
#57
spelkey-ucd Jun 20, 2024
7a3027e
#58
spelkey-ucd Jun 20, 2024
b5bc86e
requested updates to teaser
sbagg Jun 21, 2024
fee2a9b
Merge branch 'dev' into sb-teaser
sbagg Jun 21, 2024
f05f871
layout check
sbagg Jun 21, 2024
4991d1e
format
sbagg Jun 21, 2024
481f7d0
#58
spelkey-ucd Jun 21, 2024
ddc774f
#59
spelkey-ucd Jun 21, 2024
376c9cd
#59
spelkey-ucd Jun 24, 2024
44e16bc
#60
spelkey-ucd Jun 25, 2024
07fc447
#60
spelkey-ucd Jun 26, 2024
2c281d8
update daily_expense_category schema
spelkey-ucd Jun 26, 2024
12fbe1a
stash
sbagg Jun 26, 2024
be8f764
Merge branch 'dev' into sb-teaser
sbagg Jun 26, 2024
8278dbc
update daily_expense_category schema
spelkey-ucd Jun 26, 2024
393c12d
#62
spelkey-ucd Jun 26, 2024
17ec952
changes requested
sbagg Jun 26, 2024
57f32ac
delete function
sbagg Jun 26, 2024
f73b335
Merge branch 'dev' into sb-teaser
sbagg Jun 27, 2024
e66365f
Merge pull request #56 from UCDavisLibrary/sb-teaser
spelkey-ucd Jun 27, 2024
b513ef3
fixes for #53
spelkey-ucd Jun 27, 2024
a15e0e8
own request landing #63
spelkey-ucd Jun 27, 2024
088ad11
approver landing page #63
spelkey-ucd Jun 28, 2024
541b648
fix add funding source bug
spelkey-ucd Jun 28, 2024
26ccccb
home page #63
spelkey-ucd Jun 28, 2024
d2ef9dd
fix bug if own approver
spelkey-ucd Jun 28, 2024
f975679
#62
spelkey-ucd Jul 1, 2024
cb45762
#62
spelkey-ucd Jul 2, 2024
bb25c25
#62
spelkey-ucd Jul 5, 2024
603db6e
#62
spelkey-ucd Jul 5, 2024
8c70171
stash
sbagg Jul 8, 2024
dde1f1d
Merge branch 'dev' into sb-email
sbagg Jul 8, 2024
355373c
#62
spelkey-ucd Jul 8, 2024
724e431
Site-wide banner #38
mjwdavis Jul 8, 2024
7797289
update oidc scopes
spelkey-ucd Jul 9, 2024
88add42
stash
sbagg Jul 9, 2024
e8fff88
merge
sbagg Jul 9, 2024
274ad12
Merge pull request #76 from UCDavisLibrary/dev
mjwdavis Jul 9, 2024
8b89815
getDefaultValue, checkFieldValue
mjwdavis Jul 9, 2024
a88feb9
move to App main
mjwdavis Jul 9, 2024
4124632
#62
spelkey-ucd Jul 10, 2024
4b470ee
edits for pr
mjwdavis Jul 11, 2024
62c7768
stash
sbagg Jul 11, 2024
78ef1fe
stash2
sbagg Jul 11, 2024
1bb9cfd
merge stash
sbagg Jul 11, 2024
a53cc99
stash
sbagg Jul 11, 2024
539c4ad
stash
sbagg Jul 11, 2024
a08ccb7
stash
sbagg Jul 11, 2024
1ee877f
stash
sbagg Jul 11, 2024
fc4bdf7
stash
sbagg Jul 11, 2024
4545eb8
#62
spelkey-ucd Jul 11, 2024
327cfe6
Merge pull request #77 from UCDavisLibrary/38-site-wide-banner
spelkey-ucd Jul 11, 2024
ae7fd48
fixes to #38
spelkey-ucd Jul 11, 2024
cff5dde
stash
sbagg Jul 11, 2024
3db233a
before merge
sbagg Jul 12, 2024
6010001
merge
sbagg Jul 12, 2024
3013028
subset icons
spelkey-ucd Jul 12, 2024
c91b770
#62
spelkey-ucd Jul 15, 2024
6c0b8a0
#62
spelkey-ucd Jul 16, 2024
6f3477c
stash
sbagg Jul 17, 2024
1809509
stash
sbagg Jul 17, 2024
e4e7a3e
authorization for reimbursement receipts #62
spelkey-ucd Jul 17, 2024
33577f1
initial backend work
sbagg Jul 17, 2024
3e62a76
Merge branch 'dev' into sb-email-notification
sbagg Jul 17, 2024
fa9f954
initial checkin backend work
sbagg Jul 18, 2024
d5e5a3e
stash
sbagg Jul 18, 2024
092e4df
stash
sbagg Jul 18, 2024
e5fcb07
change to focal link
sbagg Jul 18, 2024
b172155
change to focal link
sbagg Jul 18, 2024
fdfdc36
#62
spelkey-ucd Jul 19, 2024
71410e2
stash
sbagg Jul 20, 2024
aba1043
Merge branch 'dev' into sb-email-notification
sbagg Jul 20, 2024
52d6015
pull requests complete
sbagg Jul 26, 2024
13563f2
home page change
sbagg Jul 26, 2024
14607f5
stash
sbagg Jul 26, 2024
f6b623e
stash
sbagg Jul 26, 2024
a4f80af
stash
sbagg Jul 26, 2024
fd9ab58
stash
sbagg Jul 26, 2024
fbaec9a
questions backend added
sbagg Jul 26, 2024
a264fa8
questions backend added
sbagg Jul 26, 2024
059eac4
checking in
spelkey-ucd Jul 29, 2024
41a6fd1
change to the settings
sbagg Jul 29, 2024
c830a15
initial commit
mjwdavis Jul 29, 2024
a594452
reimbursement request query functionality. #80
spelkey-ucd Jul 30, 2024
8df079d
midreview changes
spelkey-ucd Jul 31, 2024
33a7c9c
starting to work
mjwdavis Aug 1, 2024
51fe927
Update 004-settings.sql
mjwdavis Aug 1, 2024
19a5b41
reimbursement exceed expense warning message
spelkey-ucd Aug 1, 2024
2c3a93e
finished pull request
sbagg Aug 1, 2024
721db42
stash
sbagg Aug 1, 2024
0c44308
merge stash
sbagg Aug 1, 2024
82e6c2c
merge in latest dev
sbagg Aug 1, 2024
cf837a3
#80
spelkey-ucd Aug 1, 2024
f71a761
edits for pr
mjwdavis Aug 2, 2024
ea45ca4
changes to the setting db file adding templates for body and subject
sbagg Aug 2, 2024
9de0bd8
#80
spelkey-ucd Aug 2, 2024
14970a1
change class names
mjwdavis Aug 2, 2024
8eb0054
pull requests completed for review
sbagg Aug 3, 2024
311f889
#80
spelkey-ucd Aug 5, 2024
25d3851
#80
spelkey-ucd Aug 6, 2024
41bc29f
#80
spelkey-ucd Aug 7, 2024
cb4fb8f
Merge branch 'dev' into sb-email-notification
sbagg Aug 8, 2024
909b746
stash
sbagg Aug 8, 2024
ef6f739
stash
sbagg Aug 8, 2024
17b8497
Merge pull request #81 from UCDavisLibrary/54-character-limit-tracker…
spelkey-ucd Aug 8, 2024
4c7cdf1
place character-limit-tracker elements. #54
spelkey-ucd Aug 8, 2024
bb84f41
#80
spelkey-ucd Aug 8, 2024
b4c0c6c
#80
spelkey-ucd Aug 9, 2024
873e53f
comments added deleted extra code and added docstrings with added cha…
sbagg Aug 9, 2024
0c80fc2
stash
sbagg Aug 9, 2024
eb63adf
stash
sbagg Aug 9, 2024
4a1007f
Merge branch 'dev' into sb-email-notification
sbagg Aug 9, 2024
ec49966
Merge branch 'dev' into sb-email-qc-component
sbagg Aug 9, 2024
e958f5d
Merge branch 'dev' into sb-email-qc-component
sbagg Aug 9, 2024
ea40fb7
#80
spelkey-ucd Aug 12, 2024
405fdf3
#80
spelkey-ucd Aug 13, 2024
027f3d9
stasch
sbagg Aug 13, 2024
f704c70
Merge branch 'dev' into sb-email-notification
sbagg Aug 13, 2024
906a858
#80
spelkey-ucd Aug 14, 2024
10284b4
#85
spelkey-ucd Aug 14, 2024
cede185
#86
spelkey-ucd Aug 15, 2024
5d900f6
stash -added scheduler
sbagg Aug 16, 2024
99757fe
stash
sbagg Aug 16, 2024
8b9b6aa
merge
sbagg Aug 16, 2024
4844aa2
stash
sbagg Aug 19, 2024
ad0c4fb
adding email notification to existing code
sbagg Aug 20, 2024
5bd3362
add automatic checker
sbagg Aug 20, 2024
6680265
#88
spelkey-ucd Aug 21, 2024
af46631
#89
spelkey-ucd Aug 21, 2024
dd78b31
#90
spelkey-ucd Aug 21, 2024
a9b1ce5
stash
sbagg Aug 22, 2024
621ee34
#90
spelkey-ucd Aug 22, 2024
45df4c2
notification added to activitiy, pull request changes made
sbagg Aug 23, 2024
b34d91e
Merge branch 'dev' of https://github.com/UCDavisLibrary/ucdlib-travel…
sbagg Aug 23, 2024
e7c9b97
merge dev
sbagg Aug 23, 2024
26570bc
#90
spelkey-ucd Aug 23, 2024
9a0bb27
Merge branch 'dev' of https://github.com/UCDavisLibrary/ucdlib-travel…
sbagg Aug 23, 2024
f763a0c
stash
sbagg Aug 23, 2024
69e3742
fix to reimbursement
sbagg Aug 23, 2024
8484306
changes made after retesting the email circut
sbagg Aug 26, 2024
a599a34
quick change
sbagg Aug 26, 2024
fac0316
changes made but would like a review of Activity History additions
sbagg Aug 27, 2024
b7db7fc
quick test changes
sbagg Aug 27, 2024
8bfcef9
change for that last issue
sbagg Aug 27, 2024
25621ad
stash
sbagg Aug 27, 2024
0e300d1
Merge pull request #78 from UCDavisLibrary/sb-email-notification
spelkey-ucd Aug 30, 2024
bb78fd9
updates to email service
spelkey-ucd Aug 30, 2024
357b313
#93
spelkey-ucd Sep 3, 2024
5cc8724
stash
sbagg Sep 4, 2024
fb035a0
stash
sbagg Sep 4, 2024
ecaf02c
#93
spelkey-ucd Sep 4, 2024
5492724
#92
spelkey-ucd Sep 4, 2024
f176905
Merge branch 'dev' into sb-email-qc-component
sbagg Sep 5, 2024
78a0373
Merge branch 'dev' into sb-email-qc-component
sbagg Sep 5, 2024
eae4593
updated qc
sbagg Sep 5, 2024
4bd17af
updated qc
sbagg Sep 5, 2024
ac0deb5
updated qc 2
sbagg Sep 5, 2024
dd576a0
updated qc 2
sbagg Sep 5, 2024
79ba253
updated qc 3
sbagg Sep 5, 2024
fb915c8
updated qc 3
sbagg Sep 5, 2024
94516ea
stash
sbagg Sep 5, 2024
dab31a8
stash
sbagg Sep 5, 2024
a30c8ba
#95
spelkey-ucd Sep 5, 2024
3955155
#95
spelkey-ucd Sep 6, 2024
3349b95
#98
spelkey-ucd Sep 6, 2024
8c92021
#98
spelkey-ucd Sep 9, 2024
23a67cc
#98
spelkey-ucd Sep 10, 2024
26748bc
#98
spelkey-ucd Sep 11, 2024
896cc1a
#98
spelkey-ucd Sep 12, 2024
9553ba6
#100
spelkey-ucd Sep 13, 2024
236bf4c
#101
spelkey-ucd Sep 13, 2024
3dc808d
#94
spelkey-ucd Sep 16, 2024
9d2baa7
#94
spelkey-ucd Sep 16, 2024
9f52197
#87
spelkey-ucd Sep 17, 2024
b40177d
#99
spelkey-ucd Sep 17, 2024
5236e81
#6
spelkey-ucd Sep 18, 2024
902a646
compose update
spelkey-ucd Sep 18, 2024
4327999
deployment files
spelkey-ucd Sep 18, 2024
6d19064
some bug fixes
spelkey-ucd Sep 18, 2024
b22549b
merge main
spelkey-ucd Sep 18, 2024
d5b3d59
fix for #6
spelkey-ucd Sep 19, 2024
1a136f3
pull requests added
sbagg Sep 23, 2024
17b43ed
pull requests added
sbagg Sep 23, 2024
3638d0d
Merge branch 'dev' into sb-email-qc-component
sbagg Sep 23, 2024
092768c
Merge branch 'dev' into sb-email-qc-component
sbagg Sep 23, 2024
2fcf631
qc deleted from home
sbagg Sep 23, 2024
a6fe595
qc deleted from home
sbagg Sep 23, 2024
7bd9560
stash
sbagg Oct 24, 2024
c0daa8b
stash
sbagg Oct 29, 2024
eb8232c
update notification message
sbagg Oct 29, 2024
0b5783c
Merge branch 'dev' into sb-email-qc-component
sbagg Oct 29, 2024
850eb48
change for pull made
sbagg Nov 4, 2024
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
4 changes: 4 additions & 0 deletions deploy/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ fi

# Main version number we are tagging the app with. Always update
# this when you cut a new version of the app!
<<<<<<< HEAD
APP_VERSION=v1.0.0.${BUILD_NUM}
=======
APP_SEMVER=1.0.0
APP_VERSION=v${APP_SEMVER}.${BUILD_NUM}
>>>>>>> e08265d6bde15cb1c212bc80a0d6db0fec292361

# This is used anywhere a name is needed for the app
APP_SLUG=ucdlib-travel
Expand Down
6 changes: 6 additions & 0 deletions deploy/db-entrypoint/001-tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ CREATE TABLE approval_request (
is_current BOOLEAN NOT NULL DEFAULT TRUE,
approval_status VARCHAR(100) NOT NULL,
reimbursement_status VARCHAR(100) NOT NULL,
<<<<<<< HEAD
=======
expect_more_reimbursement BOOLEAN NOT NULL DEFAULT FALSE,
>>>>>>> e08265d6bde15cb1c212bc80a0d6db0fec292361
employee_kerberos VARCHAR(100) REFERENCES employee(kerberos),
label VARCHAR(100),
organization VARCHAR(100),
Expand Down Expand Up @@ -247,7 +250,10 @@ COMMENT ON COLUMN reimbursement_request_expense.details IS 'Additional details a
CREATE TABLE reimbursement_request_receipt (
reimbursement_request_receipt_id SERIAL PRIMARY KEY,
reimbursement_request_id INTEGER REFERENCES reimbursement_request(reimbursement_request_id),
<<<<<<< HEAD
=======
reimbursement_request_expense_id INTEGER REFERENCES reimbursement_request_expense(reimbursement_request_expense_id),
>>>>>>> e08265d6bde15cb1c212bc80a0d6db0fec292361
file_path TEXT NOT NULL,
file_type VARCHAR(100) NOT NULL,
label VARCHAR(200),
Expand Down
13 changes: 13 additions & 0 deletions deploy/db-entrypoint/004-settings.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ INSERT INTO "settings" ("key", "value", "label", "description", "default_value",
VALUES ('approval_request_form_location_in-state', '', 'Location: In-state desciption', 'Description below the in-state option of the location radio on the approval request form', NULL, '0', NULL, '10', 'textarea', '{approval-requests,admin-settings}', '1');

INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
<<<<<<< HEAD
VALUES ('approval_request_form_location_out-of-state', '', 'Location: Out of State Description', 'Description below the out-of-state option of the location radio on the approval request form', 'IMPORTANT: All out-of-state trips must be registered using the <a href=''https://ehs.ucop.edu/away/''>UC Away form</a>.', '1', NULL, '10', 'textarea', '{approval-requests,admin-settings}', '1');
=======
VALUES ('approval_request_form_location_out-of-state', '', 'Location: Out of State Description', 'Description below the out-of-state option of the location radio on the approval request form', '', '0', NULL, '10', 'textarea', '{approval-requests,admin-settings}', '1');
>>>>>>> e08265d6bde15cb1c212bc80a0d6db0fec292361

INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
VALUES ('approval_request_form_location_virtual', '', 'Location: Virtual desciption', 'Description below the virtual option of the location radio on the approval request form', NULL, '0', NULL, '10', 'textarea', '{approval-requests,admin-settings}', '1');
Expand All @@ -34,6 +38,8 @@ VALUES ('allocation_summary_description', '', 'Allocation Summary Description',
INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
VALUES ('approval_request_form_release_time', '', 'Release Time - Description', 'Displays below release time input on approval request form', NULL, '0', NULL, '10', 'textarea', '{approval-requests,admin-settings}', '0');

<<<<<<< HEAD
=======
INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
VALUES ('approval_request_more_reimbursement_description', '', 'More Reimbursement Description', 'Shows in reimbursement section of approval request when all reimbursements have been processed, but employee has indicated that more requests are forthcoming', 'Even though all reimbursement requests have been fully processed, the overall reimbursement status for this trip/professional development opportunity is still "partially processed" because the employee indicated that more reimbursement requests are forthcoming.', '1', NULL, '10', 'textarea', '{approval-requests,admin-settings}', '1');

Expand All @@ -48,6 +54,7 @@ VALUES ('approval_request_form_business_purpose', '', 'Business Purpose Descript
INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
VALUES ('approval_request_form_location_description', '', 'Location: Overall Description', 'Displays below location section header on new approval request form', 'IMPORTANT: All out-of-state trips must be registered using the <a href=''https://ehs.ucop.edu/away/''>UC Away form</a>.', '1', NULL, '10', 'textarea', '{approval-requests,admin-settings}', '1');

>>>>>>> e08265d6bde15cb1c212bc80a0d6db0fec292361
-- admin line items page
INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
VALUES ('admin_line_items_description', '', 'Admin - Line Items Description', 'Displays on top of line item admin settings page', 'Requesters will be able to select and assign monetary values to the following line items when submitting an approval form', '1', NULL, '100', 'textarea', '{admin-line-items,admin-settings}', '1');
Expand All @@ -69,8 +76,11 @@ INSERT INTO "settings" ("key", "value", "label", "description", "default_value",
VALUES ('admin_allocations_general_settings_page_description', '', 'Admin - Employee Allocations General Settings Page Description', NULL, 'Manage form field help text and other general settings.', '1', NULL, '100', 'textarea', '{admin-page,admin-settings}', '0');
INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
VALUES ('admin_allocations_line_items_page_description', '', 'Admin - Employee Allocations Line Items Page Description', NULL, 'Manage expenditure line item options when submitting an approval request.', '1', NULL, '100', 'textarea', '{admin-page,admin-settings}', '0');
<<<<<<< HEAD
=======
INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
VALUES ('admin_approval_requests_page_description', '', 'Admin - Approval Requests Page Description', NULL, 'View and manage all approval requests.', '1', NULL, '100', 'textarea', '{admin-page,admin-settings}', '0');
>>>>>>> e08265d6bde15cb1c212bc80a0d6db0fec292361

-- admin email settings
INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html") VALUES
Expand Down Expand Up @@ -223,12 +233,15 @@ INSERT INTO "settings" ("key", "value", "label", "description", "default_value",
VALUES ('reimbursement_form_exceed_message', '', 'Exceeded Approved Expenses Message', 'Displayed on reimbursement request form if expenses exceed approved dollar amount.', 'You have exceeded the approved dollar amount for this travel, training, or professional development event. <br /> <br />Please verify with initial approvers before submitting this request.', '1', NULL, '200', 'textarea', '{admin-settings,reimbursement-requests}', '1');
INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
VALUES ('reimbursement_no_fund_transactions_message', '', 'No Fund Transactions Message', 'Displays in "Reimbursement Status" section of reimbursement request if there has been nothing entered into Aggie Expense.', 'No reimbursements have been entered into Aggie Expense yet. Please check back later.', '1', NULL, '200', 'textarea', '{admin-settings,reimbursement-requests}', '1');
<<<<<<< HEAD
=======
INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
VALUES ('reimbursement_form_receipts', '', 'Reimbursement Request Receipts Description', 'Displays above receipt repeater field on new reimbursement request page', NULL, '0', NULL, '30', 'textarea', '{reimbursement-requests,admin-settings}', '0');
INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
VALUES ('reimbursement_form_label_options', '', 'Reimbursement Request Label Options', 'Populates "Label" select options on new reimbursement request.', 'Post-Trip Expenses
Pre-Trip Expenses
Other Expenses', '1', NULL, '30', 'textarea', '{reimbursement-requests,admin-settings}', '0');
>>>>>>> e08265d6bde15cb1c212bc80a0d6db0fec292361

-- reports
INSERT INTO "settings" ("key", "value", "label", "description", "default_value", "use_default_value", "keywords", "settings_page_order", "input_type", "categories", "can_be_html")
Expand Down
1 change: 1 addition & 0 deletions src/api/admin/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default (api) => {
const sender = payload.token.token.email;
const emailContent = payload.emailContent;


if ( !emailContent.subject || !emailContent.text ) {
return res.status(400).json({error: true, message: 'Error with payload section emailContent. Email Subject or Email Text can not be empty'});
}
Expand Down
4 changes: 4 additions & 0 deletions src/client/js/app-main.tpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,13 @@ return html`
<app-page-admin-settings id='admin-settings'></app-page-admin-settings>
<app-page-admin-allocations id='admin-allocations'></app-page-admin-allocations>
<app-page-admin-allocations-new id='admin-allocations-new'></app-page-admin-allocations-new>
<<<<<<< HEAD
<app-page-admin-line-items id='admin-line-items'></app-page-admin-line-items>
=======
<app-page-admin-approval-requests id='admin-approval-requests'></app-page-admin-approval-requests>
<app-page-admin-line-items id='admin-line-items'></app-page-admin-line-items>
<app-page-admin-email-settings id='admin-email-settings'></app-page-admin-email-settings>
>>>>>>> e08265d6bde15cb1c212bc80a0d6db0fec292361
<app-page-admin-reimbursement id='admin-reimbursement'></app-page-admin-reimbursement>
<app-page-approver id='approver'></app-page-approver>
<app-page-reimbursement id='reimbursement'></app-page-reimbursement>
Expand Down
109 changes: 109 additions & 0 deletions src/client/js/components/app-questions-or-comments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
import { LitElement } from 'lit';
import * as Templates from "./app-questions-or-comments.tpl.js";
import { MainDomElement } from "@ucd-lib/theme-elements/utils/mixins/main-dom-element.js";
import { createRef } from 'lit/directives/ref.js';
import { LitCorkUtils, Mixin } from "@ucd-lib/cork-app-utils";

/**
* @class AppQuestionsOrComments
* @description Component that either
* 1. Records a comment from the user
* 2. Records a question from the user
* @property {Number} approvalRequestId - Approval Request ID
* @property {Number} reimbursementRequestId - Reimbursement ID
*/
export default class AppQuestionsOrComments extends Mixin(LitElement)
.with(LitCorkUtils, MainDomElement) {

static get properties() {
return {
approvalRequestId: {type: Number, attribute: 'approval-request-id'},
reimbursementRequestId: {type: Number, attribute: 'reimbursement-request-id'},
modalTitle: {type: String},
modalContent: {type: String},
data: {type: Object},
comments: {type:String},
page:{type:String},
}
}

constructor() {
super();

this.render = Templates.render.bind(this);

this.page = "";
this.data = {};
this.subject = '';
this.comments = '';
this.actions = [
{text: 'Submit', value: 'questions-comments-item', color: 'quad'},
{text: 'Cancel', value: 'cancel', invert: true, color: 'primary'}
];
this.settingsCategory = 'admin-email-settings'
this.dialogRef = createRef();

this._injectModel('AppStateModel', 'NotificationModel', 'ApprovalRequestModel', 'AuthModel', 'SettingsModel');
}

/**
* @description Bound to modal button(s) click event
* Will emit a AppStateModel event with the action value and data of qc
*/
_onModalClick(){
sbagg marked this conversation as resolved.
Show resolved Hide resolved
this.dialogRef.value.showModal();
}

/**
* @description Bound to dialog button(s) click event
* Will emit a dialog-action AppStateModel event with the action value and data
* @param {String} action - The action value to emit
*/
async _onButtonClick(action){
this.dialogRef.value.close();

if ( action !== 'questions-comments-item' ) return;

let url = window.location.pathname;

this.data = {
"emailContent": {
subject: this.subject,
sbagg marked this conversation as resolved.
Show resolved Hide resolved
text: this.comments
}, // email content
"url": url, // url
"requests": {
approvalRequestId: this.approvalRequestId || null,
reimbursementRequestId: this.reimbursementRequestId || null,
}, // requests could be replaced with id
notificationType: 'questions-comments' // notification type
}

await this.NotificationModel.createNotificationComments(this.data);
}

/**
* @description bound to NotificationModel notification-comments event
* @param {Object} e - cork-app-utils event
* @returns
*/
_onNotificationComments(e) {
sbagg marked this conversation as resolved.
Show resolved Hide resolved
let message, type;
if ( e.state !== 'loaded' ) return;

if(e.payload){
message = 'Successfully Created a Help Notification Comment';
type= 'success';
} else {
message = 'Error When Creating a Help Notification Comment';
type= 'error';
}

this.AppStateModel.showToast({message: message, type: type});


}

}

customElements.define('app-questions-or-comments', AppQuestionsOrComments);
45 changes: 45 additions & 0 deletions src/client/js/components/app-questions-or-comments.tpl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { html } from 'lit';
import { ref } from 'lit/directives/ref.js';


export function render() {
return html`
<a @click=${e => this._onModalClick(e)} class="focal-link category-brand--delta u-space-mb">
<div class="focal-link__figure focal-link__icon">
<i class="fa fa-question fa-2x"></i>
</div>
<div class="focal-link__body">
<h2 class='heading--highlight'>Question and Comments</h2>
</div>
</a>

<dialog ${ref(this.dialogRef)}>
<div>
<h2 class='heading--highlight'>Question and Comments</h2>
</div>
<div>
<input class='subject' placeholder="Add Subject Line..." .value=${this.subject} @input=${e => this.subject = e.target.value}>
</div>
<br />

<div>
<textarea class='comments' rows=10 cols=75 placeholder="Ask us anything...." .value=${this.comments} @input=${e => this.comments = e.target.value}></textarea>
</div>
<div class='alignable-promo__buttons flex flex--justify-center flex--wrap u-space-mt--large'>

${this.actions.map(action => html`
<div class=${action.color ? 'category-brand--' + action.color : ''}>
<button
@click=${e => this._onButtonClick(action.value)}
class='btn btn--${action.invert ? 'invert' : 'primary'}'>${action.text}
</button>
</div>
`)}
</div>
</dialog>


`;}



1 change: 1 addition & 0 deletions src/client/js/pages/app-page-home.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import promiseUtils from '../../../lib/utils/promiseUtils.js';
import applicationOptions from '../../../lib/utils/applicationOptions.js';
import typeTransform from "../../../lib/utils/typeTransform.js";
import urlUtils from '../../../lib/utils/urlUtils.js';
import '../components/app-questions-or-comments.js'

/**
* @description Element for displaying the home page
Expand Down
1 change: 1 addition & 0 deletions src/client/js/pages/app-page-home.tpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '@ucd-lib/theme-elements/brand/ucd-theme-pagination/ucd-theme-pagination.

export function render() {
return html`
<app-questions-or-comments></app-questions-or-comments>
<div class='l-gutter watercolor-bg--blue'>
<div class="l-shrink u-space-py--large">
<h2 class='heading--center-underline u-space-mb--large'>Your Active Requests</h2>
Expand Down
16 changes: 16 additions & 0 deletions src/client/scss/components/app-questions-or-comments.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
app-questions-or-comments {
dialog::backdrop {
background-color: black;
opacity: 0.5;
}
dialog {
border: none;
padding: 2rem;
}
.alignable-promo__buttons {
display: flex;
align-items: center;
margin-top: 1rem;
flex-wrap: wrap;
}
}
2 changes: 2 additions & 0 deletions src/lib/cork/models/NotificationModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class NotificationModel extends BaseModel {
try {
await this.service.createNotificationComments(payload, timestamp);
} catch(e) {}

const state = this.store.data.notificationComments[timestamp];

if ( state && state.state === 'loaded' ) {
this.store.data.notificationComments = {};
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/db-models/emailController.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Email {

let emailSent;
let details = {};
body = body + `\n${serverConfig.appRoot}/${url}`
body = body + `\n${serverConfig.appRoot}${url}`

const from = sender;
const to = await settings._getEmail(); // This is getting the email to send help too currently [email protected]
Expand Down
1 change: 0 additions & 1 deletion src/lib/db-models/employee.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ class Employee {
// return records
return returnSingle ? {res: recordsById[ids[0]]} : {res: ids.map(id => recordsById[id]).filter(record => record)};
}

}

export default new Employee();
1 change: 1 addition & 0 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.