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

App Overhaul & Stabilization #175

Merged
merged 316 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
316 commits
Select commit Hold shift + click to select a range
65744d9
Add or update the Azure App Service build and deployment workflow config
siddheshraze Feb 23, 2024
00de331
live site testing
siddheshraze Feb 23, 2024
b2b890f
trying to see if I can force system to look in frontend dir for packa…
siddheshraze Feb 23, 2024
90e129b
fixing build errors. live site deployment testing
siddheshraze Feb 23, 2024
19e15b0
adding missing .pem file
siddheshraze Feb 23, 2024
4c5b2bd
attempting to add .env file
siddheshraze Feb 23, 2024
11d9edf
adding environment reference -- secrets. not referencing correctly
siddheshraze Feb 23, 2024
2a2abba
just added development slot and updated publish profile reference. re…
siddheshraze Feb 23, 2024
acd27fd
attempting to update workflow by pushing zip file to azure instead of…
siddheshraze Feb 23, 2024
144e326
removing storybook usage and setup. trimming contents of package.json…
siddheshraze Feb 23, 2024
d509b91
not sure why, but compression -9 causes errors in Azure deployment. r…
siddheshraze Feb 23, 2024
4303ce2
removing caching command to simplify things
siddheshraze Feb 23, 2024
7670c8b
adding .next to gitignore. updating zipper system to unzip files befo…
siddheshraze Feb 23, 2024
2ecc515
trying to manually create env vars instead of just creating a .env do…
siddheshraze Feb 23, 2024
cab650e
specifying package in workflow -- realizing that the system is portin…
siddheshraze Feb 23, 2024
f0fabca
trying to deploy to prod slot instead of custom dev slot
siddheshraze Feb 23, 2024
5b731de
adding standalone export statement.
siddheshraze Feb 26, 2024
3312bde
correcting next start command to use node standalone server JS file -…
siddheshraze Feb 26, 2024
4596546
reverting package spec to azure deployment to . instead of frontend/
siddheshraze Feb 26, 2024
e2fed9a
found tutorial online. applying changes noted there
siddheshraze Feb 26, 2024
f66daf0
forgot to remove unnecessary upload stage from workflow
siddheshraze Feb 26, 2024
aec0886
changes to the workflow should trigger a new build
siddheshraze Feb 26, 2024
b5dfb29
Add or update the Azure App Service build and deployment workflow config
siddheshraze Feb 26, 2024
058233b
port specification
siddheshraze Feb 26, 2024
845cd02
fixing merge conflicts from workflow for new application (deleted old…
siddheshraze Feb 26, 2024
f950a42
not sure why generated env file is not being recognized
siddheshraze Feb 26, 2024
3d90fd1
welp forgot to set environment in workflow
siddheshraze Feb 26, 2024
803f16e
specifying frontend directory for packaging in workflow
siddheshraze Feb 26, 2024
7dfbb8b
reworking system start/app login flow. changes made ot the workflow.
siddheshraze Feb 26, 2024
7288db0
continuing full system updates. reworking validation system to operat…
siddheshraze Feb 27, 2024
98ccef4
trying to see if changing the port statement here will change there
siddheshraze Feb 27, 2024
75689ec
attempting to change port in build to get the azure container to conn…
siddheshraze Feb 27, 2024
f030736
attempting to change ecosystem.config.js file to see if that will all…
siddheshraze Feb 27, 2024
5c52ac3
removing next build cache statement
siddheshraze Feb 27, 2024
65fd181
testing restructuring as part of build process
siddheshraze Feb 27, 2024
7bf0a72
trying something new
siddheshraze Feb 27, 2024
9d15642
messed up build instructions
siddheshraze Feb 27, 2024
c7888e8
trying to move frontend into main dir failed. trying this again with …
siddheshraze Feb 27, 2024
8862856
live site is online, but nextauth callback url is still referencing l…
siddheshraze Feb 27, 2024
c1c6182
checking to see if resetting port to 3000 in ecosystem file will keep…
siddheshraze Feb 27, 2024
18fcd99
not sure why, but API calls to the fetchall endpoints are failing for…
siddheshraze Feb 27, 2024
b11660a
forgot to make sure that the .pem signin file is also added to the st…
siddheshraze Feb 27, 2024
1c81f3c
clerical error
siddheshraze Feb 27, 2024
00bb8fb
saving progress. Currently, the error validation display is incomplet…
siddheshraze Feb 28, 2024
a996a80
saving changes -- live site update
siddheshraze Mar 4, 2024
0aa8413
updated view implementation done. test error rows checkbox implemented.
siddheshraze Mar 5, 2024
beedd1f
build failure -- forgot to add missing parameter to deprecated page
siddheshraze Mar 6, 2024
a7027f8
live site's downloadallfiles route is failing? tracing error back see…
siddheshraze Mar 6, 2024
d49148f
receiving the following error: TypeError: Expected signal to be an in…
siddheshraze Mar 6, 2024
6a9f70b
after research, it seems that a now-default setting to next's serverM…
siddheshraze Mar 6, 2024
40d8df9
missing column headers and data from viewuploadedfiles table
siddheshraze Mar 6, 2024
f5bda59
saving progress. email-based authentication is still incomplete
siddheshraze Mar 6, 2024
be77180
full-scale changes. Added the following changes:
Mar 11, 2024
7fc64f5
full-scale changes and code reformatting.
Mar 12, 2024
6ee51e0
forgot to update UploadFireAzure component reference in uploadparent.tsx
siddheshraze Mar 12, 2024
b0b530c
removing throw new error statement here
siddheshraze Mar 12, 2024
0a0b8d0
saving changes -- datagridcommons testing is ongoing. Integration of …
siddheshraze Mar 20, 2024
c7a3637
QuadratPersonnel junction table has been successfully integrated into…
siddheshraze Mar 22, 2024
4e344a9
confirmation dialogs added to generic datagrid functions before savin…
siddheshraze Mar 22, 2024
2d220cb
Adding function to clarify dialog text when personnel are being added…
siddheshraze Mar 22, 2024
d15f5df
package versions updated. Had to do some reworking to make sure that …
siddheshraze Mar 25, 2024
57eb0de
promise.all seems to be breaking things. Removing and trying again.
siddheshraze Mar 25, 2024
c9bfc9a
removing hash access. seems to be breaking (throwing 500)
siddheshraze Mar 25, 2024
77d00ca
forgot to add azure catalog schema to github environmental variable. …
siddheshraze Mar 25, 2024
95cf274
hashing was breaking because catalog environmental schema reference w…
siddheshraze Mar 25, 2024
23cbe74
never mind hashing still doesn't work
siddheshraze Mar 25, 2024
8f90031
adding secret to new env being generated in live site
siddheshraze Mar 25, 2024
d9bec02
fixing breakage in live site
siddheshraze Mar 25, 2024
34f8776
the changes to the yml file were not actually included because I was …
siddheshraze Mar 25, 2024
0d8f85a
params null check added
siddheshraze Mar 25, 2024
4ae4494
I think I've worked the problem with the census datagrid
siddheshraze Mar 26, 2024
75b0eb3
continuing tinkering with the census grid columns -- changing system …
siddheshraze Mar 26, 2024
5477e04
reverting this change super fast -- restoring null formatting
siddheshraze Mar 26, 2024
23a23f6
removing excess columns n stuff from utilized grid columns, accidenta…
siddheshraze Mar 26, 2024
e529fa7
formatting. adding null startdate formatting b/c mpala census selecti…
siddheshraze Mar 26, 2024
5df0ee1
forgot extra condition in login system. adding some extra filtering t…
siddheshraze Mar 26, 2024
0f8b3aa
saving changes. Opening PR here shortly.
siddheshraze Mar 27, 2024
5eeae2c
addressing feedback from testers. Adding broad-spec formatting to rem…
siddheshraze Mar 29, 2024
e41fcc6
debugging validation scripts -- seeing date conversions not being pro…
siddheshraze Mar 29, 2024
b18bc9d
1. removing date parsing from processcensus.tsx -- parsing has been m…
siddheshraze Apr 1, 2024
2cb7eb4
1. restructuring upload system -- added segments subfolder to highlig…
siddheshraze Apr 2, 2024
f466a85
beginning Jest test unit test process -- some implementations complete
siddheshraze Apr 4, 2024
f9ddf85
partial test cases added for generic datagrid and macros
siddheshraze Apr 4, 2024
d534b9e
reorganizing file structure to increase visibility and adding API rou…
siddheshraze Apr 4, 2024
6673731
saving changes. Will resume dev shortly
siddheshraze Apr 10, 2024
7d63f0c
updated .gitignore pulled in from main
siddheshraze Apr 10, 2024
38d2a09
manually implemented validation routes replaced with dynamic routes w…
siddheshraze Apr 11, 2024
d052326
deprecated API routes removed
siddheshraze Apr 11, 2024
2564025
running cleanup command on codebase -- removing unused imports, reorg…
siddheshraze Apr 12, 2024
25173f8
adding tests and formatting
siddheshraze Apr 15, 2024
193ef16
Bug fixes:
siddheshraze Apr 17, 2024
8354149
reformatting to ensure that existing datagrids work while adding rest…
siddheshraze Apr 18, 2024
8d469ae
1. removing default dialog prompt
siddheshraze Apr 18, 2024
5fdfca9
printing system fixed. css bug in rainbow icon resolved. context refe…
siddheshraze Apr 18, 2024
13ad448
next version
siddheshraze Apr 18, 2024
5465984
beginning process of integrating new subquadrats table into system. a…
siddheshraze Apr 19, 2024
b24b1bf
removing data files
siddheshraze Apr 19, 2024
71d0fb0
I thought I'd removed sample data and stuff already but it's been ad…
siddheshraze Apr 19, 2024
1d82c7b
Merge remote-tracking branch 'origin/main' into feature-development, …
siddheshraze Apr 19, 2024
e96c9b4
merging updates to feature-development in
siddheshraze Apr 19, 2024
f964a76
Project-wide changes:
siddheshraze Apr 22, 2024
61d97d9
applying eslint changes across project. Replaced fetchall endpoints w…
siddheshraze Apr 23, 2024
88e76ff
removing package-lock.json and forcing update to latest versions univ…
siddheshraze Apr 23, 2024
86736ec
fixing validation bug, adding subquadrat ID row to measurements, fixi…
siddheshraze Apr 26, 2024
ac03a99
full-scope changes. Beginning dynamic API routing system construction…
siddheshraze May 3, 2024
28587fd
slug api routing system seems to be somewhat stable now. It's been mo…
siddheshraze May 3, 2024
580a83c
Large-scale changes:
siddheshraze May 10, 2024
5ee2f3a
rework continued. Saving changes before attempting integration of a c…
siddheshraze May 15, 2024
c9ce02f
attempting full-scope breakdown of sidebar file into interlocking sub…
siddheshraze May 16, 2024
614f16f
never mind, lift has been scheduled for future release due to LOE tim…
siddheshraze May 16, 2024
391f73a
okay, large-scale changes seem to be working. quadratpersonnel datagr…
siddheshraze May 17, 2024
e586625
removing progress dialog's independent API calls and replacing with c…
siddheshraze May 19, 2024
f6336b9
1. upload system updated integrated into new schema
siddheshraze May 22, 2024
df4e384
Documentation changes -- other changes still pending, but removed dep…
siddheshraze May 27, 2024
1c45173
core changes:
siddheshraze Jun 3, 2024
e7bfe6e
minor edit to ensure utc applied
siddheshraze Jun 3, 2024
dcd4449
need to build out and update documentation as contract end is approac…
siddheshraze Jun 4, 2024
c147afe
saving changes -- might be removing this shortly.
siddheshraze Jun 4, 2024
6ecd948
test
siddheshraze Jun 4, 2024
042f239
resetting -- seems like this isn't going to work
siddheshraze Jun 4, 2024
c10318e
removing storybook installation -- needs to be a future development t…
siddheshraze Jun 5, 2024
8855213
adding missing .pem file
siddheshraze Feb 23, 2024
11f8b0f
resolving merge issues
siddheshraze Jun 5, 2024
eb3e56a
partial save -- should not be merged
siddheshraze Jun 5, 2024
84fabe0
documentation changes
siddheshraze Jun 6, 2024
f8d95fa
workspace docs file
siddheshraze Jun 6, 2024
9a92fa0
Merge branch 'main' into forestgeo-app-aardvark
siddheshraze Jun 6, 2024
943231c
resolving package.json error
siddheshraze Jun 6, 2024
6c3e5bf
basic postvalidation route setup and added
siddheshraze Jun 16, 2024
0e4d8af
partial changes made, saving.
siddheshraze Jun 20, 2024
a9320c1
merging from main
siddheshraze Jun 20, 2024
e6cc348
Merge remote-tracking branch 'origin/postvalidation-statistics' into …
siddheshraze Jun 20, 2024
6b876a1
saving changes -- need to resolve mysql connection state being set to…
siddheshraze Jun 21, 2024
09bc009
Adding additional emergency settings to ensure that connection is not…
siddheshraze Jun 21, 2024
be3593d
Add or update the Azure App Service build and deployment workflow config
siddheshraze Jun 21, 2024
18f7b1d
Remove the Azure App Service build and deployment workflow config
siddheshraze Jun 21, 2024
776cce4
attempting to add development livesite job to test without needing to…
siddheshraze Jun 21, 2024
2979da5
build failure -- testing
siddheshraze Jun 21, 2024
30b40d3
wildcards and next cache steps added. Wildcards will ensure that all …
siddheshraze Jun 21, 2024
c255060
received failed login error -- added dedicated login step
siddheshraze Jun 21, 2024
b9b72bd
login step seems to be causing new issues -- commenting out and attem…
siddheshraze Jun 21, 2024
3c0042b
accidentally deleted main build step, restoring and commenting out cu…
siddheshraze Jun 21, 2024
487f6bf
accidentally using wrong publish profile reference
siddheshraze Jun 21, 2024
cd477bf
not sure why, but next-auth login is not being permitted on developme…
siddheshraze Jun 21, 2024
38ec052
trying more stuff to see if I can get the development-based authentic…
siddheshraze Jun 21, 2024
6b888c7
need to fix base nextauth url
siddheshraze Jun 21, 2024
37990ac
accidentally made the change backwards
siddheshraze Jun 21, 2024
ed10f40
temp -- saving changes. tried updating packages and that broke everyt…
siddheshraze Jun 21, 2024
d6c1ed7
minor formatting changes, adding enhanced shortcut implementation to …
siddheshraze Jun 24, 2024
bb89dcd
adding framework for icon customization as versions change
siddheshraze Jun 24, 2024
51b5531
renaming branch
siddheshraze Jun 24, 2024
400e1b5
acacia version signature incorporated. Shell folder system and icon s…
siddheshraze Jun 24, 2024
550eef8
icon updated to forestgeo-app central
siddheshraze Jun 24, 2024
5e55442
saving changes. Mostly styling updates and reworkings to reduce code …
siddheshraze Jun 25, 2024
d24f1a4
Adding changelog and version explanation
siddheshraze Jun 25, 2024
e3a3be6
first-round error export function created. Pending testing -- will up…
siddheshraze Jun 25, 2024
5c324be
testing potential resolution to vitest get-stream issue
siddheshraze Jun 27, 2024
20c5426
extensive core schema changes. Triggers and changelog system implemen…
siddheshraze Jul 1, 2024
525e93d
incorporating SQL structure. Minor changes made to other authenticati…
siddheshraze Jul 5, 2024
c08b6a3
PlotRDS type was updated to remove usesSubquadrats, but summary page …
siddheshraze Jul 5, 2024
5715810
decided to re-add the usesSubquadrats property to the PlotRDS type to…
siddheshraze Jul 5, 2024
e99b46b
migration script has been updated to target the sinharaja data source…
siddheshraze Jul 8, 2024
ea06968
accidentally forgot to incorporate methods to handle pool reinitializ…
siddheshraze Jul 9, 2024
042bded
changelog:
siddheshraze Jul 17, 2024
6bc8a7e
1. added resetschema.sql function to reset testing schema
siddheshraze Jul 17, 2024
44728d3
skipping rollovermodal unit tests -- they're not up-to-date and don't…
siddheshraze Jul 17, 2024
73ac210
- refactoring changes and centralizing features.
siddheshraze Jul 22, 2024
6c772ca
Updating modules and fixing a small emotioncache error.
siddheshraze Jul 23, 2024
efc9d5d
saving changes -- pushing to dev
siddheshraze Jul 24, 2024
385df3d
re-enabling feedback form
siddheshraze Jul 24, 2024
825bcdd
github feedback modal is throwing environmental errors, but only when…
siddheshraze Jul 24, 2024
5eeb3b0
Found the issue -- needed to update workflow to incorporate new env v…
siddheshraze Jul 24, 2024
0dd2a4c
vitest bug found, determined to be thrown by potentially outdated ver…
siddheshraze Jul 24, 2024
65580ab
Adding default error pages to all routes. Will later customize to eac…
siddheshraze Jul 25, 2024
c621588
minor additions made here to clarify which error page is which
siddheshraze Jul 25, 2024
076d4e1
1. view system has been updated to use materialized views instead of …
siddheshraze Jul 31, 2024
9753627
fixing links in middleware. Attempted to upgrade next-auth to v5 but …
siddheshraze Jul 31, 2024
d47e4a2
minor updates through npm-check-updates
siddheshraze Jul 31, 2024
8e04600
partial commit - saving changes to ensure that resetting will not rem…
siddheshraze Aug 5, 2024
c1127a1
Prettier and ESLint successfully integrated into project. Package.jso…
siddheshraze Aug 5, 2024
f4390e7
1. Applying prettier changes.
siddheshraze Aug 5, 2024
ff819f8
1. minor enhancements to the measurements-oriented datagrid to displa…
siddheshraze Aug 6, 2024
320ac7c
1. minor enhancements to the measurements-oriented datagrid to displa…
siddheshraze Aug 6, 2024
85e3cb7
saving changes. Dashboard system reconfigured and validations page ad…
siddheshraze Aug 7, 2024
11e9df5
Full-scale formatting. Baseline dashboard has been completed. Baselin…
siddheshraze Aug 8, 2024
555e307
Accidentally deleted validation API routes, restoring. Formatting and…
siddheshraze Aug 12, 2024
cbfd04d
Saving changes. Continuing reworking of validation CRUD system and be…
siddheshraze Aug 13, 2024
dff7860
Removing row pending/failed validations grids from validations page. …
siddheshraze Aug 13, 2024
94e376b
missed a file for some reason
siddheshraze Aug 13, 2024
f4bdc5c
Accidentally messed up structuring of datamapper file (bugs introduce…
siddheshraze Aug 13, 2024
3605928
partial save. resolving baseline changes for validation CRUD system a…
siddheshraze Aug 15, 2024
f5ca6f0
Breaking changes being saved. Partial completion of core updates to v…
siddheshraze Aug 18, 2024
649404d
Broken utils functions have been corrected. Personnel upload has been…
siddheshraze Aug 18, 2024
63a9017
Continuing correction process to upload system to ensure it's working…
siddheshraze Aug 20, 2024
afaac25
Revamping personnel datagrid to display role information along with r…
siddheshraze Aug 20, 2024
01d1cad
incorporating documentation sources. Beginning refactor and integrati…
siddheshraze Aug 21, 2024
d54d51c
Additional documentation started. Will continue expanding the full se…
siddheshraze Aug 22, 2024
f8e3276
New documentation stack completed. Pending review and feedback
siddheshraze Aug 22, 2024
aab6c36
first-attempt documentation github pages deployment
siddheshraze Aug 23, 2024
7435304
corrections and adding test/deployment steps for safety
siddheshraze Aug 23, 2024
7db391f
separated build-and-deploy into dedicated jobs. attempted fix for doc…
siddheshraze Aug 23, 2024
dc5481e
bug fixes for test-docs step
siddheshraze Aug 23, 2024
4aaa542
still breaking. trying to add fixes
siddheshraze Aug 23, 2024
68c95e5
artifacts directory creation is failing.
siddheshraze Aug 23, 2024
d7641e2
don't have direct permissions to touch github dir, using github_works…
siddheshraze Aug 23, 2024
f92a6d7
removing test-docs job. Let's see if this works better or worse
siddheshraze Aug 23, 2024
5e906ac
forgot to remove references to test-docs after deleting it
siddheshraze Aug 23, 2024
bd83549
deploy-docs is failing. Trying to implement a fix
siddheshraze Aug 23, 2024
f33a035
formatting error
siddheshraze Aug 23, 2024
a2273b2
trying a new approach
siddheshraze Aug 23, 2024
80f95f7
saving changes. partial updates made to validations system and proces…
siddheshraze Aug 26, 2024
6af591e
system changes. attempting to add roles interaction interface to pers…
siddheshraze Aug 26, 2024
a8f7a67
Merge branch 'forestgeo-app-acacia' of https://github.com/Smithsonian…
siddheshraze Aug 26, 2024
2d167e4
restructuring. Centralizing functionality and expanding validation CR…
siddheshraze Aug 27, 2024
b063769
continuing restructure of upload and validation process
siddheshraze Aug 27, 2024
18bfedc
saving changes. Upload structure has been confirmed and dynamic valid…
siddheshraze Aug 29, 2024
3cc5410
adding updated package information
siddheshraze Aug 29, 2024
6f8f32f
continuing to try and restructure the specieslimits system, the valid…
siddheshraze Sep 3, 2024
a3254ff
vitest was causing build crashes, trying repair
siddheshraze Sep 3, 2024
c2ea0cf
vitest issues are persisting.
siddheshraze Sep 3, 2024
cab2160
login errors -- nextauth is unable to find secret for some reason??
siddheshraze Sep 3, 2024
f9543e1
nextjs is still throwing a prerender pages error at all of my website…
siddheshraze Sep 4, 2024
ec39cfa
for some reason, login is failing. log stream is reporting SIGNIN_OAU…
siddheshraze Sep 4, 2024
e2d3769
comment typo
siddheshraze Sep 4, 2024
46e003f
readding nextauth url endpoint. app seems to keep redirecting to loca…
siddheshraze Sep 4, 2024
693c4f4
nextauth route had the wrong environmental variables??
siddheshraze Sep 4, 2024
d7dec8b
Running out of options -- system has resolved into an OAuthSignInErro…
siddheshraze Sep 4, 2024
1ebc0a1
trying something new for a change. Maybe this'll work??
siddheshraze Sep 4, 2024
5e34e5d
still not sure what's going on.
siddheshraze Sep 4, 2024
d6bc405
Typos are still occurring. Still trying to figure out why the oauthsi…
siddheshraze Sep 4, 2024
28a33b6
okay, i think I managed to get the local authentication working again…
siddheshraze Sep 4, 2024
4b5cf0a
Development website seems to be properly resolved. Not sure what the …
siddheshraze Sep 5, 2024
57ec6c2
full-scope changes. debounce added to layout files and selection syst…
siddheshraze Sep 6, 2024
37155c0
continuing the stabilization effort. Deeper explanation of changes wi…
siddheshraze Sep 10, 2024
07c4195
overhaul. datagrid system revamped into a single-point interaction sy…
siddheshraze Sep 11, 2024
98c25b9
Stabilization is almost completed. Testing has been completed for all…
siddheshraze Sep 12, 2024
aef80d8
isolated implementation has been resolved to address all supporting d…
siddheshraze Sep 13, 2024
6a51feb
resolving build errors.
siddheshraze Sep 13, 2024
4e44ec9
continuing the stabilization process. data baseline testing is confir…
siddheshraze Sep 13, 2024
38bbe1e
adding plotID parameter to postvalidation. Need to still integrate it…
siddheshraze Sep 13, 2024
97e81c5
minor visual change to enforce census date measurement rendering on d…
siddheshraze Sep 13, 2024
a420d83
Merge branch 'main' into forestgeo-app-acacia
siddheshraze Sep 16, 2024
b2b85e7
saving changelog changes and siteconfigs updates
siddheshraze Sep 16, 2024
7862099
adding console logging statements to debug login failures
siddheshraze Sep 17, 2024
7a71360
created access-denied page to act as an endpoint for unallowed permis…
siddheshraze Sep 18, 2024
7827bbb
1. cleaning tests -- tests need to be reimplemented in full to accoun…
siddheshraze Sep 24, 2024
f721d1a
quick update to change the package.json file
siddheshraze Sep 24, 2024
e11b782
formatting
siddheshraze Sep 24, 2024
2decf65
following feedback -- removing reentry data modal from use. Component…
siddheshraze Sep 24, 2024
2462135
adding template staging and drafting tables. updating package-lock. a…
siddheshraze Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
106 changes: 106 additions & 0 deletions .github/workflows/dev-forestgeo-livesite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: ForestGEO Development Live Site Deployment Pipeline

on:
push:
branches:
- 'forestgeo-app-*'
workflow_dispatch:

jobs:
build-app-development:
if: startsWith(github.ref, 'refs/heads/forestgeo-app-')
runs-on: ubuntu-latest
environment: development

steps:
- uses: actions/checkout@v4

- name: Set up Node.js version
uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: create env file (in frontend/ directory) -- development
id: create-env-file-dev
run: |
touch frontend/.env
echo AZURE_AD_CLIENT_SECRET=${{ secrets.AZURE_AD_CLIENT_SECRET }} >> frontend/.env
echo AZURE_AD_CLIENT_ID=${{ secrets.AZURE_AD_CLIENT_ID }} >> frontend/.env
echo AZURE_AD_TENANT_ID=${{ secrets.AZURE_AD_TENANT_ID }} >> frontend/.env
echo NEXTAUTH_SECRET=${{ secrets.NEXTAUTH_SECRET }} >> frontend/.env
echo NEXTAUTH_URL=${{ secrets.NEXTAUTH_URL_DEV }} >> frontend/.env
echo AZURE_SQL_USER=${{ secrets.AZURE_SQL_USER }} >> frontend/.env
echo AZURE_SQL_PASSWORD=${{ secrets.AZURE_SQL_PASSWORD }} >> frontend/.env
echo AZURE_SQL_SERVER=${{ secrets.AZURE_SQL_SERVER }} >> frontend/.env
echo AZURE_SQL_DATABASE=${{ secrets.AZURE_SQL_DATABASE }} >> frontend/.env
echo AZURE_SQL_PORT=${{ secrets.AZURE_SQL_PORT }} >> frontend/.env
echo AZURE_STORAGE_SAS_CONNECTION_STRING=${{ secrets.AZURE_STORAGE_SAS_CONNECTION_STRING }} >> frontend/.env
echo AZURE_SQL_SCHEMA=${{ secrets.AZURE_SQL_SCHEMA }} >> frontend/.env
echo AZURE_SQL_CATALOG_SCHEMA=${{ secrets.AZURE_SQL_CATALOG_SCHEMA }} >> frontend/.env
echo AZURE_STORAGE_CONNECTION_STRING=${{ secrets.AZURE_STORAGE_CONNECTION_STRING }} >> frontend/.env
echo NEXTAUTH_DEBUG=true >> frontend/.env
echo NODE_ENV=development >> frontend/.env
echo PORT=3000 >> frontend/.env
echo FG_PAT=${{ secrets.FG_PAT }} >> frontend/.env
echo OWNER=${{ secrets.OWNER }} >> frontend/.env
echo REPO=${{ secrets.REPO }} >> frontend/.env

- name: Cache node modules
uses: actions/cache@v2
with:
path: frontend/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Cache Next.js build
uses: actions/cache@v2
with:
path: frontend/build/cache
key: ${{ runner.os }}-next-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/.next/cache') }}
restore-keys: |
${{ runner.os }}-next-
${{ runner.os }}-next-${{ hashFiles('**/package-lock.json') }}

- name: move into frontend --> npm install, build, and test
run: |
cd frontend/
npm install
npm run build
npm run test --if-present

- name: Move directories into build/standalone to reduce app load
run: |
mv ./frontend/build/static ./frontend/build/standalone/build
mv ./frontend/public ./frontend/build/standalone

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: app-build
path: frontend/build/standalone

deploy-app-development:
needs: build-app-development
runs-on: ubuntu-latest
environment: development

steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: app-build
path: frontend/build/standalone

- name: 'Deploy to Azure Web App (development)'
id: deploy-to-webapp-dev
if: startsWith(github.ref, 'refs/heads/forestgeo-app-')
uses: azure/webapps-deploy@v2
with:
app-name: 'forestgeo-development'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_DEVELOPMENT }}
package: frontend/build/standalone
62 changes: 45 additions & 17 deletions .github/workflows/main-forestgeo-livesite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ on:
workflow_dispatch:

jobs:
build-and-deploy:
build-app-production:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment: development
environment: production

steps:
- uses: actions/checkout@v4
Expand All @@ -22,14 +23,14 @@ jobs:
with:
node-version: '18.x'

- name: create env file (in frontend/ directory)
- name: create env file (in frontend/ directory) -- production
id: create-env-file-prod
run: |
touch frontend/.env
echo AZURE_AD_CLIENT_SECRET=${{ secrets.AZURE_AD_CLIENT_SECRET }} >> frontend/.env
echo AZURE_AD_CLIENT_ID=${{ secrets.AZURE_AD_CLIENT_ID }} >> frontend/.env
echo AZURE_AD_TENANT_ID=${{ secrets.AZURE_AD_TENANT_ID }} >> frontend/.env
echo AZURE_AD_CLIENT_SECRET=${{ secrets.AZURE_AD_CLIENT_SECRET_PRODUCTION }} >> frontend/.env
echo AZURE_AD_CLIENT_ID=${{ secrets.AZURE_AD_CLIENT_ID_PRODUCTION }} >> frontend/.env
echo AZURE_AD_TENANT_ID=${{ secrets.AZURE_AD_TENANT_ID_PRODUCTION }} >> frontend/.env
echo NEXTAUTH_SECRET=${{ secrets.NEXTAUTH_SECRET }} >> frontend/.env
echo NEXTAUTH_URL=${{ secrets.NEXTAUTH_URL }} >> frontend/.env
echo AZURE_SQL_USER=${{ secrets.AZURE_SQL_USER }} >> frontend/.env
echo AZURE_SQL_PASSWORD=${{ secrets.AZURE_SQL_PASSWORD }} >> frontend/.env
echo AZURE_SQL_SERVER=${{ secrets.AZURE_SQL_SERVER }} >> frontend/.env
Expand All @@ -39,12 +40,12 @@ jobs:
echo AZURE_SQL_SCHEMA=${{ secrets.AZURE_SQL_SCHEMA }} >> frontend/.env
echo AZURE_SQL_CATALOG_SCHEMA=${{ secrets.AZURE_SQL_CATALOG_SCHEMA }} >> frontend/.env
echo AZURE_STORAGE_CONNECTION_STRING=${{ secrets.AZURE_STORAGE_CONNECTION_STRING }} >> frontend/.env
echo NODE_ENV=development >> frontend/.env
echo NEXTAUTH_DEBUG=true >> frontend/.env
echo NODE_ENV=production >> frontend/.env
echo PORT=3000 >> frontend/.env

- name: Write Certificate to File
run: |
echo "${{ secrets.CERTIFICATE }}" > frontend/DigiCertGlobalRootCA.crt.pem
echo FG_PAT=${{ secrets.FG_PAT }} >> frontend/.env
echo OWNER=${{ secrets.OWNER }} >> frontend/.env
echo REPO=${{ secrets.REPO }} >> frontend/.env

- name: Cache node modules
uses: actions/cache@v2
Expand All @@ -54,6 +55,15 @@ jobs:
restore-keys: |
${{ runner.os }}-node-

- name: Cache Next.js build
uses: actions/cache@v2
with:
path: frontend/.next/cache
key: ${{ runner.os }}-next-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/.next/cache') }}
restore-keys: |
${{ runner.os }}-next-
${{ runner.os }}-next-${{ hashFiles('**/package-lock.json') }}

- name: move into frontend --> npm install, build, and test
run: |
cd frontend/
Expand All @@ -65,13 +75,31 @@ jobs:
run: |
mv ./frontend/build/static ./frontend/build/standalone/build
mv ./frontend/public ./frontend/build/standalone
mv ./frontend/*.pem ./frontend/build/standalone/

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: app-build
path: frontend/build/standalone

deploy-app-production:
needs: build-app-production
runs-on: ubuntu-latest
environment: production

steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: app-build
path: frontend/build/standalone

- name: 'Deploy to Azure Web App (main)'
id: deploy-to-webapp-main
if: github.ref == 'refs/heads/main'
uses: azure/webapps-deploy@v2
with:
app-name: 'forestgeo-livesite'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_852346BD764D45D08854E6679137F844 }}
package: ./frontend/build/standalone
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_PRODUCTION }}
package: frontend/build/standalone
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# dependencies
/node_modules
/liquibase
/.pnp
.pnp.js
/.idea/*
Expand Down Expand Up @@ -38,10 +39,14 @@ yarn-error.log*
next-env.d.ts
/.idea
/.vscode
/.idea
/.vscode
/*.zip
.github/workflows/new-file-upload-system_forestgeo-livesite.yml
/.fleet
/frontend/sampledata
/frontend/scripts
/frontend/sqlscripting
/frontend/.vscode
/documentation/.obsidian
/documentation/.obsidian/*
frontend/liquibase/
22 changes: 22 additions & 0 deletions frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['next', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
settings: {
next: {
rootDir: '.'
}
},
plugins: ['@typescript-eslint', 'unused-imports', 'prettier', 'import'],
rules: {
'react-hooks/exhaustive-deps': 'off',
semi: ['error', 'always'],
'unused-imports/no-unused-imports': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
'unused-imports/no-unused-vars': 'off',
'react-hooks/rules-of-hooks': 'off',
'no-case-declarations': 'off',
'prettier/prettier': 'error'
}
};
18 changes: 0 additions & 18 deletions frontend/.eslintrc.js

This file was deleted.

14 changes: 13 additions & 1 deletion frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# production
/build
/sampledata
/sqlscripting
/scripts
DigiCertGlobalRootCA.crt.pem

Expand Down Expand Up @@ -49,3 +48,16 @@ yarn-error.log*
/playwright-report/
/blob-report/
/playwright/.cache/
/.fleet
/.vscode
/.idea
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/

*storybook.log
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
13 changes: 13 additions & 0 deletions frontend/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "avoid",
"proseWrap": "preserve",
"endOfLine": "lf",
"printWidth": 160,
"tabWidth": 2,
"useTabs": false
}
Loading
Loading