diff --git a/aws/buildspec.yml b/aws/buildspec.yml index 8ccdc84..db8fff4 100644 --- a/aws/buildspec.yml +++ b/aws/buildspec.yml @@ -7,12 +7,14 @@ phases: - cd aws/lambda-functions/start_history_search_v2 && zip -qr ../../../start_history_search.zip . && cd - post_build: commands: - # - aws lambda update-function-code --function-name PopulateMatchDataV1 --zip-file fileb://populate_match_data.zip - # - aws lambda update-function-code --function-name PopulateMatchDataV2 --zip-file fileb://populate_match_data.zip - # - aws lambda update-function-code --function-name PopulateMatchDataV3 --zip-file fileb://populate_match_data.zip - # - aws lambda update-function-code --function-name PopulateMatchDataV4 --zip-file fileb://populate_match_data.zip - # - aws lambda update-function-code --function-name StartHistorySearch --zip-file fileb://start_history_search.zip - - aws lambda update-function-code --function-name test-lambda --zip-file fileb://start_history_search.zip + - aws lambda update-function-code --function-name PopulateMatchDataV1 --zip-file fileb://populate_match_data.zip + - aws lambda update-function-code --function-name PopulateMatchDataV2 --zip-file fileb://populate_match_data.zip + - aws lambda update-function-code --function-name PopulateMatchDataV3 --zip-file fileb://populate_match_data.zip + - aws lambda update-function-code --function-name PopulateMatchDataV4 --zip-file fileb://populate_match_data.zip + - aws lambda update-function-code --function-name StartHistorySearch --zip-file fileb://start_history_search.zip + + # used for testing + # - aws lambda update-function-code --function-name test-lambda --zip-file fileb://start_history_search.zip artifacts: files: diff --git a/front-end/.prettierignore b/front-end/.prettierignore new file mode 100644 index 0000000..8df3f9f --- /dev/null +++ b/front-end/.prettierignore @@ -0,0 +1,5 @@ +# Ignore artifacts: +build +coverage +.next +node_modules/ \ No newline at end of file diff --git a/front-end/.prettierrc b/front-end/.prettierrc new file mode 100644 index 0000000..b4bfed3 --- /dev/null +++ b/front-end/.prettierrc @@ -0,0 +1,3 @@ +{ + "plugins": ["prettier-plugin-tailwindcss"] +} diff --git a/front-end/components/ChatBox.js b/front-end/components/ChatBox.js index ef05232..3b26c64 100644 --- a/front-end/components/ChatBox.js +++ b/front-end/components/ChatBox.js @@ -25,13 +25,15 @@ export default function ChatBox() { }; return ( -
-
+
+
{messages.map((msg, idx) => (
{msg.text} @@ -44,12 +46,12 @@ export default function ChatBox() { type="text" value={input} onChange={(e) => setInput(e.target.value)} - className="flex-grow border rounded-l-lg px-3 py-2 focus:outline-none" + className="flex-grow rounded-l-lg border px-3 py-2 focus:outline-none" placeholder="Type your message..." /> diff --git a/front-end/components/Navbar.js b/front-end/components/Navbar.js index 826e75e..87c7947 100644 --- a/front-end/components/Navbar.js +++ b/front-end/components/Navbar.js @@ -2,13 +2,13 @@ import Link from "next/link"; export default function Navbar() { return ( -