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

Deploy admin web on production #639

Merged
merged 69 commits into from
Sep 30, 2023
Merged

Deploy admin web on production #639

merged 69 commits into from
Sep 30, 2023

Conversation

khajornritdacha
Copy link
Member

Why did you create this PR

  • To deploy admin web on production

Demo

https://dev.cugetreg.com

Checklist

  • Deploy a demo
  • Check browsers compatibility
  • Wrote coverage tests

samithiwat and others added 26 commits August 27, 2023 15:47
* ci: fix lint

* chore: add changeset
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat(codegen): add getPendingReviews query

* feat(admin-web): setup apollo and add getPendingReviews api

* feat: add override query in frontend

* refactor: migrate apollo provider to AppProvider

* Configure pre-release mode

* change sync workflow

* Version Packages (#512)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* install changeset in workflow

* fix sync beta workflow

* add commit identity

* Enter pre-release mode

* fix transform packages

* feat: add override query in frontend

* fix: edit import path

* feat: add HtmlSanitizer and Navbar

* feat: add approvedReviews and GenEd Page

* ci: update pnpm-lock

* move transpile packages out of experimental

* refactor: migrate appProvider to context folder

* refactor: create pendingReviews page and remove api page

* ci(gitignore): remove .env from gitignore

* refactor: create genEd module

* refactor: migrate pendingReviews to its own module

* refactor: migrate approvedReviews to its own module

* refactor: remove unused codes

Including
1. Logging
2. proxy in httpClient
3. Admin access token leaked in apollo

* fix(homePage): move router.push inside useEffect

* refactor(pendingReviews): remove unused codes

* refactor(apollo): remove course search cache from apollo client

* ci(env): remove unused variables

* feat: add MUI and create pendingReviews design

* feat(pendingReviews): add skeleton

* install mui

* feat: add themeProvider

* feat: add Poppin and Prompts fonts

* feat: recreate Navbar with MUI's appbar

* feat: add styling to Navbar(Appbar)

* docs: add required environment variables to readme

* feat: Demo genEd table

* setup review with graphql

* feat(admin-api): add override

* feat(admin-api): add get-all-reviews query

* refactor(admin-api): remove unused codes and comments

* add graphql asset

* add enum graphql

* remove unused file

* remove unused env from template and config

* fix lockfile broken

* add dashboard url to env

* fix env and config

* match dependencies version to api's

* feat(sidebar): add sidebar

* feat(sidebar): decorate sidebar

* feat: add fonts

* feat: add theme palette

* feat: add highlight link when selected

* fix(index): remove import .css

* feat: pendingReview header

* feat: upper Review page

* feat: table header and card layout wip

* feat(pendingReviews): add html sanitize to content

* fix: padding

* feat: WIP pendingReview

* setup auth to request id_token

* feat: add Thai font

* feat: add mui icon

* feat: polish pendingReview page

* add config variable

* feat: add login page and generate token page

* add template env, validate token

* feat(auth): add protectedRoutes

* format: apply format

* fix: update design to final WIP

* format: format code

* fix: remove .env files from remote and add .env.example

* refactor: migrate code to its own module

* ci: config tsconfig.json

* feat(GenEd): decorate gened page

* setup review with graphql

* feat(admin-api): add override

* feat(admin-api): add get-all-reviews query

* refactor(admin-api): remove unused codes and comments

* add enum graphql

* remove unused env from template and config

* fix lockfile broken

* fix env and config

* match dependencies version to api's

* setup auth to request id_token

* add config variable

* add template env, validate token

* fix: tsconfig

* refactor: change 'Topbar' component name to 'Sidebar'

* feat(gened): add topbar to gened page

* feat(sidebar): add cugetreg logo

* add jwt module

* feat(pending reviews): add topbar

* feat: cancel button

* fix(topbar): center rightside buttons vertically

* feat(pending reviews): add API for approve and reject reviews

* feat: improve textfield

* feat: error handling pendingReview

* feat(gened): add delete button

* feat(gened): add delete gened api

* fix: change dependecy installation scope

* feat(gened): add input for new gened course

* change review and override schema

* add idToken validation, me and remove unused code

* feat(gened): add refresh button

* feat(gened): add react toast for gened page

* refactor: migrate toast config to /config

* fix(sidebar): fix highlight current page bug

* fix(gened): table head is now sticky

* fix: make the program compilable

* fix: fix sending code

* feat: handle validating id_token and generate access_token

* feat: handle sending cookie both frontend and backend

* feat: add auth guard

* feat: lazy query review

* feat: add global auth guard

* fix: first fetch

* fix: fix circular structure by removing passthrough in res

* feat(frontend): add protected routes

* fix(frontend/generateToken): change from fetch to axios and add spinner

* refactor: remove unused code in backend auth

* feat: add logout feature

* feat(frontend): add authApi

* edit readme

* fix(backend-api): change cookie expiry date to 30 days

* fix(pendingReviews): fix select form type

* refactor: remove unused code

* feat: filter wip

* feat: wip filter

* regenerate lockfile

* fix admin-web

* migrate changes from api to admin-api

* fix(admin-api): setReviewStatus return type

* fix(admin-api): authentication for graphql

* feat(frontend): add login page

* feat(frontend): add user feedback approve review

* fix(frontend): redirect if login fail

* refactor(frontend): remove year and semester

* feat(api): add filter to overrides

* ci(admin-api): add Dockerfile

* Revert "ci(admin-api): add Dockerfile"

This reverts commit 1a3e4df.

* ci(admin-web): add Dockerfile

* ci(admin-web): edit Dockerfile

---------

Co-authored-by: Chanatip Pattanapen <[email protected]>
Co-authored-by: bombnp <[email protected]>
Co-authored-by: Nut Pinyo <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: nac <[email protected]>
Co-authored-by: Saenyakorn Siangsanoh <[email protected]>
Co-authored-by: Nutthapat Pongtanyavichai <[email protected]>
* feat(web): not reg chula warning

* chore: update changeset msg
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix: broken build in previous release

* fix: format
* use cas url instead

* chore: add changeset

---------

Co-authored-by: Nutthapat Pongtanyavichai <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat(codegen): add getPendingReviews query

* feat(admin-web): setup apollo and add getPendingReviews api

* feat: add override query in frontend

* refactor: migrate apollo provider to AppProvider

* Configure pre-release mode

* change sync workflow

* Version Packages (#512)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* install changeset in workflow

* fix sync beta workflow

* add commit identity

* Enter pre-release mode

* fix transform packages

* feat: add override query in frontend

* fix: edit import path

* feat: add HtmlSanitizer and Navbar

* feat: add approvedReviews and GenEd Page

* ci: update pnpm-lock

* move transpile packages out of experimental

* refactor: migrate appProvider to context folder

* refactor: create pendingReviews page and remove api page

* ci(gitignore): remove .env from gitignore

* refactor: create genEd module

* refactor: migrate pendingReviews to its own module

* refactor: migrate approvedReviews to its own module

* refactor: remove unused codes

Including
1. Logging
2. proxy in httpClient
3. Admin access token leaked in apollo

* fix(homePage): move router.push inside useEffect

* refactor(pendingReviews): remove unused codes

* refactor(apollo): remove course search cache from apollo client

* ci(env): remove unused variables

* feat: add MUI and create pendingReviews design

* feat(pendingReviews): add skeleton

* install mui

* feat: add themeProvider

* feat: add Poppin and Prompts fonts

* feat: recreate Navbar with MUI's appbar

* feat: add styling to Navbar(Appbar)

* docs: add required environment variables to readme

* feat: Demo genEd table

* setup review with graphql

* feat(admin-api): add override

* feat(admin-api): add get-all-reviews query

* refactor(admin-api): remove unused codes and comments

* add graphql asset

* add enum graphql

* remove unused file

* remove unused env from template and config

* fix lockfile broken

* add dashboard url to env

* fix env and config

* match dependencies version to api's

* feat(sidebar): add sidebar

* feat(sidebar): decorate sidebar

* feat: add fonts

* feat: add theme palette

* feat: add highlight link when selected

* fix(index): remove import .css

* feat: pendingReview header

* feat: upper Review page

* feat: table header and card layout wip

* feat(pendingReviews): add html sanitize to content

* fix: padding

* feat: WIP pendingReview

* setup auth to request id_token

* feat: add Thai font

* feat: add mui icon

* feat: polish pendingReview page

* add config variable

* feat: add login page and generate token page

* add template env, validate token

* feat(auth): add protectedRoutes

* format: apply format

* fix: update design to final WIP

* format: format code

* fix: remove .env files from remote and add .env.example

* refactor: migrate code to its own module

* ci: config tsconfig.json

* feat(GenEd): decorate gened page

* setup review with graphql

* feat(admin-api): add override

* feat(admin-api): add get-all-reviews query

* refactor(admin-api): remove unused codes and comments

* add enum graphql

* remove unused env from template and config

* fix lockfile broken

* fix env and config

* match dependencies version to api's

* setup auth to request id_token

* add config variable

* add template env, validate token

* fix: tsconfig

* refactor: change 'Topbar' component name to 'Sidebar'

* feat(gened): add topbar to gened page

* feat(sidebar): add cugetreg logo

* add jwt module

* feat(pending reviews): add topbar

* feat: cancel button

* fix(topbar): center rightside buttons vertically

* feat(pending reviews): add API for approve and reject reviews

* feat: improve textfield

* feat: error handling pendingReview

* feat(gened): add delete button

* feat(gened): add delete gened api

* fix: change dependecy installation scope

* feat(gened): add input for new gened course

* change review and override schema

* add idToken validation, me and remove unused code

* feat(gened): add refresh button

* feat(gened): add react toast for gened page

* refactor: migrate toast config to /config

* fix(sidebar): fix highlight current page bug

* fix(gened): table head is now sticky

* fix: make the program compilable

* fix: fix sending code

* feat: handle validating id_token and generate access_token

* feat: handle sending cookie both frontend and backend

* feat: add auth guard

* feat: lazy query review

* feat: add global auth guard

* fix: first fetch

* fix: fix circular structure by removing passthrough in res

* feat(frontend): add protected routes

* fix(frontend/generateToken): change from fetch to axios and add spinner

* refactor: remove unused code in backend auth

* feat: add logout feature

* feat(frontend): add authApi

* edit readme

* fix(backend-api): change cookie expiry date to 30 days

* fix(pendingReviews): fix select form type

* refactor: remove unused code

* feat: filter wip

* feat: wip filter

* regenerate lockfile

* fix admin-web

* migrate changes from api to admin-api

* fix(admin-api): setReviewStatus return type

* fix(admin-api): authentication for graphql

* feat(frontend): add login page

* feat(frontend): add user feedback approve review

* fix(frontend): redirect if login fail

* refactor(frontend): remove year and semester

* feat(api): add filter to overrides

* ci(admin-api): add Dockerfile

* Revert "ci(admin-api): add Dockerfile"

This reverts commit 1a3e4df.

* ci(admin-web): add Dockerfile

* ci(admin-web): edit Dockerfile

* fix(admin-api): fix dashBoardUrl typo

* fix: add skip auth to health check path

* Revert "fix: add skip auth to health check path"

This reverts commit babd8e3.

* fix: add skip auth in health check

* ci: add changeset

---------

Co-authored-by: Chanatip Pattanapen <[email protected]>
Co-authored-by: bombnp <[email protected]>
Co-authored-by: Nut Pinyo <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: nac <[email protected]>
Co-authored-by: Saenyakorn Siangsanoh <[email protected]>
Co-authored-by: Nutthapat Pongtanyavichai <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat(codegen): add getPendingReviews query

* feat(admin-web): setup apollo and add getPendingReviews api

* feat: add override query in frontend

* refactor: migrate apollo provider to AppProvider

* Configure pre-release mode

* change sync workflow

* Version Packages (#512)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* install changeset in workflow

* fix sync beta workflow

* add commit identity

* Enter pre-release mode

* fix transform packages

* feat: add override query in frontend

* fix: edit import path

* feat: add HtmlSanitizer and Navbar

* feat: add approvedReviews and GenEd Page

* ci: update pnpm-lock

* move transpile packages out of experimental

* refactor: migrate appProvider to context folder

* refactor: create pendingReviews page and remove api page

* ci(gitignore): remove .env from gitignore

* refactor: create genEd module

* refactor: migrate pendingReviews to its own module

* refactor: migrate approvedReviews to its own module

* refactor: remove unused codes

Including
1. Logging
2. proxy in httpClient
3. Admin access token leaked in apollo

* fix(homePage): move router.push inside useEffect

* refactor(pendingReviews): remove unused codes

* refactor(apollo): remove course search cache from apollo client

* ci(env): remove unused variables

* feat: add MUI and create pendingReviews design

* feat(pendingReviews): add skeleton

* install mui

* feat: add themeProvider

* feat: add Poppin and Prompts fonts

* feat: recreate Navbar with MUI's appbar

* feat: add styling to Navbar(Appbar)

* docs: add required environment variables to readme

* feat: Demo genEd table

* setup review with graphql

* feat(admin-api): add override

* feat(admin-api): add get-all-reviews query

* refactor(admin-api): remove unused codes and comments

* add graphql asset

* add enum graphql

* remove unused file

* remove unused env from template and config

* fix lockfile broken

* add dashboard url to env

* fix env and config

* match dependencies version to api's

* feat(sidebar): add sidebar

* feat(sidebar): decorate sidebar

* feat: add fonts

* feat: add theme palette

* feat: add highlight link when selected

* fix(index): remove import .css

* feat: pendingReview header

* feat: upper Review page

* feat: table header and card layout wip

* feat(pendingReviews): add html sanitize to content

* fix: padding

* feat: WIP pendingReview

* setup auth to request id_token

* feat: add Thai font

* feat: add mui icon

* feat: polish pendingReview page

* add config variable

* feat: add login page and generate token page

* add template env, validate token

* feat(auth): add protectedRoutes

* format: apply format

* fix: update design to final WIP

* format: format code

* fix: remove .env files from remote and add .env.example

* refactor: migrate code to its own module

* ci: config tsconfig.json

* feat(GenEd): decorate gened page

* setup review with graphql

* feat(admin-api): add override

* feat(admin-api): add get-all-reviews query

* refactor(admin-api): remove unused codes and comments

* add enum graphql

* remove unused env from template and config

* fix lockfile broken

* fix env and config

* match dependencies version to api's

* setup auth to request id_token

* add config variable

* add template env, validate token

* fix: tsconfig

* refactor: change 'Topbar' component name to 'Sidebar'

* feat(gened): add topbar to gened page

* feat(sidebar): add cugetreg logo

* add jwt module

* feat(pending reviews): add topbar

* feat: cancel button

* fix(topbar): center rightside buttons vertically

* feat(pending reviews): add API for approve and reject reviews

* feat: improve textfield

* feat: error handling pendingReview

* feat(gened): add delete button

* feat(gened): add delete gened api

* fix: change dependecy installation scope

* feat(gened): add input for new gened course

* change review and override schema

* add idToken validation, me and remove unused code

* feat(gened): add refresh button

* feat(gened): add react toast for gened page

* refactor: migrate toast config to /config

* fix(sidebar): fix highlight current page bug

* fix(gened): table head is now sticky

* fix: make the program compilable

* fix: fix sending code

* feat: handle validating id_token and generate access_token

* feat: handle sending cookie both frontend and backend

* feat: add auth guard

* feat: lazy query review

* feat: add global auth guard

* fix: first fetch

* fix: fix circular structure by removing passthrough in res

* feat(frontend): add protected routes

* fix(frontend/generateToken): change from fetch to axios and add spinner

* refactor: remove unused code in backend auth

* feat: add logout feature

* feat(frontend): add authApi

* edit readme

* fix(backend-api): change cookie expiry date to 30 days

* fix(pendingReviews): fix select form type

* refactor: remove unused code

* feat: filter wip

* feat: wip filter

* regenerate lockfile

* fix admin-web

* migrate changes from api to admin-api

* fix(admin-api): setReviewStatus return type

* fix(admin-api): authentication for graphql

* feat(frontend): add login page

* feat(frontend): add user feedback approve review

* fix(frontend): redirect if login fail

* refactor(frontend): remove year and semester

* feat(api): add filter to overrides

* ci(admin-api): add Dockerfile

* Revert "ci(admin-api): add Dockerfile"

This reverts commit 1a3e4df.

* ci(admin-web): add Dockerfile

* ci(admin-web): edit Dockerfile

* fix(admin-api): fix dashBoardUrl typo

* fix: add skip auth to health check path

* Revert "fix: add skip auth to health check path"

This reverts commit babd8e3.

* fix: add skip auth in health check

* ci: add changeset

* ci(admin-web): edit .env

* ci(admin-web): edit .env

* ci(admin-web): edit .env

* ci(admin-web): edit .env

* chore: add changeset

---------

Co-authored-by: Chanatip Pattanapen <[email protected]>
Co-authored-by: bombnp <[email protected]>
Co-authored-by: Nut Pinyo <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: nac <[email protected]>
Co-authored-by: Saenyakorn Siangsanoh <[email protected]>
Co-authored-by: Nutthapat Pongtanyavichai <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@changeset-bot
Copy link

changeset-bot bot commented Sep 30, 2023

🦋 Changeset detected

Latest commit: 00cd278

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
admin-web Major
admin-api Major
api Minor
web Minor
reg-scraper Minor
@cgr/project-config Patch
@cgr/course-utils Patch
@cgr/codegen Patch
@cgr/schema Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@leomotors leomotors merged commit 8c708c1 into main Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants