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

Ambokar - ForestGEO Application Rework w/ NextJS App Router #138

Merged
merged 128 commits into from
Dec 13, 2023

Conversation

siddheshraze
Copy link
Collaborator

@siddheshraze siddheshraze commented Oct 30, 2023

Introducing NextJS v14 into ForestGEO application:

ForestGEO application is moving to NextJS in order to ensure long-term application stability and support and improved baseline application design and mechanics.

Changelog:

  • Some refactoring to existing application introduced by Webstorm IDE (code optimization) --> minor indent changes, etc. only

NextJS ForestGEO Application Changes:

  • New routing structure implemented
  • NextAuth authentication system implemented --> using Azure AD & Azure App Registration, and NextJS Middleware
  • Dashboard, File Hub, and Data Hub views implemented
  • Login splash page implemented (background image carousel implemented)
  • Azure Storage connection and integration into File Hub implemented (user can view existing files in Azure Storage, upload, and download)
  • Azure SQL instance connection and data view implemented, placed in Data Hub (data is read-only, but table view and display implemented
  • File upload system implemented, building on existing application's error validation system and adding additional confirmation dialogs and formatting in order to ensure compliance with error validation system
  • Properties Hub implemented --> new UI to allow user modification of fixed data attributes (Attributes, Census, Personnel, Quadrats, and Species tables)
  • Table structure redefined using MUI X Data Grid to allow table editing and CRUD modification (CRUD system implemented and API structure redefined to allow CRUD modifications to Azure SQL tables
  • Azure SQL database schema redefined per ForestGEO standards and application reconfigured to use new schema

* endpoints have been added and routed to require a plot key/number combination for access
** initial state has been converted to new Plot {key: 'none', num: 0} instead of ''
* MUI JoyUI has been partially implemented as a replacement for MaterialUI. However, due to time limitations, MaterialUI has still been incorporated into converted sections from ForestGeoHack
** The current plan is to solely implement either NextUI or ChakraUI instead of either of these options, and future updates will include this information.
* SelectPlotProps has been removed and replaced with NextJS dynamic routing (each endpoint will dynamically retrieve plot information). Endpoints have been updated to reflect dynamic param-based retrieval
** The navigation bar has been updated to use useEffect to push live endpoint updates when the plot is changed (if you are at an endpoint and the plot is changed, the page will be reloaded to reflect that)
* New components/moved-over information:
** Dropzone --> css code has been udpated to be dark theme-friendly
** FileList --> moved over
** Loginlogout --> created component, login/logout process has been relegated to avatar icon dropdown menu
** Plotselection --> partially created from SelectPlot, changed to utilize dynamic routing/selection instead of requiring a new dropdown in each page
…to work with app router. need to re-implement and test
…ver confirmed. saving changes in order to confirm data upload functionality
…om directory structure and simplified remaining code
… to 13.5.1-canary.1 because that actually installs instead
Copy link

github-actions bot commented Dec 8, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://agreeable-wave-08a957210-138.centralus.1.azurestaticapps.net

Copy link

github-actions bot commented Dec 8, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://agreeable-wave-08a957210-138.centralus.1.azurestaticapps.net

Copy link

github-actions bot commented Dec 8, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://agreeable-wave-08a957210-138.centralus.1.azurestaticapps.net

Copy link

github-actions bot commented Dec 8, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://agreeable-wave-08a957210-138.centralus.1.azurestaticapps.net

Copy link

github-actions bot commented Dec 8, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://agreeable-wave-08a957210-138.centralus.1.azurestaticapps.net

Copy link

github-actions bot commented Dec 8, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://agreeable-wave-08a957210-138.centralus.1.azurestaticapps.net

Copy link

github-actions bot commented Dec 8, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://agreeable-wave-08a957210-138.centralus.1.azurestaticapps.net

Copy link

github-actions bot commented Dec 8, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://agreeable-wave-08a957210-138.centralus.1.azurestaticapps.net

2 similar comments
Copy link

github-actions bot commented Dec 8, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://agreeable-wave-08a957210-138.centralus.1.azurestaticapps.net

Copy link

github-actions bot commented Dec 8, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://agreeable-wave-08a957210-138.centralus.1.azurestaticapps.net

@siddheshraze siddheshraze marked this pull request as ready for review December 13, 2023 20:44
@siddheshraze siddheshraze merged commit e5de37e into main Dec 13, 2023
1 of 4 checks passed
@siddheshraze siddheshraze deleted the Ambokar-FGEO-Application branch December 13, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants