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

Strr2 - Draft Terms of Service #260

Closed
wants to merge 2 commits into from
Closed

Conversation

deetz99
Copy link
Collaborator

@deetz99 deetz99 commented Nov 1, 2024

Description of changes:

Will probably close this and create a new pr for the base layer instead but take a look and let me know what you think.
Did not add i18n stuff because this will need to be moved to the base layer.

Side question: How do we want to set breadcrumbs on pages from the layer?

Steps to reproduce:

  1. go to gcbrun url
  2. login and get fresh bearer token from the network logs
  3. go to postman and submit a patch request with the auth header using the token to https://strr-api-dev-i2rbretwta-nn.a.run.app/users/tos (account id not required) with the following payload
{
    "istermsaccepted": false,
    "termsversion": "4"
}
  1. logout on the platform app so youre on the auth/login page
  2. login page should try to redirect you to the dashboard page
  3. observe youre actually redirected to the tos page
  4. OPTIONAL: decline the tos and see decline flow (the redirect url will need to be changed to housing probably)
  5. accept tos
  6. observe youre redirected after successfully accepting the tos

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the strr license (Apache 2.0).

@deetz99 deetz99 requested a review from kialj876 November 1, 2024 22:57
Copy link

sonarcloud bot commented Nov 1, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

@deetz99 deetz99 added UI Platform Application Platform Application labels Nov 1, 2024
@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-platform-dev--pr-260-rot4j3r2.web.app

1 similar comment
@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-platform-dev--pr-260-rot4j3r2.web.app

Copy link
Collaborator

@thorwolpert thorwolpert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice adding the TOS check to the store.

@@ -19,6 +19,7 @@ NUXT_REGISTRY_HOME_URL="https://dev.bcregistry.gov.bc.ca/"
NUXT_PAYMENT_PORTAL_URL="https://dev.account.bcregistry.gov.bc.ca/makepayment/"
NUXT_AUTH_WEB_URL="https://dev.account.bcregistry.gov.bc.ca/"
NUXT_BASE_URL="http://localhost:3000/" # app base url
NUXT_HOUSING_STRR_URL="" # TODO: add housing strr base url here for redirects
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you want to add that to https://github.com/bcgov/STRR/blob/main/strr-platform-web/devops/vaults.env
or I can in another PR?

termsOfUse: string
}

// TODO: make this generic for the core layer?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think this would be good there. Might be good to prefix this with 'connect' if we're going to do that. For now we could put it in the strr base layer and figure out the kinks before moving it

@deetz99 deetz99 closed this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform Application Platform Application UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants