mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Merge branch 'feature/quick_wins' of https://github.com/Hestia-Homes/assessment-model into new-reporting
This commit is contained in:
commit
cd79cbeadf
5 changed files with 2186 additions and 3356 deletions
|
|
@ -130,4 +130,7 @@ In our terraform stack, we have a module called `s3_presignable_bucket` which co
|
|||
We will generate a pre-signed url and then make a post request to that endpoint to store that data to s3. Part of that process is the creation of an AWS IAM role which contains
|
||||
the permission set to access the bucket, `rerofit-plan-inputs-<stage>`. The name of this IAM role is `s3_presign_role_<stage>` and for our NextJS application, as it's hosted outside of AWS (for the moment), we need to generate a set of access credentials to give the application access to this bucket. The access key and secret key are automatically generated and stored in AWS secrets manager under `dev/presign_frontend/access_key` and `dev/presign_frontend/secret_key` and need to be set in the environment for the pre-sign api to store csv data to aws.
|
||||
|
||||
#
|
||||
Quick wins:
|
||||
|
||||
- [] Sign in butotn in microsoft disappear!
|
||||
- [] Frequently asked questions page
|
||||
|
|
|
|||
5522
package-lock.json
generated
5522
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -3,7 +3,7 @@
|
|||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"dev": "/workspaces/assessment-model/node_modules/.bin/next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
|
|
@ -57,6 +57,7 @@
|
|||
"next-auth": "^4.22.1",
|
||||
"next-axiom": "^1.9.2",
|
||||
"next-themes": "^0.3.0",
|
||||
"nodemailer": "^7.0.11",
|
||||
"pg": "^8.11.1",
|
||||
"postcss": "^8.5.6",
|
||||
"react": "18.3.1",
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export default function EmailSignInButton({
|
|||
type="email"
|
||||
value={email}
|
||||
onChange={handleEmailChange}
|
||||
placeholder="Enter your email"
|
||||
placeholder="Enter email"
|
||||
required
|
||||
className="flex-1 h-10 rounded-lg border-gray-300"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import { getServerSession } from "next-auth/next";
|
||||
import { AuthOptions } from "./api/auth/[...nextauth]/authOptions";
|
||||
import GoogleSignInButton from "./components/signin/GoogleSignInButton";
|
||||
import MicrosoftSignInButton from "./components/signin/MicrosoftSignInButton";
|
||||
import EmailSignInButton from "./components/signin/EmailSignInButton";
|
||||
import { redirect } from "next/navigation";
|
||||
import Image from "next/image";
|
||||
|
|
@ -40,10 +39,10 @@ export default async function Home(props: {
|
|||
width={300}
|
||||
/>
|
||||
<h1 className="text-4xl font-medium text-brandblue mb-8 text-center">
|
||||
Sign in to your account
|
||||
Your portfolios, managed easily.
|
||||
</h1>
|
||||
<div className="text-brandmidblue text-lg mb-4">
|
||||
Start managing your portfolios
|
||||
We’ll email you a login link — no password required.
|
||||
</div>
|
||||
|
||||
<div className="mb-2 min-w-[19rem]">
|
||||
|
|
@ -51,10 +50,7 @@ export default async function Home(props: {
|
|||
<EmailSignInButton error={error} />
|
||||
</div>
|
||||
<div className="text-md"> Sign in with a Social Account</div>
|
||||
<div className="mb-2">
|
||||
<MicrosoftSignInButton />
|
||||
</div>
|
||||
<GoogleSignInButton />
|
||||
<GoogleSignInButton />
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue