prettier style fixes

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2022-12-03 02:02:52 +00:00
parent dbbd14399e
commit 793e7891b3
70 changed files with 2123 additions and 1849 deletions

View File

@ -1,33 +1,20 @@
{ {
"env": { "env": {
"browser": true, "browser": true,
"es2021": true, "es2021": true,
"node": true "node": true
}, },
"extends": "eslint:recommended", "extends": "eslint:recommended",
"overrides": [ "overrides": [],
], "parserOptions": {
"parserOptions": { "ecmaVersion": "latest",
"ecmaVersion": "latest", "sourceType": "module"
"sourceType": "module" },
}, "rules": {
"rules": { "indent": ["error", "tab"],
"indent": [ "linebreak-style": ["error", "unix"],
"error", "quotes": ["error", "double"],
"tab" "semi": ["error", "always"],
], "no-global-assign": 0
"linebreak-style": [ }
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"no-global-assign": 0
}
} }

View File

@ -1,23 +1,23 @@
name: CSS Linting name: CSS Linting
on: on:
pull_request: pull_request:
branches: branches:
- main - main
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
jobs: jobs:
# Single deploy job since we're just deploying # Single deploy job since we're just deploying
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install apt updates - name: Install apt updates
run: sudo apt -y update; sudo apt -y upgrade; run: sudo apt -y update; sudo apt -y upgrade;
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: sudo npm install run: sudo npm install
- name: Run tests - name: Run tests
run: sudo npm run lint-css run: sudo npm run lint-css

View File

@ -2,52 +2,52 @@
name: Deploy GitHub Pages name: Deploy GitHub Pages
on: on:
# Runs on pushes targeting the default branch # Runs on pushes targeting the default branch
push: push:
branches: branches:
- main - main
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions: permissions:
contents: read contents: read
pages: write pages: write
id-token: write id-token: write
# Allow one concurrent deployment # Allow one concurrent deployment
concurrency: concurrency:
group: "pages" group: "pages"
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
# Single deploy job since we're just deploying # Single deploy job since we're just deploying
deploy: deploy:
environment: environment:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install apt updates - name: Install apt updates
run: sudo apt -y update; sudo apt -y upgrade; run: sudo apt -y update; sudo apt -y upgrade;
- name: Install prerequisites - name: Install prerequisites
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 18
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: sudo npm install run: sudo npm install
- name: Run tests - name: Run tests
run: sudo npm run js-doc run: sudo npm run js-doc
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v2 uses: actions/configure-pages@v2
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v1 uses: actions/upload-pages-artifact@v1
with: with:
# Upload only the src repository # Upload only the src repository
path: './source/' path: "./source/"
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v1 uses: actions/deploy-pages@v1

View File

@ -1,23 +1,23 @@
name: HTML Linting name: HTML Linting
on: on:
pull_request: pull_request:
branches: branches:
- main - main
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
jobs: jobs:
# Single deploy job since we're just deploying # Single deploy job since we're just deploying
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install apt updates - name: Install apt updates
run: sudo apt -y update; sudo apt -y upgrade; run: sudo apt -y update; sudo apt -y upgrade;
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: sudo npm install run: sudo npm install
- name: Run tests - name: Run tests
run: sudo npm run lint-html run: sudo npm run lint-html

View File

@ -1,25 +1,25 @@
name: JS Linting name: JS Linting
on: on:
pull_request: pull_request:
branches: branches:
- main - main
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
jobs: jobs:
# Single deploy job since we're just deploying # Single deploy job since we're just deploying
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install apt updates - name: Install apt updates
run: sudo apt -y update; sudo apt -y upgrade; run: sudo apt -y update; sudo apt -y upgrade;
- name: Install prerequisites - name: Install prerequisites
run: sudo apt install -y nodejs npm; run: sudo apt install -y nodejs npm;
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: sudo npm install run: sudo npm install
- name: Run tests - name: Run tests
run: sudo npm run lint-js run: sudo npm run lint-js

View File

@ -1,29 +1,29 @@
name: JS Unit Test name: JS Unit Test
on: on:
pull_request: pull_request:
branches: branches:
- main - main
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
jobs: jobs:
# Single deploy job since we're just deploying # Single deploy job since we're just deploying
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install apt updates - name: Install apt updates
run: sudo apt -y update; sudo apt -y upgrade; run: sudo apt -y update; sudo apt -y upgrade;
- name: Install prerequisites - name: Install prerequisites
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 18
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: sudo npm install run: sudo npm install
- name: Start local http server - name: Start local http server
run: sudo npm run http-server & run: sudo npm run http-server &
- name: Run tests - name: Run tests
run: sudo npm test run: sudo npm test

View File

@ -1,29 +1,29 @@
name: Prettier name: Prettier
on: on:
pull_request: pull_request:
branches: branches:
- main - main
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
jobs: jobs:
# Single deploy job since we're just deploying # Single deploy job since we're just deploying
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install apt updates - name: Install apt updates
run: sudo apt -y update; sudo apt -y upgrade; run: sudo apt -y update; sudo apt -y upgrade;
- name: Install prerequisites - name: Install prerequisites
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 18
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: sudo npm install run: sudo npm install
- name: Start local http server - name: Start local http server
run: sudo npm run http-server & run: sudo npm run http-server &
- name: Run tests - name: Run tests
run: sudo npm lint-prettier run: sudo npm lint-prettier

View File

@ -1,4 +1,4 @@
{ {
"attr-value-not-empty": false, "attr-value-not-empty": false,
"space-tab-mixed-disabled": "tab" "space-tab-mixed-disabled": "tab"
} }

View File

@ -1,7 +1,7 @@
{ {
"extends": "stylelint-config-standard", "extends": "stylelint-config-standard",
"ignore": ["inside-parens", "param", "value"], "ignore": ["inside-parens", "param", "value"],
"rules":{ "rules": {
"indentation": "tab" "indentation": "tab"
} }
} }

View File

@ -1,9 +1,13 @@
# Meeting Minutes (11/07/2022) # Meeting Minutes (11/07/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: First Sprint ## Meeting Topic: First Sprint
Meeting notes for the first sprint Meeting notes for the first sprint
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Gavyn Ezell 3. Gavyn Ezell
@ -15,27 +19,29 @@ Meeting notes for the first sprint
9. Arthur Lu 9. Arthur Lu
## Absentees ## Absentees
1. Isaac Otero 1. Isaac Otero
## Meeting Details ## Meeting Details
- When: 11/07/2022 at 6:00PM
- Where: CSE Building Second Floor - When: 11/07/2022 at 6:00PM
- Where: CSE Building Second Floor
## Agenda: ## Agenda:
- ### Old/Unresolved Business
- N/A - ### Old/Unresolved Business
- ### New Business - N/A
- The first sprint: - ### New Business
- Create more Gitflows and automation. Verify current workflows and actions - The first sprint:
- Determine interface details for the app (user experience) - Create more Gitflows and automation. Verify current workflows and actions
- Start on the backend - Determine interface details for the app (user experience)
- ### Next Meeting's Business - Start on the backend
- ### Next Meeting's Business
## Decisions Made ## Decisions Made
- Linting details decided (TABS NOT SPACES)
- Linting details decided (TABS NOT SPACES)
## End Time ## End Time
- 11/07/2022 at 8:00PM
- 11/07/2022 at 8:00PM

View File

@ -8,11 +8,11 @@ Rather than create one large pipeline with many steps which increases complexity
We've identified 5 major features which we definitely want to implement in the CI/CD pipeline. We've identified 5 major features which we definitely want to implement in the CI/CD pipeline.
- Deployment - Deployment
- Unit Testing - Unit Testing
- Linting - Linting
- End To End Validation - End To End Validation
- Manual Validation - Manual Validation
We created this diagram to demonstrate our strategy of multiple simple pipelines. We created this diagram to demonstrate our strategy of multiple simple pipelines.
@ -22,18 +22,18 @@ We created this diagram to demonstrate our strategy of multiple simple pipelines
So far the features listed below have been completed to some degree: So far the features listed below have been completed to some degree:
- Deployment - Deployment
- Implemented: action triggered on any push to main, uses the github pages action to publish the app - Implemented: action triggered on any push to main, uses the github pages action to publish the app
- ToDo: Add minifications ste between trigger and github pages action - ToDo: Add minifications ste between trigger and github pages action
- Unit Testing - Unit Testing
- Implemented: action triggers on any PR, uses mocha to perform unit testing on core components - Implemented: action triggers on any PR, uses mocha to perform unit testing on core components
- ToDo: trigger workflow only on certain PRs which relate to JS code - ToDo: trigger workflow only on certain PRs which relate to JS code
- Linting (JS) - Linting (JS)
- Implemented: ction triggers on any PR, uses eslint to perform style enforcement on all JS components - Implemented: ction triggers on any PR, uses eslint to perform style enforcement on all JS components
- ToDo: trigger workflow only on certain PRs which relate to JS code - ToDo: trigger workflow only on certain PRs which relate to JS code
- Linting (HTML) - Linting (HTML)
- Implemented: action triggers on any PR, uses HTMLhint to perform style enforcement on all HTML components - Implemented: action triggers on any PR, uses HTMLhint to perform style enforcement on all HTML components
- Linting (CSS) - Linting (CSS)
- Implemented: action triggers on any PR, uses Stylelint to perform style enforcement on all CSS components - Implemented: action triggers on any PR, uses Stylelint to perform style enforcement on all CSS components
## Planned Features and Timeline ## Planned Features and Timeline

View File

@ -8,16 +8,17 @@ Rather than create one large pipeline with many steps which increases complexity
We've identified 5 major features which we definitely want to implement in the CI/CD pipeline. We've identified 5 major features which we definitely want to implement in the CI/CD pipeline.
- Deployment - Deployment
- Unit Testing - Unit Testing
- Linting - Linting
- End To End Validation - End To End Validation
- Manual Validation - Manual Validation
We also identified some features which are nice to have: We also identified some features which are nice to have:
- Automatic documentation publishing
- Minification - Automatic documentation publishing
- HTML Validation and accessibility scoring - Minification
- HTML Validation and accessibility scoring
We created this diagram to demonstrate our strategy of multiple simple pipelines. We created this diagram to demonstrate our strategy of multiple simple pipelines.
@ -27,21 +28,21 @@ We created this diagram to demonstrate our strategy of multiple simple pipelines
So far the features listed below have been completed to some degree: So far the features listed below have been completed to some degree:
- Deployment - Deployment
- Implemented: action triggered on any push to main, uses the github pages action to publish the app - Implemented: action triggered on any push to main, uses the github pages action to publish the app
- Implemented: uses JSDoc to generate documentation on the same site at [docs](https://cse110-fa22-group29.github.io/cse110-fa22-group29/docs/) - Implemented: uses JSDoc to generate documentation on the same site at [docs](https://cse110-fa22-group29.github.io/cse110-fa22-group29/docs/)
- ToDo: Add minification step between trigger and github pages action - ToDo: Add minification step between trigger and github pages action
- Unit Testing - Unit Testing
- Implemented: action triggers on PR to main, uses mocha to perform unit testing on core components - Implemented: action triggers on PR to main, uses mocha to perform unit testing on core components
- End to end testing - End to end testing
- Implemented: action triggers on PR to main, uses mocha and puppeteer to perform end to end testing - Implemented: action triggers on PR to main, uses mocha and puppeteer to perform end to end testing
- Linting (JS) - Linting (JS)
- Implemented: action triggers on PR to main, uses eslint to perform style enforcement on all JS components - Implemented: action triggers on PR to main, uses eslint to perform style enforcement on all JS components
- Linting (HTML) - Linting (HTML)
- Implemented: action triggers on PR to main, uses HTMLhint to perform style enforcement on all HTML components - Implemented: action triggers on PR to main, uses HTMLhint to perform style enforcement on all HTML components
- Linting (CSS) - Linting (CSS)
- Implemented: action triggers on PR to main, uses Stylelint to perform style enforcement on all CSS components - Implemented: action triggers on PR to main, uses Stylelint to perform style enforcement on all CSS components
- Linting (general) - Linting (general)
- Implemented: action triggers on PR to main, uses Prettier to perform style checking on all file types - Implemented: action triggers on PR to main, uses Prettier to perform style checking on all file types
## Planned Features and Timeline ## Planned Features and Timeline

View File

@ -1,8 +1,13 @@
# Meeting Minutes (10/12/2022) # Meeting Minutes (10/12/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Kickoff Meeting ## Meeting Topic: Kickoff Meeting
This meeting is being held to kickoff the start of many meetings to come during the quarter. This meeting is being held to kickoff the start of many meetings to come during the quarter.
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Gavyn Ezell 3. Gavyn Ezell
@ -14,34 +19,36 @@ This meeting is being held to kickoff the start of many meetings to come during
9. Daniel Hernandez 9. Daniel Hernandez
## Absentees ## Absentees
1. Arthur Lu 1. Arthur Lu
## Meeting Details ## Meeting Details
- When: 10/12/2022 at 3:30PM
- Where: Zoom - When: 10/12/2022 at 3:30PM
- Where: Zoom
## Agenda: ## Agenda:
- ### Old/Unresolved Business
- N/A - ### Old/Unresolved Business
- ### New Business - N/A
- go over github organization - ### New Business
- review assignments - go over github organization
- go through rules - review assignments
- start branding/team name - go through rules
- ### Next Meeting's Business - start branding/team name
- figure out roles - ### Next Meeting's Business
- decide weekly meeting times - figure out roles
- figure out team bonding events - decide weekly meeting times
- brainstorm CRUD applications - figure out team bonding events
- complete any remaining assignments - brainstorm CRUD applications
- complete any remaining assignments
## Decisions Made ## Decisions Made
- went over github organizations and reviewed the assignments
- went through the rules and agreed on the contract - went over github organizations and reviewed the assignments
- figured out the brand name - went through the rules and agreed on the contract
- figured out the brand name
## End Time ## End Time
- 10/12/2022 at 4:30PM
- 10/12/2022 at 4:30PM

View File

@ -1,8 +1,13 @@
# Meeting Minutes (10/12/2022) # Meeting Minutes (10/12/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Weekly Check-In Meeting ## Meeting Topic: Weekly Check-In Meeting
This meeting is the first weekly meeting with TA This meeting is the first weekly meeting with TA
## Attendance ## Attendance
1. Gagan Gopalaiah 1. Gagan Gopalaiah
2. Rhea Bhutada 2. Rhea Bhutada
3. Kara Hoagland 3. Kara Hoagland
@ -10,23 +15,27 @@ This meeting is the first weekly meeting with TA
5. Arthur 5. Arthur
## Meeting Details ## Meeting Details
- When: 10/12/2022 at 8:00PM
- Where: Zoom - When: 10/12/2022 at 8:00PM
- Where: Zoom
## Agenda: ## Agenda:
- ### Reviewed Project Details
- building CRUD app - ### Reviewed Project Details
- utilizing HTML, CSS, JavaScript - building CRUD app
- general domain is better than specific domain - utilizing HTML, CSS, JavaScript
- ### Get Started early - general domain is better than specific domain
- brainstorm CRUD apps - ### Get Started early
- review assignments - brainstorm CRUD apps
- figure out unit test code - review assignments
- familiarize yourself with GitHub Actions - figure out unit test code
- familiarize yourself with GitHub Actions
## Important Information ## Important Information
- Gagan OH (6:30PM-7:30PM on Wednesday) in CSE Basement
- Reserved the room if any of us want to meet there. TA not going to present unless required. - Gagan OH (6:30PM-7:30PM on Wednesday) in CSE Basement
- Reserved the room if any of us want to meet there. TA not going to present unless required.
## End Time ## End Time
- 10/12/2022 at 8:30PM
- 10/12/2022 at 8:30PM

View File

@ -1,9 +1,13 @@
# Meeting Minutes (10/19/2022) # Meeting Minutes (10/19/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Weekly Check-In Meeting ## Meeting Topic: Weekly Check-In Meeting
This meeting is the second weekly meeting with TA. This meeting is the second weekly meeting with TA.
## Attendance ## Attendance
1. Gagan Gopalaiah 1. Gagan Gopalaiah
2. Rhea Bhutada 2. Rhea Bhutada
3. George Dubinin 3. George Dubinin
@ -14,37 +18,45 @@ This meeting is the second weekly meeting with TA.
8. Isaac Otero 8. Isaac Otero
## Meeting Details ## Meeting Details
- When: 10/19/2022 at 8:00PM
- Where: Zoom - When: 10/19/2022 at 8:00PM
- Where: Zoom
## Agenda: ## Agenda:
- ### Recap of last week
- went over assignments
- discussed feelings on the midterm
- ### New Potential Meeting Time - ### Recap of last week
- without TA unless necessary
- before lecture on Monday in CSE Basement
- ### Upcoming Assignments - went over assignments
- two coming up - discussed feelings on the midterm
- brainstorm activity (due 10/23)
- continue brainstorming throughout the week
- due sunday
- pitch (11/1)
- initial draft by 10/25 - 10/26
- ### Tips on Designing - ### New Potential Meeting Time
- user center design
- define the problem first, then the tools/techniques
- finalize on the product and its features, then decide on how to build it
- ### Standup - without TA unless necessary
- not expected everyday - before lecture on Monday in CSE Basement
- once every two days is ideal
- doesn't have to be too descriptive
- ### Review of Recent Brainstorming Session - ### Upcoming Assignments
- two coming up
- brainstorm activity (due 10/23)
- continue brainstorming throughout the week
- due sunday
- pitch (11/1)
- initial draft by 10/25 - 10/26
- ### Tips on Designing
- user center design
- define the problem first, then the tools/techniques
- finalize on the product and its features, then decide on how to build it
- ### Standup
- not expected everyday
- once every two days is ideal
- doesn't have to be too descriptive
- ### Review of Recent Brainstorming Session
## End Time ## End Time
- 10/19/2022 at 3:50PM
- 10/19/2022 at 3:50PM

View File

@ -1,8 +1,13 @@
# Meeting Minutes (10/21/2022) # Meeting Minutes (10/21/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Application Brainstorming ## Meeting Topic: Application Brainstorming
This meeting is held to help the group decide on what application. We will also discuss preliminary designs. This meeting is held to help the group decide on what application. We will also discuss preliminary designs.
## Attendance ## Attendance
1. George Dubinin 1. George Dubinin
2. Gavyn Ezell 2. Gavyn Ezell
3. Henry Feng 3. Henry Feng
@ -15,30 +20,35 @@ This meeting is held to help the group decide on what application. We will also
10. Daniel Hernandez 10. Daniel Hernandez
## Absentees ## Absentees
N/A N/A
## Meeting Details ## Meeting Details
- When:
- 10/21/2022 at 10:00AM - When:
- 10/21/2022 at 1:30PM - 10/21/2022 at 10:00AM
- Where: Zoom - 10/21/2022 at 1:30PM
- Where: Zoom
## Agenda: ## Agenda:
- ### Old/Unresolved Business
- N/A - ### Old/Unresolved Business
- ### New Business - N/A
- List ideas that have been shared so far - ### New Business
- List new ideas/ideas that haven't been recorded on the doc yet - List ideas that have been shared so far
- Discuss, vote, and decide on one idea - List new ideas/ideas that haven't been recorded on the doc yet
- ### Next Meeting's Business - Discuss, vote, and decide on one idea
- Discuss design features for the chosen app - ### Next Meeting's Business
- Discuss design features for the chosen app
## Decisions Made ## Decisions Made
- Added UCSD Food Reviewer App idea to the brainstorming doc
- The 10AM group cast 3 votes for the Social Media Auxilary and 1 vote for the UCSD Food Reviewer App (one participant voted twice) - Added UCSD Food Reviewer App idea to the brainstorming doc
- The 1:30PM group cast 7 votes for the UCSD Food Reviewer App and 5 votes for the Copy/Paste App - The 10AM group cast 3 votes for the Social Media Auxilary and 1 vote for the UCSD Food Reviewer App (one participant voted twice)
- We will move forward with the UCSD Food Reviewer App - The 1:30PM group cast 7 votes for the UCSD Food Reviewer App and 5 votes for the Copy/Paste App
- We will move forward with the UCSD Food Reviewer App
## End Time ## End Time
- 10/21/2022 at 11:00AM
- 10/21/2022 at 2:30PM - 10/21/2022 at 11:00AM
- 10/21/2022 at 2:30PM

View File

@ -1,8 +1,13 @@
# Meeting Minutes (10/23/2022) # Meeting Minutes (10/23/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Application Final Decision ## Meeting Topic: Application Final Decision
This meeting is held to help the group decide on which kind of app to build. This meeting is held to help the group decide on which kind of app to build.
## Attendance ## Attendance
1. George Dubinin 1. George Dubinin
2. Henry Feng 2. Henry Feng
3. Arthur Lu 3. Arthur Lu
@ -12,29 +17,34 @@ This meeting is held to help the group decide on which kind of app to build.
7. Isaac Otero 7. Isaac Otero
## Absentees ## Absentees
1. Sanjit Joseph 1. Sanjit Joseph
2. Gavyn Ezell 2. Gavyn Ezell
3. Daniel Hernandez 3. Daniel Hernandez
## Meeting Details ## Meeting Details
- When:
- 10/23/2022 at 1:00PM - When:
- Where: Zoom (Rhea's Meeting Room) - 10/23/2022 at 1:00PM
- Where: Zoom (Rhea's Meeting Room)
## Agenda: ## Agenda:
- ### Old/Unresolved Business
- N/A - ### Old/Unresolved Business
- ### New Business - N/A
- Decide on a final app idea - ### New Business
- ### Next Meeting's Business - Decide on a final app idea
- Discuss design features for the chosen app - ### Next Meeting's Business
- Discuss design features for the chosen app
## Decisions Made ## Decisions Made
- Maybe for the food reviewer app. Presenting possible writeup to Gagan
- Maybe for the resume builder. Presenting possible writeup to Gagan https://docs.google.com/document/d/1zdvVxd47Ivdz-D0rZGNJqc3D9GiQj0n_xMJKapOV39A/edit?usp=sharing - Maybe for the food reviewer app. Presenting possible writeup to Gagan
- Maybe for Social Media Local Archive. Presenting possible writeup to Gagan https://docs.google.com/document/d/1upNr6lneB2uzCoQ12_aa1CMg1W8p2NBFb6xmP7i4-z4/edit?usp=sharing - Maybe for the resume builder. Presenting possible writeup to Gagan https://docs.google.com/document/d/1zdvVxd47Ivdz-D0rZGNJqc3D9GiQj0n_xMJKapOV39A/edit?usp=sharing
- No to the copy/paste app (not local first) - Maybe for Social Media Local Archive. Presenting possible writeup to Gagan https://docs.google.com/document/d/1upNr6lneB2uzCoQ12_aa1CMg1W8p2NBFb6xmP7i4-z4/edit?usp=sharing
- No to the copy/paste app (not local first)
## End Time ## End Time
- When:
- 10/23/2022 at 2:00PM - When:
- 10/23/2022 at 2:00PM

View File

@ -1,10 +1,15 @@
# Meeting Minutes (10/26/2022) # Meeting Minutes (10/26/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Weekly Check-In Meeting ## Meeting Topic: Weekly Check-In Meeting
This is our third weekly meeting with Gagan. This is our third weekly meeting with Gagan.
## Attendance ## Attendance
TA. Gagan Gopalaiah TA. Gagan Gopalaiah
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Sanjit Joseph 3. Sanjit Joseph
@ -12,33 +17,38 @@ TA. Gagan Gopalaiah
5. Gavyn Ezell 5. Gavyn Ezell
## Meeting Details ## Meeting Details
- When: 10/26/2022 at 3:00 PM
- Where: Zoom (Gagan's Zoom room: https://ucsd.zoom.us/j/5177090642) - When: 10/26/2022 at 3:00 PM
- Where: Zoom (Gagan's Zoom room: https://ucsd.zoom.us/j/5177090642)
## Agenda: ## Agenda:
- ### Present our ideas to Gagan
- All ideas seem to be doable
- Consider a few tweaks to "CRUDify" apps
- Gagan is partial to food review app idea, but any of them can work
- ### Present our ideas to Gagan
- ### Tips for projects - All ideas seem to be doable
- SOCIAL MEDIA ORGANIZER: avoid API integration if possible/only make it a small part, not a main feature - Consider a few tweaks to "CRUDify" apps
- RESUME BUILDER: try to "CRUDify" it more if we're going for this - Gagan is partial to food review app idea, but any of them can work
- ### Standups - ### Tips for projects
- Once per 2 days, 3 in worst case
- Perhaps make a separate slack channel for these to avoid clutter - SOCIAL MEDIA ORGANIZER: avoid API integration if possible/only make it a small part, not a main feature
- RESUME BUILDER: try to "CRUDify" it more if we're going for this
- ### Standups
- Once per 2 days, 3 in worst case
- Perhaps make a separate slack channel for these to avoid clutter
## Moving forward: ## Moving forward:
- ### BY FRIDAY:
- Try and meet tomorrow (10/27) to make a final decision
- Let Gagan know what we've decided on
- Complete project pitch assignment - need to present to Gagan tomorrow 10/27, due on canvas 11/1
- ### OVER WEEKEND: - ### BY FRIDAY:
- (If possible) Start on CI/CD pipeline (basic js app/unit tests, use Github actions to set up)
- Try and meet tomorrow (10/27) to make a final decision
- Let Gagan know what we've decided on
- Complete project pitch assignment - need to present to Gagan tomorrow 10/27, due on canvas 11/1
- ### OVER WEEKEND:
- (If possible) Start on CI/CD pipeline (basic js app/unit tests, use Github actions to set up)
## End Time ## End Time
- 10/26/2022 at 4:00 PM
- 10/26/2022 at 4:00 PM

View File

@ -1,9 +1,13 @@
# Meeting Minutes (10/27/2022) # Meeting Minutes (10/27/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Final Project Decision ## Meeting Topic: Final Project Decision
We're figuring out what project we're going to do, and figure out what we need for the starting pitch. We're figuring out what project we're going to do, and figure out what we need for the starting pitch.
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. Sanjit Joseph 2. Sanjit Joseph
3. Arthur Lu 3. Arthur Lu
@ -15,46 +19,51 @@ We're figuring out what project we're going to do, and figure out what we need f
9. Isaac Otero 9. Isaac Otero
## Meeting Details ## Meeting Details
- When: 10/27/2022 at 5:00 PM
- Where: Zoom (Rhea's Zoom room: https://ucsd.zoom.us/j/8054288343) - When: 10/27/2022 at 5:00 PM
- Where: Zoom (Rhea's Zoom room: https://ucsd.zoom.us/j/8054288343)
## Agenda: ## Agenda:
- ### Decide which project we're doing
- Gagan seemed to like the food review app idea best in their current states
- We all seem to agree that the food review app is acceptable
- Made a couple clarifications, no major changes or objections to the app
- ### Start project pitch - ### Decide which project we're doing
- Created google slides: **https://docs.google.com/presentation/d/1_XWihJGVChFtYS38RnYJtQUuFKsgvewOCOkdeMHFRg4/edit?usp=sharing**
- Prof recommends skimming the book: **https://basecamp.com/shapeup** (esp. ch.5 on risks and rabbit holes)
- Finishing Risks + Rabbit holes here in the meeting
- Kara posted a design prototype in Slack: https://cse110fall2022.slack.com/archives/C04598WA7P1/p1666918573779859
- ### App Description - Gagan seemed to like the food review app idea best in their current states
- Renaming it to a "Food Diary" app, not limited to UCSD - We all seem to agree that the food review app is acceptable
- Allows users to store info about recent foods, restaurant name, location, price, your rating etc. - Made a couple clarifications, no major changes or objections to the app
- Probably provides food suggestions based on where you've eaten (and liked) before
- We're not going to try anything with external data atm.
- ### Start project pitch
- Created google slides: **https://docs.google.com/presentation/d/1_XWihJGVChFtYS38RnYJtQUuFKsgvewOCOkdeMHFRg4/edit?usp=sharing**
- Prof recommends skimming the book: **https://basecamp.com/shapeup** (esp. ch.5 on risks and rabbit holes)
- Finishing Risks + Rabbit holes here in the meeting
- Kara posted a design prototype in Slack: https://cse110fall2022.slack.com/archives/C04598WA7P1/p1666918573779859
- ### App Description
- Renaming it to a "Food Diary" app, not limited to UCSD
- Allows users to store info about recent foods, restaurant name, location, price, your rating etc.
- Probably provides food suggestions based on where you've eaten (and liked) before
- We're not going to try anything with external data atm.
## Moving forward: ## Moving forward:
- ### BY TOMORROW:
- FINISH PITCH SLIDES
- MUST CHANGE DIAGRAM TO ALL RESTAURANTS (Isaac will change this)
- Daniel will update the pitch slides by adding images/graphics.
- Daniel + Sanjit are doing visual representation.
- Gayvn is doing potential competitors
- Henry, Sanjit, Kara are doing user personas
- Rhea is doing statement + purpose
- Arthur + Marc are doing "why it's a CRUD app"
- See if we can have a short meeting tomorrow before meeting Gagan just to review our pitch. - ### BY TOMORROW:
- Put all components in specs folder before pitch
- Meet at 2:30? Meeting with Gagan is probably at 3:30
- ### LATER: - FINISH PITCH SLIDES
- Have some people split off and work on the basic UI design. Technically Sanjit had the 'art role' according to the TA but not sure what that entails. More ppl would def be helpful. TBD who else is helping - MUST CHANGE DIAGRAM TO ALL RESTAURANTS (Isaac will change this)
- Daniel will update the pitch slides by adding images/graphics.
- Daniel + Sanjit are doing visual representation.
- Gayvn is doing potential competitors
- Henry, Sanjit, Kara are doing user personas
- Rhea is doing statement + purpose
- Arthur + Marc are doing "why it's a CRUD app"
- See if we can have a short meeting tomorrow before meeting Gagan just to review our pitch.
- Put all components in specs folder before pitch
- Meet at 2:30? Meeting with Gagan is probably at 3:30
- ### LATER:
- Have some people split off and work on the basic UI design. Technically Sanjit had the 'art role' according to the TA but not sure what that entails. More ppl would def be helpful. TBD who else is helping
## End Time ## End Time
- 10/27/2022 at 6:15 PM
- 10/27/2022 at 6:15 PM

View File

@ -1,24 +1,31 @@
# Meeting Minutes (10/28/2022) # Meeting Minutes (10/28/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Project Pitch ## Meeting Topic: Project Pitch
We finished up the project pitch docs and presenting them to Gagan. We finished up the project pitch docs and presenting them to Gagan.
Google slides: **https://docs.google.com/presentation/d/1_XWihJGVChFtYS38RnYJtQUuFKsgvewOCOkdeMHFRg4/edit?usp=sharing** Google slides: **https://docs.google.com/presentation/d/1_XWihJGVChFtYS38RnYJtQUuFKsgvewOCOkdeMHFRg4/edit?usp=sharing**
## Meeting Details ## Meeting Details
- When: 10/28/2022 at 2:30 PM
- Where: Zoom (Rhea's Zoom room: https://ucsd.zoom.us/j/8054288343) - When: 10/28/2022 at 2:30 PM
- Where: Zoom (Rhea's Zoom room: https://ucsd.zoom.us/j/8054288343)
## Agenda: ## Agenda:
- ### Finish Project Pitch documents
- Finished user stories/diagrams and uploaded to github - ### Finish Project Pitch documents
- Went over presentation before showing TA - Finished user stories/diagrams and uploaded to github
- Presented project to Gagan - Went over presentation before showing TA
- **Overall reaction - he liked our app! More feedback to come, but we can feel free to start some basic work.** - Presented project to Gagan
- **Overall reaction - he liked our app! More feedback to come, but we can feel free to start some basic work.**
## Moving forward: ## Moving forward:
- I think we need to upload our project pitch to canvas by 11/1
- Start on the really basic stuff as discussed in lecture (hello world for CI/CD setup, etc) - I think we need to upload our project pitch to canvas by 11/1
- Start on the really basic stuff as discussed in lecture (hello world for CI/CD setup, etc)
## End Time ## End Time
- 10/28/2022 at 4:00 PM
- 10/28/2022 at 4:00 PM

View File

@ -1,41 +1,50 @@
# Meeting Minutes (11/01/2022) # Meeting Minutes (11/01/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Work going forward ## Meeting Topic: Work going forward
We're trying to figure out what our goals are for the project and how to get started. We're trying to figure out what our goals are for the project and how to get started.
## Meeting Details ## Meeting Details
- When: 11/01/2022 at 7:00 PM
- Where: Zoom (Rhea's Zoom room: https://ucsd.zoom.us/j/8054288343) - When: 11/01/2022 at 7:00 PM
- Where: Zoom (Rhea's Zoom room: https://ucsd.zoom.us/j/8054288343)
## Attendance ## Attendance
1. Rhea
2. Gavyn 1. Rhea
3. Isaac 2. Gavyn
4. Kara 3. Isaac
5. Marc 4. Kara
6. Henry 5. Marc
7. Daniel 6. Henry
8. Sanjit 7. Daniel
8. Sanjit
## Notes: ## Notes:
- Gagan suggests we have a feature backlog and pull stuff from that
- Using Github Issues for our feature backlog
- Perhaps integrate TTS from Lab5 into something (pick a random restaurant while driving, etc) - Gagan suggests we have a feature backlog and pull stuff from that
- Using Github Issues for our feature backlog
- Created figma sketch for app design, uploaded to github and google slides - Perhaps integrate TTS from Lab5 into something (pick a random restaurant while driving, etc)
- Created figma sketch for app design, uploaded to github and google slides
## Moving forward: ## Moving forward:
- ### BY TONIGHT:
- We'll submit our pitch files
- ### LATER:
- Sanjit will upload a basic hello world program in order to test deployment/github actions
- Arthur will start figuring out how to configure github actions
- ### PREFERENCES: - ### BY TONIGHT:
- BACKEND: Henry, Gavyn, Kara - We'll submit our pitch files
- FRONTEND: Isaac - ### LATER:
- NO PREFERENCE: Daniel, Marc, Rhea, Sanjit
- Sanjit will upload a basic hello world program in order to test deployment/github actions
- Arthur will start figuring out how to configure github actions
- ### PREFERENCES:
- BACKEND: Henry, Gavyn, Kara
- FRONTEND: Isaac
- NO PREFERENCE: Daniel, Marc, Rhea, Sanjit
## End Time ## End Time
- 11/01/2022 at 9:00 PM
- 11/01/2022 at 9:00 PM

View File

@ -1,34 +1,39 @@
# Meeting Minutes (11/02/2022) # Meeting Minutes (11/02/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Weekly TA Catchup with Gagan ## Meeting Topic: Weekly TA Catchup with Gagan
We are meeting with Gagan to discuss early phase design concepts and decisions we need to think about as we start the early coding phase. We are meeting with Gagan to discuss early phase design concepts and decisions we need to think about as we start the early coding phase.
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Gagan Gopalaiah 3. Gagan Gopalaiah
## Meeting Details ## Meeting Details
- When: 11/02/2022 at 3:30PM
- Where: Zoom - When: 11/02/2022 at 3:30PM
- Where: Zoom
## Agenda: ## Agenda:
## Discussion Points by Gagan ## Discussion Points by Gagan
- Now that we finished designs stage there are 2 approaches
- The first is to just start coding without thinking about design (cowboy coding). It works but can get bumpy down the road - Now that we finished designs stage there are 2 approaches
- The second is to look at the project from a birds eye view and break it down into milestones and tasks. First break it down into weeks and then decide on what to do each day of the week. This will make it easier to keep things organized. - The first is to just start coding without thinking about design (cowboy coding). It works but can get bumpy down the road
- Jira and GitHub issues will be super helpful. Jira is a more expensive option so instead prof recommends creating issues. - The second is to look at the project from a birds eye view and break it down into milestones and tasks. First break it down into weeks and then decide on what to do each day of the week. This will make it easier to keep things organized.
- Start thinking about storage options. Think local first and decide on options like: - Jira and GitHub issues will be super helpful. Jira is a more expensive option so instead prof recommends creating issues.
- locally stored json files - Start thinking about storage options. Think local first and decide on options like:
- browser local storage - locally stored json files
- "real" database like IndexDB - browser local storage
- Think about different models to keep track of changes and versions. Consider the branching model (one central repository and everyone has a branch or one breanch per feature) and the forking model (the central repository is copied and developers work in these copies and push changes to their own copies before syncing to the central repo). Useful info here: https://www.flagship.io/git-branching-strategies/ - "real" database like IndexDB
- Think about how pull requests will be approved and create a system for PR review and suggests. - Think about different models to keep track of changes and versions. Consider the branching model (one central repository and everyone has a branch or one breanch per feature) and the forking model (the central repository is copied and developers work in these copies and push changes to their own copies before syncing to the central repo). Useful info here: https://www.flagship.io/git-branching-strategies/
- Break down the project and decide on which tasks to be completed. Then decide on how long sprints will last and how tasks will be assigned. - Think about how pull requests will be approved and create a system for PR review and suggests.
- We need to create the ADR and place it in the brainstorming section of the repo. This will contain details about specific project decisions that we made like database decisions (for example). - Break down the project and decide on which tasks to be completed. Then decide on how long sprints will last and how tasks will be assigned.
- We need to create the ADR and place it in the brainstorming section of the repo. This will contain details about specific project decisions that we made like database decisions (for example).
## End Time ## End Time
- 11/02/2022 at 4:00PM
- 11/02/2022 at 4:00PM

View File

@ -1,9 +1,13 @@
# Meeting Minutes (11/03/2022) # Meeting Minutes (11/03/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Technologies Discussion ## Meeting Topic: Technologies Discussion
We're deciding on what web technologies we will incorporate into our food blog application. We're deciding on what web technologies we will incorporate into our food blog application.
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. Sanjit Joseph 2. Sanjit Joseph
3. Arthur Lu 3. Arthur Lu
@ -15,30 +19,30 @@ We're deciding on what web technologies we will incorporate into our food blog a
9. Isaac Otero 9. Isaac Otero
## Meeting Details ## Meeting Details
- When: 11/03/2022 at 3:00PM
- Where: In-person (CSE Basement B250) and George's Zoom room - When: 11/03/2022 at 3:00PM
- Where: In-person (CSE Basement B250) and George's Zoom room
## Agenda: ## Agenda:
- ### Answer the questions that Gagan's asked the team leads yesterday
- What high level approach will we have to coding?
- Slow approach with diagrams and short sprints of around 3 days. Biweekly meetings where we catch up with what happened end of each sprint.
- What issue tracker will we use?
- Use GitHub issues for tracking. Assign and breakdown tasks at the begining of each sprint.
- What database will we use?
- Rely on localStorage short-term and implement a non-relational database like MongoDB later.
- What branching/forking strategy will we use
- We will be creating branches for different features and be submitting PRs direclty to the master branch. Forks will only be created for large overhaul type changes
- How will PRs be approved
- The team will be split up into groups for different aspects of the app (front end, ui, database for example) and PRs will be reviewed and approved by 1 other member of the respective group
- Introduce the ADR and discuss how we will create it
-
- ### Answer the questions that Gagan's asked the team leads yesterday
- What high level approach will we have to coding?
- Slow approach with diagrams and short sprints of around 3 days. Biweekly meetings where we catch up with what happened end of each sprint.
- What issue tracker will we use?
- Use GitHub issues for tracking. Assign and breakdown tasks at the begining of each sprint.
- What database will we use?
- Rely on localStorage short-term and implement a non-relational database like MongoDB later.
- What branching/forking strategy will we use
- We will be creating branches for different features and be submitting PRs direclty to the master branch. Forks will only be created for large overhaul type changes
- How will PRs be approved
- The team will be split up into groups for different aspects of the app (front end, ui, database for example) and PRs will be reviewed and approved by 1 other member of the respective group
- ## Introduce the ADR and discuss how we will create it
## Assignments: ## Assignments:
- ### By X point in time:
- ### By X point in time:
- -
## End Time ## End Time
- 11/03/2022 at 4:00 PM
- 11/03/2022 at 4:00 PM

View File

@ -1,32 +1,41 @@
# Meeting Minutes (11/04/2022) # Meeting Minutes (11/04/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Technologies Discussion ## Meeting Topic: Technologies Discussion
We're planning out our first sprint and breaking up the project into tasks. Tasks will be assigned to groups and GitHub issues will be created We're planning out our first sprint and breaking up the project into tasks. Tasks will be assigned to groups and GitHub issues will be created
for each task and assigned to a group. for each task and assigned to a group.
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. Sanjit Joseph 2. Sanjit Joseph
3. Arthur Lu 3. Arthur Lu
4. Marc Reta 4. Marc Reta
6. Kara Hoagland 5. Kara Hoagland
7. Daniel Hernandez 6. Daniel Hernandez
8. Gavyn Ezell 7. Gavyn Ezell
9. Isaac Otero 8. Isaac Otero
10. Henry Feng 9. Henry Feng
## Meeting Details ## Meeting Details
- When: 11/04/2022 at 10:00AM
- Where: George's Zoom room - When: 11/04/2022 at 10:00AM
- Where: George's Zoom room
## Agenda: ## Agenda:
## Sprint 1 Categories and Assignments ## Sprint 1 Categories and Assignments
Frontend: Isaac, Sanjit, and Daniel Frontend: Isaac, Sanjit, and Daniel
Backend: Rhea, George, Gavyn, Kara, Backend: Rhea, George, Gavyn, Kara,
- Save to database
- Load from database - Save to database
- Clear database - Load from database
Unit Testing: Arthur, Marc - Clear database
Unit Testing: Arthur, Marc
## End Time ## End Time
- 11/03/2022 at 10:30 AM
- 11/03/2022 at 10:30 AM

View File

@ -1,9 +1,13 @@
# Meeting Minutes (11/08/2022) # Meeting Minutes (11/08/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: In-Person First Sprint Day 2 ## Meeting Topic: In-Person First Sprint Day 2
Meeting notes for the first sprint Meeting notes for the first sprint
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Gavyn Ezell 3. Gavyn Ezell
@ -12,28 +16,30 @@ Meeting notes for the first sprint
6. Daniel Hernandez 6. Daniel Hernandez
## Meeting Details ## Meeting Details
- When: 11/08/2022 at 2:00PM
- Where: Mike's Red Tacos - When: 11/08/2022 at 2:00PM
- Where: Mike's Red Tacos
## Agenda: ## Agenda:
- ### Old/Unresolved Business
- N/A - ### Old/Unresolved Business
- ### New Business - N/A
- Isaac now knows what Wolftown is - ### New Business
- Pair programming setup with VSCode - Isaac now knows what Wolftown is
- ### Next Meeting's Business - Pair programming setup with VSCode
- ### Next Meeting's Business
## App Progress ## App Progress
- The landing page is closer
- Review card css file entered - The landing page is closer
- Review Card javascript logic implemented (thanks Gavin) - Review card css file entered
- Review Card javascript logic implemented (thanks Gavin)
- -
## Decisions Made ## Decisions Made
- Linting details decided (TABS NOT SPACES)
- Linting details decided (TABS NOT SPACES)
## End Time ## End Time
- 11/07/2022 at 8:00PM
- 11/07/2022 at 8:00PM

View File

@ -1,36 +1,43 @@
# Meeting Minutes (11/09/2022) # Meeting Minutes (11/09/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Weekly TA Catchup with Gagan ## Meeting Topic: Weekly TA Catchup with Gagan
We are meeting with Gagan to discuss progress made on Sprint 1 and testing strategies that we need to keep in mind as we continue developing. We are meeting with Gagan to discuss progress made on Sprint 1 and testing strategies that we need to keep in mind as we continue developing.
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Gagan Gopalaiah 3. Gagan Gopalaiah
4. Sanjit Joseph 4. Sanjit Joseph
## Meeting Details ## Meeting Details
- When: 11/09/2022 at 3:30PM
- Where: Zoom - When: 11/09/2022 at 3:30PM
- Where: Zoom
## Agenda: ## Agenda:
## Discussion Points by Gagan ## Discussion Points by Gagan
- Provided updates on first sprint
- Testing Tips - Provided updates on first sprint
- functionality testing - Testing Tips
- test one feature - functionality testing
- test individual functions - test one feature
- static testing - test individual functions
- checking if its meeting the conventions and standards for specific programming language - static testing
- linting - checking if its meeting the conventions and standards for specific programming language
- specific to programming language - linting
- overall - specific to programming language
- if tested properly, we reduce problems end-to-end testing - overall
- Documentation - if tested properly, we reduce problems end-to-end testing
- What the code does? - Documentation
- What the file is for? - What the code does?
- JS Docs - What the file is for?
- JS Docs
## End Time ## End Time
- 11/09/2022 at 4:00PM
- 11/09/2022 at 4:00PM

View File

@ -1,8 +1,11 @@
# Sprint 1 Retrospective (11/14/2022) # Sprint 1 Retrospective (11/14/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Sprint 1 Retrospective ## Meeting Topic: Sprint 1 Retrospective
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Sanjit Joseph 3. Sanjit Joseph
@ -15,54 +18,64 @@
10. Isaac Otero 10. Isaac Otero
## Meeting Details ## Meeting Details
- When: 11/14/2022 at 4:30PM
- Where: On Campus - When: 11/14/2022 at 4:30PM
- Where: On Campus
## Agenda: ## Agenda:
Discuss the review, share more detailed thoughts on sprint 1, and create some resolutions for sprint 2 Discuss the review, share more detailed thoughts on sprint 1, and create some resolutions for sprint 2
## Sprint 1 Review Below (for convenience) ## Sprint 1 Review Below (for convenience)
## Sprint 1 REVIEW ## Sprint 1 REVIEW
In collecting feedback during our final sprint the leads decided to ask members individually about their experience during sprint 1 to then summarize these responses. Each member was asked 4 questions with their summarized responses below: In collecting feedback during our final sprint the leads decided to ask members individually about their experience during sprint 1 to then summarize these responses. Each member was asked 4 questions with their summarized responses below:
### What do you think worked well in the first sprint? ### What do you think worked well in the first sprint?
We resolved to hold each of our sprint 1 meetings in person with a remote option available to members that couldn't attend. We really liked hanging out at the restaurants before working on the sprint and these experiences encouraged psychological safety in the group. We made some noticeable progress which was very encouraging for the group. Specifically, we figured out quite a bit of the CI/CD pipeline details which will help us going forward and we got a solid grasp of what the visual aspects and feel of the website will be. We resolved to hold each of our sprint 1 meetings in person with a remote option available to members that couldn't attend. We really liked hanging out at the restaurants before working on the sprint and these experiences encouraged psychological safety in the group. We made some noticeable progress which was very encouraging for the group. Specifically, we figured out quite a bit of the CI/CD pipeline details which will help us going forward and we got a solid grasp of what the visual aspects and feel of the website will be.
### What can we improve on for the next sprint? ### What can we improve on for the next sprint?
We ran into trouble early on due to some lack of planning for specific tasks. The members agreed that we should have spent more time defining tasks for specific members and defining goals for our different teams (frontend, backend, and unit testing). There was some concern over members not being able to attend all meetings and we think this could have been fixed with regularly scheduled meetings. Some technical concerns were the Javascript unit testing pipeline development lagging behind code development and pipeline requirements being unclear. Perhaps we should write out a style document to guide the automated linting process. We ran into trouble early on due to some lack of planning for specific tasks. The members agreed that we should have spent more time defining tasks for specific members and defining goals for our different teams (frontend, backend, and unit testing). There was some concern over members not being able to attend all meetings and we think this could have been fixed with regularly scheduled meetings. Some technical concerns were the Javascript unit testing pipeline development lagging behind code development and pipeline requirements being unclear. Perhaps we should write out a style document to guide the automated linting process.
### What was your contribution to the sprint? ### What was your contribution to the sprint?
* Rhea Bhutada: Worked on the backend features including how to get create new review card page to open in a new window
* Gavyn Etzel: Helped with javascript side of things for website - Rhea Bhutada: Worked on the backend features including how to get create new review card page to open in a new window
* Henry Feng: Local image store and meeting support - Gavyn Etzel: Helped with javascript side of things for website
* Sanjit: Default photo design and frontend star rating css - Henry Feng: Local image store and meeting support
* Daniel: Helped modify html, added upload file feature - Sanjit: Default photo design and frontend star rating css
* Arthur Lu: Added JS Linting, Unit testing pipeline actions and rote a few simple unit tests; added deployment pipeline action - Daniel: Helped modify html, added upload file feature
* Marc Rheta: Added HTML Linting and CSS Linting - Arthur Lu: Added JS Linting, Unit testing pipeline actions and rote a few simple unit tests; added deployment pipeline action
* Isaac Otero: Low and mid fidelity wireframes of how our page will look like, Started working on homepage.html - Marc Rheta: Added HTML Linting and CSS Linting
* George Dubinin: Meeting notes, Repo organization, cookies - Isaac Otero: Low and mid fidelity wireframes of how our page will look like, Started working on homepage.html
* Kara Hoagland: CRUD backend functionality - George Dubinin: Meeting notes, Repo organization, cookies
- Kara Hoagland: CRUD backend functionality
### Was there anything blocking your progress in the sprint? ### Was there anything blocking your progress in the sprint?
Communication was challenging especially for members that would attend over Zoom and it was a challenge keeping track of each member's progress. We ran into some issues with the branching strategy with branches rapidly multiplying at points and the GitHub tags not working. The biggest technical issue we experienced involved Node and ES6 compatibility issues.
Communication was challenging especially for members that would attend over Zoom and it was a challenge keeping track of each member's progress. We ran into some issues with the branching strategy with branches rapidly multiplying at points and the GitHub tags not working. The biggest technical issue we experienced involved Node and ES6 compatibility issues.
Overall we feel that sprint 1 was a success with many lessons learned. Our enthusiasm for the project is only building and we are excited to get back into it with sprint 2 after a much needed short break. Overall we feel that sprint 1 was a success with many lessons learned. Our enthusiasm for the project is only building and we are excited to get back into it with sprint 2 after a much needed short break.
## Resolutions ## Resolutions
* Divide up tasks and assign tasks to members
* Define objectives for team groups (frontend, backend, and unit testing) - Divide up tasks and assign tasks to members
* Scheduled meetings with more notice and keep meetings at a more central location so that more members can attend - Define objectives for team groups (frontend, backend, and unit testing)
* Get the unit testing modules up to date - Scheduled meetings with more notice and keep meetings at a more central location so that more members can attend
* To-do: create a style guide - Get the unit testing modules up to date
* Heed the styles and documentation (to avoid linter issues) - To-do: create a style guide
- Heed the styles and documentation (to avoid linter issues)
## Early Issues ## Early Issues
* restructure local storage to store individual (key, review) pairs rather than storing data under one key (current schema)
* implement a file upload system (think canvas file upload) - restructure local storage to store individual (key, review) pairs rather than storing data under one key (current schema)
* add a cuisine attribute for tagging and filtering - implement a file upload system (think canvas file upload)
* Create UI buttons and low fidelity css - add a cuisine attribute for tagging and filtering
* Unit test all the above - Create UI buttons and low fidelity css
- Unit test all the above
## End Time ## End Time
- 11/14/2022 at 5:00PM
- 11/14/2022 at 5:00PM

View File

@ -1,9 +1,13 @@
# Sprint 1 Review Meeting Minutes (11/13/2022) # Sprint 1 Review Meeting Minutes (11/13/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Sprint 1 Review ## Meeting Topic: Sprint 1 Review
We are meeting with Gagan to discuss progress made on Sprint 1 and testing strategies that we need to keep in mind as we continue developing. We are meeting with Gagan to discuss progress made on Sprint 1 and testing strategies that we need to keep in mind as we continue developing.
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Sanjit Joseph 3. Sanjit Joseph
@ -16,37 +20,45 @@ We are meeting with Gagan to discuss progress made on Sprint 1 and testing strat
10. Isaac Otero 10. Isaac Otero
## Meeting Details ## Meeting Details
- When: 11/13/2022 at 1:00PM
- Where: Capital One Cafe and Zoom - When: 11/13/2022 at 1:00PM
- Where: Capital One Cafe and Zoom
## Agenda: ## Agenda:
Review the week 7 sprint and get the writeup for the Agile review assignemnt Review the week 7 sprint and get the writeup for the Agile review assignemnt
## Sprint 1 REVIEW ## Sprint 1 REVIEW
In collecting feedback during our final sprint the leads decided to ask members individually about their experience during sprint 1 to then summarize these responses. Each member was asked 4 questions with their summarized responses below: In collecting feedback during our final sprint the leads decided to ask members individually about their experience during sprint 1 to then summarize these responses. Each member was asked 4 questions with their summarized responses below:
### What do you think worked well in the first sprint? ### What do you think worked well in the first sprint?
We resolved to hold each of our sprint 1 meetings in person with a remote option available to members that couldn't attend. We really liked hanging out at the restaurants before working on the sprint and these experiences encouraged psychological safety in the group. We made some noticeable progress which was very encouraging for the group. Specifically, we figured out quite a bit of the CI/CD pipeline details which will help us going forward and we got a solid grasp of what the visual aspects and feel of the website will be. We resolved to hold each of our sprint 1 meetings in person with a remote option available to members that couldn't attend. We really liked hanging out at the restaurants before working on the sprint and these experiences encouraged psychological safety in the group. We made some noticeable progress which was very encouraging for the group. Specifically, we figured out quite a bit of the CI/CD pipeline details which will help us going forward and we got a solid grasp of what the visual aspects and feel of the website will be.
### What can we improve on for the next sprint? ### What can we improve on for the next sprint?
We ran into trouble early on due to some lack of planning for specific tasks. The members agreed that we should have spent more time defining tasks for specific members and defining goals for our different teams (frontend, backend, and unit testing). There was some concern over members not being able to attend all meetings and we think this could have been fixed with regularly scheduled meetings. Some technical concerns were the Javascript unit testing pipeline development lagging behind code development and pipeline requirements being unclear. Perhaps we should write out a style document to guide the automated linting process. We ran into trouble early on due to some lack of planning for specific tasks. The members agreed that we should have spent more time defining tasks for specific members and defining goals for our different teams (frontend, backend, and unit testing). There was some concern over members not being able to attend all meetings and we think this could have been fixed with regularly scheduled meetings. Some technical concerns were the Javascript unit testing pipeline development lagging behind code development and pipeline requirements being unclear. Perhaps we should write out a style document to guide the automated linting process.
### What was your contribution to the sprint? ### What was your contribution to the sprint?
* Rhea Bhutada: Worked on the backend features including how to get create new review card page to open in a new window
* Gavyn Etzel: Helped with javascript side of things for website - Rhea Bhutada: Worked on the backend features including how to get create new review card page to open in a new window
* Henry Feng: Local image store and meeting support - Gavyn Etzel: Helped with javascript side of things for website
* Sanjit: Default photo design and frontend star rating css - Henry Feng: Local image store and meeting support
* Daniel: Helped modify html, added upload file feature - Sanjit: Default photo design and frontend star rating css
* Arthur Lu: Added JS Linting, Unit testing pipeline actions and rote a few simple unit tests; added deployment pipeline action - Daniel: Helped modify html, added upload file feature
* Marc Rheta: Added HTML Linting and CSS Linting - Arthur Lu: Added JS Linting, Unit testing pipeline actions and rote a few simple unit tests; added deployment pipeline action
* Isaac Otero: Low and mid fidelity wireframes of how our page will look like, Started working on homepage.html - Marc Rheta: Added HTML Linting and CSS Linting
* George Dubinin: Meeting notes, Repo organization, cookies - Isaac Otero: Low and mid fidelity wireframes of how our page will look like, Started working on homepage.html
* Kara Hoagland: CRUD backend functionality - George Dubinin: Meeting notes, Repo organization, cookies
- Kara Hoagland: CRUD backend functionality
### Was there anything blocking your progress in the sprint? ### Was there anything blocking your progress in the sprint?
Communication was challenging especially for members that would attend over Zoom and it was a challenge keeping track of each member's progress. We ran into some issues with the branching strategy with branches rapidly multiplying at points and the GitHub tags not working. The biggest technical issue we experienced involved Node and ES6 compatibility issues.
Communication was challenging especially for members that would attend over Zoom and it was a challenge keeping track of each member's progress. We ran into some issues with the branching strategy with branches rapidly multiplying at points and the GitHub tags not working. The biggest technical issue we experienced involved Node and ES6 compatibility issues.
Overall we feel that sprint 1 was a success with many lessons learned. Our enthusiasm for the project is only building and we are excited to get back into it with sprint 2 after a much needed short break. Overall we feel that sprint 1 was a success with many lessons learned. Our enthusiasm for the project is only building and we are excited to get back into it with sprint 2 after a much needed short break.
## End Time ## End Time
- 11/13/2022 at 3:00PM
- 11/13/2022 at 3:00PM

View File

@ -1,33 +1,40 @@
# Meeting Minutes (11/16/2022) # Meeting Minutes (11/16/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Weekly TA Catchup with Gagan ## Meeting Topic: Weekly TA Catchup with Gagan
We are meeting with Gagan to discuss Checkpoint 1 and Sprint 2 resolutions. We are meeting with Gagan to discuss Checkpoint 1 and Sprint 2 resolutions.
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Gagan Gopalaiah 3. Gagan Gopalaiah
4. Kara Hoagland 4. Kara Hoagland
## Meeting Details ## Meeting Details
- When: 11/16/2022 at 3:30PM
- Where: Zoom - When: 11/16/2022 at 3:30PM
- Where: Zoom
## Agenda: ## Agenda:
## Discussion Points by Gagan ## Discussion Points by Gagan
- Updated Gagan on Sprint 1
- looked at Girhub actions - Updated Gagan on Sprint 1
- looked at the published page so far - looked at Girhub actions
- discussed retrospective - looked at the published page so far
- Upcoming Assignments - discussed retrospective
- we have to come up with a video on the status of our app - Upcoming Assignments
- ramp up the styling part, so u can brag about the design of the app - we have to come up with a video on the status of our app
- this video is supposed to encourage healthy competition - ramp up the styling part, so u can brag about the design of the app
- Other Concerns - this video is supposed to encourage healthy competition
- JSDocs - not primary concern right now - Other Concerns
- GitHub Pages vs. Netlify - JSDocs - not primary concern right now
- Gagan sees Netlify as more professional and not to difficult to implement - GitHub Pages vs. Netlify
- Gagan sees Netlify as more professional and not to difficult to implement
## End Time ## End Time
- 11/16/2022 at 3:45PM
- 11/16/2022 at 3:45PM

View File

@ -1,9 +1,13 @@
# Meeting Minutes (11/07/2022) # Meeting Minutes (11/07/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: First Sprint ## Meeting Topic: First Sprint
Meeting notes for the first sprint Meeting notes for the first sprint
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Gavyn Ezell 3. Gavyn Ezell
@ -16,32 +20,40 @@ Meeting notes for the first sprint
10. Isaac Otero 10. Isaac Otero
## Meeting Details ## Meeting Details
- When: 11/17/2022 at 11:30PM
- Where: Design & Innovation Building - When: 11/17/2022 at 11:30PM
- Where: Design & Innovation Building
## Agenda: ## Agenda:
- ### Old/Unresolved Business
- N/A
- ### New Business
- Second sprint commences!
- Focus on design progress for the project showoff
- Cuisine vs Tag identifiers for reviews (both?)
- localStorage will hold:
- list of active IDs which is updated for very create operation. An ID uniquely identifies a review
- value, "nextId" denoting the index of the next available slot for an Id
- entries for every single review (javascript object)
- a list for every tag that denotes which Ids belong to reviews containing this tag
End2end tests will rely on specific html element names which include the following: - ### Old/Unresolved Business
- "create-btn" (located on homepage and used to create a new review) - N/A
- "submit-btn" (located on form and used to post review) - ### New Business
- "update-btn" (located on a specific review page)
- "delete-btn" (located on a specific review page) - Second sprint commences!
- "tag-add-btn" (located on the review create form) - Focus on design progress for the project showoff
- ### Next Meeting's Business - Cuisine vs Tag identifiers for reviews (both?)
- localStorage will hold:
- list of active IDs which is updated for very create operation. An ID uniquely identifies a review
- value, "nextId" denoting the index of the next available slot for an Id
- entries for every single review (javascript object)
- a list for every tag that denotes which Ids belong to reviews containing this tag
End2end tests will rely on specific html element names which include the following:
- "create-btn" (located on homepage and used to create a new review)
- "submit-btn" (located on form and used to post review)
- "update-btn" (located on a specific review page)
- "delete-btn" (located on a specific review page)
- "tag-add-btn" (located on the review create form)
- ### Next Meeting's Business
## Decisions Made ## Decisions Made
- -
## End Time ## End Time
- 11/17/2022 at 1:00PM
- 11/17/2022 at 1:00PM

View File

@ -1,8 +1,11 @@
# Meeting Minutes (11/20/2022) # Meeting Minutes (11/20/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Second Sprint Meeting 3 ## Meeting Topic: Second Sprint Meeting 3
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Gavyn Ezell 3. Gavyn Ezell
@ -15,25 +18,31 @@
10. Isaac Otero 10. Isaac Otero
## Meeting Details ## Meeting Details
- When: 11/20/2022 at 1:00PM
- Where: CSE Building Second Floor - When: 11/20/2022 at 1:00PM
- Where: CSE Building Second Floor
## Agenda: ## Agenda:
- ### Old/Unresolved Business
- N/A
- ### New Business
- Planning for the Agile Steam Status Video
- *Present the status of your software*
- Show off the preliminary design of index.html
- Walk through the process of creating a journal entry
- *Description of current challenges to development*
- *Preview of the next sprint and what to look forward to*
- Front end redo for home page including semantic restructuring and enhanced CSS - ### Old/Unresolved Business
- Documentation session for JS, CSS, and HTML files - N/A
- Pipeline details have largely been ironed out - ### New Business
- ### Next Meeting's Business
- Creation of team status video - Planning for the Agile Steam Status Video
- _Present the status of your software_
- Show off the preliminary design of index.html
- Walk through the process of creating a journal entry
- _Description of current challenges to development_
- _Preview of the next sprint and what to look forward to_
- Front end redo for home page including semantic restructuring and enhanced CSS
- Documentation session for JS, CSS, and HTML files
- Pipeline details have largely been ironed out
- ### Next Meeting's Business
- Creation of team status video
## End Time ## End Time
- 11/20/2022 at 3:00PM
- 11/20/2022 at 3:00PM

View File

@ -1,33 +1,40 @@
# Meeting Minutes (11/23/2022) # Meeting Minutes (11/23/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Weekly TA Catchup with Gagan ## Meeting Topic: Weekly TA Catchup with Gagan
We are meeting with Gagan to discuss status video and general updates on project. We are meeting with Gagan to discuss status video and general updates on project.
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Gagan Gopalaiah 3. Gagan Gopalaiah
## Meeting Details ## Meeting Details
- When: 11/23/2022 at 3:30PM
- Where: Zoom - When: 11/23/2022 at 3:30PM
- Where: Zoom
## Discussion Points by Gagan ## Discussion Points by Gagan
- progress looks good!!
- deadline for project - progress looks good!!
- december 3rd/4th code freeze - deadline for project
- no new features - december 3rd/4th code freeze
- only debugging - no new features
- after december 3rd/4th we need to focus on making a good final video - only debugging
- final video - after december 3rd/4th we need to focus on making a good final video
- played on finals day, voted on in class - final video
- need to spend a good amount of time on it - played on finals day, voted on in class
- essential to make this good - need to spend a good amount of time on it
- last week there are going to be one-to-one sessions held - essential to make this good
- Gagan will be asking questions to the team - last week there are going to be one-to-one sessions held
- everyone needs to be aware of all aspects of the project - Gagan will be asking questions to the team
- start end-to-end testing on project - everyone needs to be aware of all aspects of the project
- quickly discussed team roles - start end-to-end testing on project
- quickly discussed team roles
## End Time ## End Time
- 11/23/2022 at 3:52PM
- 11/23/2022 at 3:52PM

View File

@ -1,9 +1,13 @@
# Sprint 2 Review Meeting Minutes (11/27/2022) # Sprint 2 Review Meeting Minutes (11/27/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Sprint 2 Review ## Meeting Topic: Sprint 2 Review
We are reviewing the second sprint 2 progress made and highlights We are reviewing the second sprint 2 progress made and highlights
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Sanjit Joseph 3. Sanjit Joseph
@ -16,48 +20,58 @@ We are reviewing the second sprint 2 progress made and highlights
10. Isaac Otero 10. Isaac Otero
## Meeting Details ## Meeting Details
- When: 11/27/2022 at 4:30PM
- Where: Zoom - When: 11/27/2022 at 4:30PM
- Where: Zoom
## Agenda: ## Agenda:
Review the second sprint and discuss assiget the writeup for the Agile review assignemnt Review the second sprint and discuss assiget the writeup for the Agile review assignemnt
## Sprint 2 REVIEW ## Sprint 2 REVIEW
In collecting feedback for the sprint the leads decided to ask members individually about their experience during sprint 2 to then summarize these responses. Each member was asked 4 questions with their summarized responses below: In collecting feedback for the sprint the leads decided to ask members individually about their experience during sprint 2 to then summarize these responses. Each member was asked 4 questions with their summarized responses below:
### ➼ What do you think worked well in the first sprint? ### ➼ What do you think worked well in the first sprint?
Communication within the group was improved and our joint study sessions where more productive. The design team got the support they needed to accomplish the majority of their work on the project. The push to emphasize the sub-teams responsible for different tasks turned out to be a great idea and everyone put in a good effort. Communication within the group was improved and our joint study sessions where more productive. The design team got the support they needed to accomplish the majority of their work on the project. The push to emphasize the sub-teams responsible for different tasks turned out to be a great idea and everyone put in a good effort.
### ➼ What can we improve on for the next sprint? ### ➼ What can we improve on for the next sprint?
With the vast majority of feature implementation underway the rapid progress created a lot of bugs which otherwise could have been avoid with more careful planning. Some members felt that even though they made a great effort they weren't able to contribute as much as they wanted to. Some of the code documentation fell behind and some design discussions were circumvented because some members where busy. One consequence was that relatively few ADRs were created even though we made many important design decisions during sprint 2. With the vast majority of feature implementation underway the rapid progress created a lot of bugs which otherwise could have been avoid with more careful planning. Some members felt that even though they made a great effort they weren't able to contribute as much as they wanted to. Some of the code documentation fell behind and some design discussions were circumvented because some members where busy. One consequence was that relatively few ADRs were created even though we made many important design decisions during sprint 2.
### ➼ What was your contribution to the sprint? ### ➼ What was your contribution to the sprint?
* Rhea Bhutada: I mainly helped implement the backend for the CRUD features of the app and documentation related to this. This mainly entailed changing the way that we were storing user data in local storage. Additionally, I helped design the form and homepage.
* Gavyn Etzel: Helped with JavaScript functionality (CRUD Features), and also did a lot of the documentation for the script files - Rhea Bhutada: I mainly helped implement the backend for the CRUD features of the app and documentation related to this. This mainly entailed changing the way that we were storing user data in local storage. Additionally, I helped design the form and homepage.
Helped work through the storage revamp for our review cards - Gavyn Etzel: Helped with JavaScript functionality (CRUD Features), and also did a lot of the documentation for the script files
Also helped integrate our first design/style setup with functionality Helped work through the storage revamp for our review cards
* Henry Feng: Worked on implementing local image uploading and storing features for updating and creating profiles. Also helped integrate our first design/style setup with functionality
* Sanjit: I reimplemented the star ratings since they had some issues and werent merged with sprint 1. I fixed a bunch of linting issues that popped up from that as well. I did a fair bit of color palette brainstorming with the team. I also went over our app design for the sprint video and edited that together. Most importantly I put a chef hat on the raccoon - Henry Feng: Worked on implementing local image uploading and storing features for updating and creating profiles.
* Daniel: Helped in initial CreatePage and HomePage design which improved through feedback from the rest of the group. - Sanjit: I reimplemented the star ratings since they had some issues and werent merged with sprint 1. I fixed a bunch of linting issues that popped up from that as well. I did a fair bit of color palette brainstorming with the team. I also went over our app design for the sprint video and edited that together. Most importantly I put a chef hat on the raccoon
Helped in styling suggestions. - Daniel: Helped in initial CreatePage and HomePage design which improved through feedback from the rest of the group.
* Arthur Lu: Worked on fixing some CI/CD pipeline issues Helped in styling suggestions.
Implemented e2e testing for basic update and delete functionality - Arthur Lu: Worked on fixing some CI/CD pipeline issues
Helped with fixing the homepage and review page layout Implemented e2e testing for basic update and delete functionality
Helped with fixing the article tag overflow issue Helped with fixing the homepage and review page layout
* Marc Rheta: Implemented the e2e testing for reading and create Helped with fixing the article tag overflow issue
Allowed tabs for CSS/HTML linters - Marc Rheta: Implemented the e2e testing for reading and create
* Isaac Otero: I was able to help out with the sprint video for the last sprint and thought of how our page will look like, Started working on homepage.html Allowed tabs for CSS/HTML linters
* George Dubinin: Meeting notes, Repo organization, Front-end (a little), Project Status Review video. - Isaac Otero: I was able to help out with the sprint video for the last sprint and thought of how our page will look like, Started working on homepage.html
* Kara Hoagland: I helped set up the new local storage design, reimplemented the CRUD features using the new local storage design, contributed to the styling, added a default img, backend on the details page - George Dubinin: Meeting notes, Repo organization, Front-end (a little), Project Status Review video.
- Kara Hoagland: I helped set up the new local storage design, reimplemented the CRUD features using the new local storage design, contributed to the styling, added a default img, backend on the details page
### ➼ Was there anything blocking your progress in the sprint? ### ➼ Was there anything blocking your progress in the sprint?
A few members got sick over the break and with midterms picking up for other classes some members had trouble dedicting time for the project but everyone still put in a great effort overall. A few members got sick over the break and with midterms picking up for other classes some members had trouble dedicting time for the project but everyone still put in a great effort overall.
## Next Sprint Goals ## Next Sprint Goals
- Resolve the 4 issues open on GitHub right now - Resolve the 4 issues open on GitHub right now
- Make the project "local first" by creating a cache - Make the project "local first" by creating a cache
- Bug fixes and final product adjustments possibly pushed to sprint 4 - Bug fixes and final product adjustments possibly pushed to sprint 4
- We aim to keep sprint 3 short (a few days max) - We aim to keep sprint 3 short (a few days max)
- JS docs (we can potentially leave this out with an explanation of where our documentation is) - JS docs (we can potentially leave this out with an explanation of where our documentation is)
## End Time ## End Time
- 11/27/2022 at 5:00PM
- 11/27/2022 at 5:00PM

View File

@ -1,8 +1,11 @@
# Sprint 1 Retrospective (11/28/2022) # Sprint 1 Retrospective (11/28/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Sprint 1 Retrospective ## Meeting Topic: Sprint 1 Retrospective
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Sanjit Joseph 3. Sanjit Joseph
@ -15,44 +18,52 @@
10. Isaac Otero 10. Isaac Otero
## Meeting Details ## Meeting Details
- When: 11/28/2022 at 4:00PM
- Where: Zoom - When: 11/28/2022 at 4:00PM
- Where: Zoom
## Agenda: ## Agenda:
Discuss the review, share more detailed thoughts on sprint 2, and create some resolutions for sprint 3 Discuss the review, share more detailed thoughts on sprint 2, and create some resolutions for sprint 3
## Sprint 3 Review Below (for convenience) ## Sprint 3 Review Below (for convenience)
In collecting feedback for the sprint the leads decided to ask members individually about their experience during sprint 2 to then summarize these responses. Each member was asked 4 questions with their summarized responses below: In collecting feedback for the sprint the leads decided to ask members individually about their experience during sprint 2 to then summarize these responses. Each member was asked 4 questions with their summarized responses below:
### ➼ What do you think worked well in the first sprint? ### ➼ What do you think worked well in the first sprint?
Communication within the group was improved and our joint study sessions where more productive. The design team got the support they needed to accomplish the majority of their work on the project. The push to emphasize the sub-teams responsible for different tasks turned out to be a great idea and everyone put in a good effort. Communication within the group was improved and our joint study sessions where more productive. The design team got the support they needed to accomplish the majority of their work on the project. The push to emphasize the sub-teams responsible for different tasks turned out to be a great idea and everyone put in a good effort.
### ➼ What can we improve on for the next sprint? ### ➼ What can we improve on for the next sprint?
With the vast majority of feature implementation underway the rapid progress created a lot of bugs which otherwise could have been avoid with more careful planning. Some members felt that even though they made a great effort they weren't able to contribute as much as they wanted to. Some of the code documentation fell behind and some design discussions were circumvented because some members where busy. One consequence was that relatively few ADRs were created even though we made many important design decisions during sprint 2. With the vast majority of feature implementation underway the rapid progress created a lot of bugs which otherwise could have been avoid with more careful planning. Some members felt that even though they made a great effort they weren't able to contribute as much as they wanted to. Some of the code documentation fell behind and some design discussions were circumvented because some members where busy. One consequence was that relatively few ADRs were created even though we made many important design decisions during sprint 2.
### ➼ What was your contribution to the sprint? ### ➼ What was your contribution to the sprint?
* Rhea Bhutada: I mainly helped implement the backend for the CRUD features of the app and documentation related to this. This mainly entailed changing the way that we were storing user data in local storage. Additionally, I helped design the form and homepage.
* Gavyn Etzel: Helped with JavaScript functionality (CRUD Features), and also did a lot of the documentation for the script files - Rhea Bhutada: I mainly helped implement the backend for the CRUD features of the app and documentation related to this. This mainly entailed changing the way that we were storing user data in local storage. Additionally, I helped design the form and homepage.
Helped work through the storage revamp for our review cards - Gavyn Etzel: Helped with JavaScript functionality (CRUD Features), and also did a lot of the documentation for the script files
Also helped integrate our first design/style setup with functionality Helped work through the storage revamp for our review cards
* Henry Feng: Worked on implementing local image uploading and storing features for updating and creating profiles. Also helped integrate our first design/style setup with functionality
* Sanjit: I reimplemented the star ratings since they had some issues and werent merged with sprint 1. I fixed a bunch of linting issues that popped up from that as well. I did a fair bit of color palette brainstorming with the team. I also went over our app design for the sprint video and edited that together. Most importantly I put a chef hat on the raccoon - Henry Feng: Worked on implementing local image uploading and storing features for updating and creating profiles.
* Daniel: Helped in initial CreatePage and HomePage design which improved through feedback from the rest of the group. - Sanjit: I reimplemented the star ratings since they had some issues and werent merged with sprint 1. I fixed a bunch of linting issues that popped up from that as well. I did a fair bit of color palette brainstorming with the team. I also went over our app design for the sprint video and edited that together. Most importantly I put a chef hat on the raccoon
Helped in styling suggestions. - Daniel: Helped in initial CreatePage and HomePage design which improved through feedback from the rest of the group.
* Arthur Lu: Worked on fixing some CI/CD pipeline issues Helped in styling suggestions.
Implemented e2e testing for basic update and delete functionality - Arthur Lu: Worked on fixing some CI/CD pipeline issues
Helped with fixing the homepage and review page layout Implemented e2e testing for basic update and delete functionality
Helped with fixing the article tag overflow issue Helped with fixing the homepage and review page layout
* Marc Rheta: Implemented the e2e testing for reading and create Helped with fixing the article tag overflow issue
Allowed tabs for CSS/HTML linters - Marc Rheta: Implemented the e2e testing for reading and create
* Isaac Otero: I was able to help out with the sprint video for the last sprint and thought of how our page will look like, Started working on homepage.html Allowed tabs for CSS/HTML linters
* George Dubinin: Meeting notes, Repo organization, Front-end (a little), Project Status Review video. - Isaac Otero: I was able to help out with the sprint video for the last sprint and thought of how our page will look like, Started working on homepage.html
* Kara Hoagland: I helped set up the new local storage design, reimplemented the CRUD features using the new local storage design, contributed to the styling, added a default img, backend on the details page - George Dubinin: Meeting notes, Repo organization, Front-end (a little), Project Status Review video.
- Kara Hoagland: I helped set up the new local storage design, reimplemented the CRUD features using the new local storage design, contributed to the styling, added a default img, backend on the details page
### ➼ Was there anything blocking your progress in the sprint? ### ➼ Was there anything blocking your progress in the sprint?
A few members got sick over the break and with midterms picking up for other classes some members had trouble dedicting time for the project but everyone still put in a great effort overall. A few members got sick over the break and with midterms picking up for other classes some members had trouble dedicting time for the project but everyone still put in a great effort overall.
## Next Sprint Goals ## Next Sprint Goals
- Resolve the 4 issues open on GitHub right now - Resolve the 4 issues open on GitHub right now
- Make the project "local first" by creating a cache - Make the project "local first" by creating a cache
- Bug fixes and final product adjustments possibly pushed to sprint 4 - Bug fixes and final product adjustments possibly pushed to sprint 4
@ -60,12 +71,14 @@ A few members got sick over the break and with midterms picking up for other cla
- JS docs (we can potentially leave this out with an explanation of where our documentation is) - JS docs (we can potentially leave this out with an explanation of where our documentation is)
## Resolutions ## Resolutions
* Sprint 3 first meeting happening 11-29 at 5:00PM
* Make sure that there's enough communication between front-end and back-end - Sprint 3 first meeting happening 11-29 at 5:00PM
* Focus on meeting with your subgroup and then touch base with the main group - Make sure that there's enough communication between front-end and back-end
* Keep documentation up to date with the rest of the project - Focus on meeting with your subgroup and then touch base with the main group
* We need to finalize the home page design (this has been open for a while). - Keep documentation up to date with the rest of the project
* Fix image sizing issues by focusing on supporting 300x300 pixel images with sizes of around 2-5 megabytes - We need to finalize the home page design (this has been open for a while).
- Fix image sizing issues by focusing on supporting 300x300 pixel images with sizes of around 2-5 megabytes
## End Time ## End Time
- 11/14/2022 at 5:00PM
- 11/14/2022 at 5:00PM

View File

@ -1,8 +1,11 @@
# Meeting Minutes (11/29/2022) # Meeting Minutes (11/29/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Sprint 3 Debut Meeting ## Meeting Topic: Sprint 3 Debut Meeting
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Gavyn Ezell 3. Gavyn Ezell
@ -14,22 +17,25 @@
9. Arthur Lu (remote) 9. Arthur Lu (remote)
## Meeting Details ## Meeting Details
- When: 11/29/2022 at 5:00PM
- Where: Design and Innovation Building - When: 11/29/2022 at 5:00PM
- Where: Design and Innovation Building
## Agenda: ## Agenda:
- ### Old/Unresolved Business
- Resolve pretty print linting PR - ### Old/Unresolved Business
- Resolve documentation not being merged to main PR - Resolve pretty print linting PR
- ### New Business - Resolve documentation not being merged to main PR
- Create ADR for image storage - ### New Business
- Review sorting defaults (recent or top rated) - Create ADR for image storage
- Adding lists of reviewIDs corresponding to reviews which share specific star ratings - Review sorting defaults (recent or top rated)
- Create function for retrieving top 20 reviews organized by decreasing star ratings - Adding lists of reviewIDs corresponding to reviews which share specific star ratings
- Implement search for for flitering tags - Create function for retrieving top 20 reviews organized by decreasing star ratings
- Frontend checked out new branch for alternate home page designs - Implement search for for flitering tags
- ### Next Meeting's Business - Frontend checked out new branch for alternate home page designs
- Creation of team status video - ### Next Meeting's Business
- Creation of team status video
## End Time ## End Time
- 11/20/2022 at 3:00PM
- 11/20/2022 at 3:00PM

View File

@ -1,30 +1,36 @@
# Meeting Minutes (11/30/2022) # Meeting Minutes (11/30/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Sprint 3 Continued ## Meeting Topic: Sprint 3 Continued
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
4. Henry Feng 3. Henry Feng
5. Kara Hoagland 4. Kara Hoagland
7. Sanjit Joseph 5. Sanjit Joseph
9. Arthur Lu 6. Arthur Lu
## Meeting Details ## Meeting Details
- When: 11/30/2022 at 2:00PM
- Where: Design and Innovation Building - When: 11/30/2022 at 2:00PM
- Where: Design and Innovation Building
## Agenda: ## Agenda:
- ### Old/Unresolved Business
- Fix empty page for no-tag search - ### Old/Unresolved Business
- Catch testing up with what we implemented yesterday - Fix empty page for no-tag search
- ### New Business - Catch testing up with what we implemented yesterday
- Cache the site for local first (high priority) - ### New Business
- Implement editing form "in place" (optional for this sprint) - Cache the site for local first (high priority)
- Change icon for "add review" entry - Implement editing form "in place" (optional for this sprint)
- Overcoming UI test challenges - Change icon for "add review" entry
- ### Next Meeting's Business - Overcoming UI test challenges
- Creation of team status video - ### Next Meeting's Business
- Creation of team status video
## End Time ## End Time
- 11/30/2022 at 2:00PM
- 11/30/2022 at 2:00PM

View File

@ -1,22 +1,29 @@
# Meeting Minutes (12/1/2022) # Meeting Minutes (12/1/2022)
## Team 29: Hackers1995 ## Team 29: Hackers1995
## Meeting Topic: Weekly TA Catchup with Gagan ## Meeting Topic: Weekly TA Catchup with Gagan
We are meeting with Gagan to discuss status video and general updates on project. We are meeting with Gagan to discuss status video and general updates on project.
## Attendance ## Attendance
1. Rhea Bhutada 1. Rhea Bhutada
2. George Dubinin 2. George Dubinin
3. Gagan Gopalaiah 3. Gagan Gopalaiah
## Meeting Details ## Meeting Details
- When: 12/1/2022 at 12:00PM
- Where: Zoom - When: 12/1/2022 at 12:00PM
- Where: Zoom
## Discussion Points by Gagan ## Discussion Points by Gagan
- Don't code up anything after Sunday. Reserve the time for bug fixes
- Final Interview is a 4-5 minute interview about general course specific topics - Don't code up anything after Sunday. Reserve the time for bug fixes
- Live demo of the app for Gagan - Final Interview is a 4-5 minute interview about general course specific topics
- Gagan asks us to evaluate instructional assistants - Live demo of the app for Gagan
- Gagan asks us to evaluate instructional assistants
## End Time ## End Time
- 12/1/2022 at 12:20PM
- 12/1/2022 at 12:20PM

View File

@ -1,13 +1,18 @@
# Team Working Agreement # Team Working Agreement
## Term: Fall 2022 ## Term: Fall 2022
## Creation: 10/12/2022; Revised: N/A ## Creation: 10/12/2022; Revised: N/A
## Group Identification ## Group Identification
- Team 29 - Team 29
- TA: Gagan Gopalaiah - TA: Gagan Gopalaiah
- Instructor: Professor Thomas Powell - Instructor: Professor Thomas Powell
- Team Name: Hackers1995 - Team Name: Hackers1995
## Team member info (name/email) ## Team member info (name/email)
1. Rhea Bhutada, rbhutada@ucsd.edu 1. Rhea Bhutada, rbhutada@ucsd.edu
2. George Dubinin, gdubinin@ucsd.edu 2. George Dubinin, gdubinin@ucsd.edu
3. Gavyn Ezell, gezell@ucsd.edu 3. Gavyn Ezell, gezell@ucsd.edu
@ -20,38 +25,42 @@
10. Daniel Hernandez, d7hernan@ucsd.edu 10. Daniel Hernandez, d7hernan@ucsd.edu
## RULES: ## RULES:
#### 1) Primary Means of Communication and Expectations
- All members will communicate via Slack. #### 1) Primary Means of Communication and Expectations
- All members will be expected to read messages from group chats and direct messages, and respond in no more than 4 hours and no later than 10PM.
- All pull requests require 3 people to review the code being pushed to main. - All members will communicate via Slack.
- All members will be expected to read messages from group chats and direct messages, and respond in no more than 4 hours and no later than 10PM.
- All pull requests require 3 people to review the code being pushed to main.
#### 2) Scheduling Meetings (Schedule at least one meeting as part of constructing your team agreement.) #### 2) Scheduling Meetings (Schedule at least one meeting as part of constructing your team agreement.)
- Members are expected to meet at least once a week with the group either in-person or on Zoom. Future meeting details will be determined within a 24 hours window.
- Team members hosting the meeting will send out a reminder of the meeting with an agenda 2 hours before the meeting. - Members are expected to meet at least once a week with the group either in-person or on Zoom. Future meeting details will be determined within a 24 hours window.
- Team members hosting the meeting will send out a reminder of the meeting with an agenda 2 hours before the meeting.
#### 3) General Responsibilities for All Team Members #### 3) General Responsibilities for All Team Members
- Respect the contributions of others. - Respect the contributions of others.
- Work on assignments early to allow others to review and debug any issues. - Work on assignments early to allow others to review and debug any issues.
- Communicate any issues or problems as early as possible. - Communicate any issues or problems as early as possible.
- Be open to criticism. - Be open to criticism.
#### 4) Specific Team Member Responsibilities/Deadlines (Optional) #### 4) Specific Team Member Responsibilities/Deadlines (Optional)
- A daily standup is required every day from every team member. A daily standup includes what you've completed, what you want to work on, and what issues you encountered for the day. If you haven't done anything for that day, write down what you will be contributing. - A daily standup is required every day from every team member. A daily standup includes what you've completed, what you want to work on, and what issues you encountered for the day. If you haven't done anything for that day, write down what you will be contributing.
#### 5) Conflict Resolution #### 5) Conflict Resolution
- Conflicts between individuals will first try to be resolved amongst the people involved. - Conflicts between individuals will first try to be resolved amongst the people involved.
- Group conflicts will be voted on. - Group conflicts will be voted on.
- Ongoing conflicts will be reported to the TA. - Ongoing conflicts will be reported to the TA.
- Unprofessionalism of any kind will not be tolerated. Conflicts involving this will immediately be brought up with the TA - Unprofessionalism of any kind will not be tolerated. Conflicts involving this will immediately be brought up with the TA
#### 6) Expectations of Faculty and GTAs #### 6) Expectations of Faculty and GTAs
- If a team member fails to live up to this agreement, the situation may be reported to the staff, but the team will still be responsible for submitting a completed assignment. Staff will be available to meet with teams to resolve issues. - If a team member fails to live up to this agreement, the situation may be reported to the staff, but the team will still be responsible for submitting a completed assignment. Staff will be available to meet with teams to resolve issues.
## Team Signatures ## Team Signatures
#### Print Name: #### Print Name:
#### Signature: #### Signature:

View File

@ -1,73 +1,76 @@
# **Hackers1995** # **Hackers1995**
## **Brand** ## **Brand**
![poster](./branding/teamposter.jpg) ![poster](./branding/teamposter.jpg)
## **Values** ## **Values**
- Openness
- Honesty - Openness
- Respect - Honesty
- Integrity - Respect
- Diversity/Inclusion - Integrity
- Diversity/Inclusion
## **Roster** ## **Roster**
### **TA: Gagan Gopalaiah** ### **TA: Gagan Gopalaiah**
### **Team Lead: Rhea Bhutada** ### **Team Lead: Rhea Bhutada**
- #### About Me:
- My name is Rhea Bhutada and I am currently a CS major and CogSci minor at ERC. The intersection between neuroscience and computer science really fascinates me and I generally try to apply myself to projects that deal with the overlap of both of these fields. This year I'm working as an undergraduate researcher at the Swartz Center for Computational Neuroscience, which has been an extremely cool experience. Other than that I love to stay active. I used to play basketball in high school and was in an NCAA commercial with Shaq. But lately, Ive been really into running. Overall, I'm excited to contribute to this project! Although I haven't had too much industry experience, I am interested to see how I can apply my previous course work to backend or frontend design.
- #### Link to Github: https://github.com/rheabhutada02
- #### About Me:
- My name is Rhea Bhutada and I am currently a CS major and CogSci minor at ERC. The intersection between neuroscience and computer science really fascinates me and I generally try to apply myself to projects that deal with the overlap of both of these fields. This year I'm working as an undergraduate researcher at the Swartz Center for Computational Neuroscience, which has been an extremely cool experience. Other than that I love to stay active. I used to play basketball in high school and was in an NCAA commercial with Shaq. But lately, Ive been really into running. Overall, I'm excited to contribute to this project! Although I haven't had too much industry experience, I am interested to see how I can apply my previous course work to backend or frontend design.
- #### Link to Github: https://github.com/rheabhutada02
### **Team Lead: George Dubinin** ### **Team Lead: George Dubinin**
- #### About Me:
- Hello World! I'm a fifth year (3rd year transfer) computer science major from the North Bay Area. Web development has been a big focus of mine since taking Prof Powell's 134B last winter and I'm stoked to be back in the "full stack" developer seat for 110. I am the second the team lead and in addition to my love for leading and working on team projects I am also fascinated by web development technologies including containerization, infrastructure as code (IaC), software as a service (SAAS), and web-based encryption (security). I am also an avid DJ and the traininer manmager for the DJ club on campus. This quarter is shaping up to be a memorable one!
- #### Link to Github: https://github.com/look-its-ashton
- #### About Me:
- Hello World! I'm a fifth year (3rd year transfer) computer science major from the North Bay Area. Web development has been a big focus of mine since taking Prof Powell's 134B last winter and I'm stoked to be back in the "full stack" developer seat for 110. I am the second the team lead and in addition to my love for leading and working on team projects I am also fascinated by web development technologies including containerization, infrastructure as code (IaC), software as a service (SAAS), and web-based encryption (security). I am also an avid DJ and the traininer manmager for the DJ club on campus. This quarter is shaping up to be a memorable one!
- #### Link to Github: https://github.com/look-its-ashton
### **Gavyn Ezell** ### **Gavyn Ezell**
- #### About Me:
- My name is Gavyn Ezell and Im from Hawaii. Currently a 3rd year CS Major at Muir. I love video games, playing piano, and going to the gym. For SWE, backend interests me most (I am not good with design and visuals), and Im hoping to learn a lot more backend from this project!
- #### Link to Github: https://github.com/gavyn-ezell
- #### About Me:
- My name is Gavyn Ezell and Im from Hawaii. Currently a 3rd year CS Major at Muir. I love video games, playing piano, and going to the gym. For SWE, backend interests me most (I am not good with design and visuals), and Im hoping to learn a lot more backend from this project!
- #### Link to Github: https://github.com/gavyn-ezell
### **Daniel Hernandez** ### **Daniel Hernandez**
- #### About Me:
- My name is Daniel Hernandez and I am a 3rd year Computer Science major and music minor. Some of my interests in the CS field are ML, AI, and Cybersecurity. Outside of school, I play drums for a local band. For SE, the backend aspect appeals to me the most since I am able to utilize more of what I learned from my past classes. However, I would want to try frontend since I do enjoy design to some extent.
- #### Link to Github: https://github.com/d7hernan
- #### About Me:
- My name is Daniel Hernandez and I am a 3rd year Computer Science major and music minor. Some of my interests in the CS field are ML, AI, and Cybersecurity. Outside of school, I play drums for a local band. For SE, the backend aspect appeals to me the most since I am able to utilize more of what I learned from my past classes. However, I would want to try frontend since I do enjoy design to some extent.
- #### Link to Github: https://github.com/d7hernan
### **Henry Feng** ### **Henry Feng**
- #### About Me:
- My name is Henry, and I am a 3rd year CS major. I was born in China and grew up in New Zealand. I wrote my first line of code, in Python during my second year of high school. My favourite foods are ramen, steak and pasta. Some of my hobbies include playing guitar, hiking, cooking, video games, and music (from the Persona series). I am excited to start this project and hope to contribute to both frontend and backend.
- #### Link to Github: https://github.com/dusk-moon
- #### About Me:
- My name is Henry, and I am a 3rd year CS major. I was born in China and grew up in New Zealand. I wrote my first line of code, in Python during my second year of high school. My favourite foods are ramen, steak and pasta. Some of my hobbies include playing guitar, hiking, cooking, video games, and music (from the Persona series). I am excited to start this project and hope to contribute to both frontend and backend.
- #### Link to Github: https://github.com/dusk-moon
### **Kara Hoagland** ### **Kara Hoagland**
- #### About Me:
- My name is Kara Hoagland and I am a 3rd year Computer Engineering major. CS-wise, I'm interested in topics such as computer vision and RFID, but it's hard to limit oneself because there's so many interesting topics out there. Outside of CS, I enjoy D&D, biking, and reading. I got some industry experience over summer and love getting to see how that experience and my previous classes all apply to this project. I'm interested in full stack but more so the backend of things.
- #### Link to Github: https://github.com/KH-Cl
- #### About Me:
- My name is Kara Hoagland and I am a 3rd year Computer Engineering major. CS-wise, I'm interested in topics such as computer vision and RFID, but it's hard to limit oneself because there's so many interesting topics out there. Outside of CS, I enjoy D&D, biking, and reading. I got some industry experience over summer and love getting to see how that experience and my previous classes all apply to this project. I'm interested in full stack but more so the backend of things.
- #### Link to Github: https://github.com/KH-Cl
### **Marc Reta** ### **Marc Reta**
- #### About Me: My name is Marc Reta and I am a 3rd year Computer Engineering major in Warren College. I love exploring San Diego and going on adventures. I have a huge interest in Public Transportation. I'm looking foward to working with everyone in my group and learn how to create an application.
- #### Link to Github: https://github.com/Graydogminer
- #### About Me: My name is Marc Reta and I am a 3rd year Computer Engineering major in Warren College. I love exploring San Diego and going on adventures. I have a huge interest in Public Transportation. I'm looking foward to working with everyone in my group and learn how to create an application.
- #### Link to Github: https://github.com/Graydogminer
### **Sanjit Joseph** ### **Sanjit Joseph**
- #### About Me:
- Hi! My name is Sanjit Joseph and I'm a 3rd year CE major at Sixth. I'm from the Bay Area, so I've been surrounded by technology most of my life. I'm into building computers and I waste a lot of time (and money) messing with my PC and playing video games on it. I enjoy things outside of tech, though--as an Eagle Scout, I've done tons of backpacking throughout California and the US. I also hold a black belt in Shotokan Karate. As for this class, I'm pretty excited about all the different aspects of software engineering; frontend and backend both appeal to me, but I'm really just excited to work on a long class project in a team setting.
- #### Link to Github: https://github.com/sm-joseph
- #### About Me:
- Hi! My name is Sanjit Joseph and I'm a 3rd year CE major at Sixth. I'm from the Bay Area, so I've been surrounded by technology most of my life. I'm into building computers and I waste a lot of time (and money) messing with my PC and playing video games on it. I enjoy things outside of tech, though--as an Eagle Scout, I've done tons of backpacking throughout California and the US. I also hold a black belt in Shotokan Karate. As for this class, I'm pretty excited about all the different aspects of software engineering; frontend and backend both appeal to me, but I'm really just excited to work on a long class project in a team setting.
- #### Link to Github: https://github.com/sm-joseph
### **Isaac Otero** ### **Isaac Otero**
- #### About Me:
- My name is Isaac Otero, I am a 5th year Cog Sci major. I am interested in front end development. I want to implement what Ive learned from my design classes into my projects for front end development.
- #### Link to Github: https://github.com/Isaac-Otero
- #### About Me:
- My name is Isaac Otero, I am a 5th year Cog Sci major. I am interested in front end development. I want to implement what Ive learned from my design classes into my projects for front end development.
- #### Link to Github: https://github.com/Isaac-Otero
### **Arthur Lu** ### **Arthur Lu**
- #### About Me:
- My name is Arthur Lu and I am a 3rd year CE major. I am primarily interested in low level systems design, hardware development and optimization, and HPC architecture. I work as an undergraduate research assistant for Prof. Turakhia developing hardware accelerators for long length genome alignment. When Im not busy, I like to relax with some retro video games. - #### About Me:
- #### Link to Github: https://github.com/ltcptgeneral - My name is Arthur Lu and I am a 3rd year CE major. I am primarily interested in low level systems design, hardware development and optimization, and HPC architecture. I work as an undergraduate research assistant for Prof. Turakhia developing hardware accelerators for long length genome alignment. When Im not busy, I like to relax with some retro video games.
- #### Link to Github: https://github.com/ltcptgeneral

View File

@ -1,6 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
@ -8,12 +7,11 @@
<title>Food Journal</title> <title>Food Journal</title>
<!--Add Favicon--> <!--Add Favicon-->
<link rel="icon" type="image/x-icon" href="./assets/images/favicon.ico"> <link rel="icon" type="image/x-icon" href="./assets/images/favicon.ico" />
<!-- Review Card Custom Element --> <!-- Review Card Custom Element -->
<script src="assets/scripts/ReviewCard.js" type="module"></script> <script src="assets/scripts/ReviewCard.js" type="module"></script>
<!-- Create Page Stylesheets & Scripts --> <!-- Create Page Stylesheets & Scripts -->
<link rel="stylesheet" href="./static/CreatePage.css" /> <link rel="stylesheet" href="./static/CreatePage.css" />
<link rel="stylesheet" href="./static/Form.css" /> <link rel="stylesheet" href="./static/Form.css" />
@ -23,9 +21,9 @@
<header> <header>
<!-- Setting up logo and site name at the top of the website --> <!-- Setting up logo and site name at the top of the website -->
<div class="top-bar"> <div class="top-bar">
<img src ="./assets/images/Logo.png" alt="logo" /> <img src="./assets/images/Logo.png" alt="logo" />
<h1> Food Journal </h1> <h1>Food Journal</h1>
<img src ="./assets/images/Logo.png" alt="logo" /> <img src="./assets/images/Logo.png" alt="logo" />
</div> </div>
</header> </header>
@ -34,14 +32,13 @@
<h1>New Entry</h1> <h1>New Entry</h1>
<form id="new-food-entry"> <form id="new-food-entry">
<fieldset> <fieldset>
<legend>PICTURE:</legend> <legend>PICTURE:</legend>
<select id="select" name="select"> <select id="select" name="select">
<option value="file">File Upload</option> <option value="file">File Upload</option>
<option value="photo">Take a Photo</option> <option value="photo">Take a Photo</option>
</select> </select>
<input type="file" accept="image/*" id="mealImg" name="mealImg"> <input type="file" accept="image/*" id="mealImg" name="mealImg" />
</fieldset> </fieldset>
<fieldset> <fieldset>
@ -52,47 +49,45 @@
<fieldset> <fieldset>
<legend>MEAL NAME:</legend> <legend>MEAL NAME:</legend>
<label for="Name: "> <input type="text" id="mealName" name="mealName" required> </label> <label for="Name: "> <input type="text" id="mealName" name="mealName" required /> </label>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>RESTAURANT NAME:</legend> <legend>RESTAURANT NAME:</legend>
<label for="Name:"> <input type="text" id="restaurant" name="restaurant" required> </label> <label for="Name:"> <input type="text" id="restaurant" name="restaurant" required /> </label>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>RATING:</legend> <legend>RATING:</legend>
<div style="display: flex; justify-content: flex-start; align-items: center;"> <div style="display: flex; justify-content: flex-start; align-items: center">
<div class="rating"> <div class="rating">
<input type="radio" id="s5" name="rating" value="5"/> <label for="s5" id="s5-select"> 5 stars </label> <input type="radio" id="s5" name="rating" value="5" /> <label for="s5" id="s5-select"> 5 stars </label>
<input type="radio" id="s4" name="rating" value="4"/> <label for="s4" id="s4-select"> 4 stars </label> <input type="radio" id="s4" name="rating" value="4" /> <label for="s4" id="s4-select"> 4 stars </label>
<input type="radio" id="s3" name="rating" value="3"/> <label for="s3" id="s3-select"> 3 stars </label> <input type="radio" id="s3" name="rating" value="3" /> <label for="s3" id="s3-select"> 3 stars </label>
<input type="radio" id="s2" name="rating" value="2"/> <label for="s2" id="s2-select"> 2 stars </label> <input type="radio" id="s2" name="rating" value="2" /> <label for="s2" id="s2-select"> 2 stars </label>
<input type="radio" id="s1" name="rating" value="1"/> <label for="s1" id="s1-select"> 1 star </label> <input type="radio" id="s1" name="rating" value="1" /> <label for="s1" id="s1-select"> 1 star </label>
</div> </div>
</div> </div>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>COMMENTS:</legend> <legend>COMMENTS:</legend>
<textarea name="comments" id="comments" rows="5" style="resize: none; width: 100%;"></textarea> <textarea name="comments" id="comments" rows="5" style="resize: none; width: 100%"></textarea>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>TAGS: (ex. cuisine, distance, cost, etc)</legend> <legend>TAGS: (ex. cuisine, distance, cost, etc)</legend>
<input type="text" id="tag-form" name="tag-form"> <input type="text" id="tag-form" name="tag-form" />
<div class='tag-container' id="tag-container-form"> <div class="tag-container" id="tag-container-form"></div>
</div> <button type="button" id="tag-add-btn">+</button>
<button type="button" id="tag-add-btn"> + </button>
</fieldset> </fieldset>
<button type="submit" id="save-btn" value="Submit">Save</button> <button type="submit" id="save-btn" value="Submit">Save</button>
<!-- Button that allows user to go back to the homepage --> <!-- Button that allows user to go back to the homepage -->
<input type="button" value="Cancel" id="home-btn" onclick="window.location.assign('./index.html')"> <input type="button" value="Cancel" id="home-btn" onclick="window.location.assign('./index.html')" />
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@ -7,7 +7,7 @@
<title>Food Journal</title> <title>Food Journal</title>
<!--Add Favicon--> <!--Add Favicon-->
<link rel="icon" type="image/x-icon" href="./assets/images/favicon.ico"> <link rel="icon" type="image/x-icon" href="./assets/images/favicon.ico" />
<!-- Review Card Custom Element --> <!-- Review Card Custom Element -->
<script src="assets/scripts/ReviewCard.js" type="module"></script> <script src="assets/scripts/ReviewCard.js" type="module"></script>
@ -22,42 +22,64 @@
<body> <body>
<header> <header>
<div class="top-bar"> <div class="top-bar">
<img src ="./assets/images/Logo.png" alt="logo" /> <img src="./assets/images/Logo.png" alt="logo" />
<h1> Food Journal </h1> <h1>Food Journal</h1>
<img src ="./assets/images/Logo.png" alt="logo" /> <img src="./assets/images/Logo.png" alt="logo" />
</div> </div>
</header> </header>
<main> <main>
<div class="journal-form" id="review-details"> <div class="journal-form" id="review-details">
<form> <form>
<fieldset class = "meal-name"> <fieldset class="meal-name">
<h1 id="d-meal-name" style="font-family: Century Gothic;"></h1> <h1 id="d-meal-name" style="font-family: Century Gothic"></h1>
<h1 id="d-restaurant" style="font-family: Century Gothic; font-size: 30px;"></h1> <h1 id="d-restaurant" style="font-family: Century Gothic; font-size: 30px"></h1>
</fieldset> </fieldset>
<fieldset class = "meal-pics"> <fieldset class="meal-pics">
<!-- image source --> <!-- image source -->
<img width=40% height=40% id="d-meal-img" style="margin-left: auto; margin-right: auto; display: block;"/> <img width="40%" height="40%" id="d-meal-img" style="margin-left: auto; margin-right: auto; display: block" />
</fieldset> </fieldset>
<fieldset class = "stars-and-comments" style="text-align: center;"> <fieldset class="stars-and-comments" style="text-align: center">
<img width=30% height=30% id="d-rating" style="margin-left: auto; margin-right: auto; display: block;"/> <img width="30%" height="30%" id="d-rating" style="margin-left: auto; margin-right: auto; display: block" />
<p id = "d-comments"></p> <p id="d-comments"></p>
</fieldset> </fieldset>
<fieldset class = "meal-tags"> <fieldset class="meal-tags">
<div class = "tag-container" id="d-tags" style="justify-content: center;"></div> <div class="tag-container" id="d-tags" style="justify-content: center"></div>
</fieldset> </fieldset>
</form> </form>
</div> </div>
<!---Navigation Buttons--> <!---Navigation Buttons-->
<div style="display: flex; justify-content: center;"> <div style="display: flex; justify-content: center">
<img src="./assets/images/home_button_for_interface.png" style="margin: 20px 10px 20px 10px;" id="home-btn" title="Home Page" onclick="window.location.assign('./index.html')" height="50" width="50"/> <img
<img src ="./assets/images/edit_button_for_interface.png" style="margin: 20px 10px 20px 10px;" id="update-btn" title="Edit Review" height="50" width="50"/> src="./assets/images/home_button_for_interface.png"
<img src ="./assets/images/delete_icon_for_interface.png" style="margin: 20px 10px 20px 10px;" id="delete-btn" title="Delete Review" class="danger" height="50" width="50"/> style="margin: 20px 10px 20px 10px"
id="home-btn"
title="Home Page"
onclick="window.location.assign('./index.html')"
height="50"
width="50"
/>
<img
src="./assets/images/edit_button_for_interface.png"
style="margin: 20px 10px 20px 10px"
id="update-btn"
title="Edit Review"
height="50"
width="50"
/>
<img
src="./assets/images/delete_icon_for_interface.png"
style="margin: 20px 10px 20px 10px"
id="delete-btn"
title="Delete Review"
class="danger"
height="50"
width="50"
/>
</div> </div>
</main> </main>
@ -65,17 +87,16 @@
<h1>Update Entry</h1> <h1>Update Entry</h1>
<form id="new-food-entry"> <form id="new-food-entry">
<fieldset> <fieldset>
<legend>PICTURE:</legend> <legend>PICTURE:</legend>
<select id="select" name="select"> <select id="select" name="select">
<option value="file">File Upload</option> <option value="file">File Upload</option>
<option value="photo">Take a Photo</option> <option value="photo">Take a Photo</option>
</select> </select>
<input type="file" accept="image/*" id="mealImg" name="mealImg"> <input type="file" accept="image/*" id="mealImg" name="mealImg" />
</fieldset> </fieldset>
<fieldset> <fieldset>
<video id="player" width="320" height="240" autoplay hidden></video> <video id="player" width="320" height="240" autoplay hidden></video>
<canvas id="photoCanvas" width="320" height="240" hidden></canvas> <canvas id="photoCanvas" width="320" height="240" hidden></canvas>
<button type="button" id="photoButton" hidden>Take Photo</button> <button type="button" id="photoButton" hidden>Take Photo</button>
@ -83,43 +104,42 @@
<fieldset> <fieldset>
<legend>MEAL NAME:</legend> <legend>MEAL NAME:</legend>
<label for="Name: "> <input type="text" id="mealName" name="mealName" required> </label> <label for="Name: "> <input type="text" id="mealName" name="mealName" required /> </label>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>RESTAURANT NAME:</legend> <legend>RESTAURANT NAME:</legend>
<label for="Name:"> <input type="text" id="restaurant" name="restaurant" required> </label> <label for="Name:"> <input type="text" id="restaurant" name="restaurant" required /> </label>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>RATING:</legend> <legend>RATING:</legend>
<div style="display: flex; justify-content: flex-start; align-items: center;"> <div style="display: flex; justify-content: flex-start; align-items: center">
<div class="rating"> <div class="rating">
<input type="radio" id="s5" name="rating" value="5"/> <label for="s5" id="s5-select"> 5 stars </label> <input type="radio" id="s5" name="rating" value="5" /> <label for="s5" id="s5-select"> 5 stars </label>
<input type="radio" id="s4" name="rating" value="4"/> <label for="s4" id="s4-select"> 4 stars </label> <input type="radio" id="s4" name="rating" value="4" /> <label for="s4" id="s4-select"> 4 stars </label>
<input type="radio" id="s3" name="rating" value="3"/> <label for="s3" id="s3-select"> 3 stars </label> <input type="radio" id="s3" name="rating" value="3" /> <label for="s3" id="s3-select"> 3 stars </label>
<input type="radio" id="s2" name="rating" value="2"/> <label for="s2" id="s2-select"> 2 stars </label> <input type="radio" id="s2" name="rating" value="2" /> <label for="s2" id="s2-select"> 2 stars </label>
<input type="radio" id="s1" name="rating" value="1"/> <label for="s1" id="s1-select"> 1 star </label> <input type="radio" id="s1" name="rating" value="1" /> <label for="s1" id="s1-select"> 1 star </label>
</div> </div>
</div> </div>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>COMMENTS:</legend> <legend>COMMENTS:</legend>
<textarea name="comments" id="comments" rows="5" style="resize: none; width: 100%;"></textarea> <textarea name="comments" id="comments" rows="5" style="resize: none; width: 100%"></textarea>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>TAGS: (ex. cuisine, distance, cost, etc)</legend> <legend>TAGS: (ex. cuisine, distance, cost, etc)</legend>
<input type="text" id="tag-form" name="tag-form"> <input type="text" id="tag-form" name="tag-form" />
<div class='tag-container' id="tag-container-form"> <div class="tag-container" id="tag-container-form"></div>
</div> <button type="button" id="tag-add-btn">+</button>
<button type="button" id="tag-add-btn"> + </button>
</fieldset> </fieldset>
<button type="submit" id="save-btn" value="Submit">Save</button> <button type="submit" id="save-btn" value="Submit">Save</button>
<input type="button" value="Cancel" id="home-btn" onclick="window.location.assign('./index.html')"> <input type="button" value="Cancel" id="home-btn" onclick="window.location.assign('./index.html')" />
</form> </form>
</div> </div>
</body> </body>

View File

@ -13,7 +13,6 @@ function init() {
* Creates a form and associates a new ID with the new review card. * Creates a form and associates a new ID with the new review card.
*/ */
function initFormHandler() { function initFormHandler() {
// Accesses form components // Accesses form components
let tagContainer = document.getElementById("tag-container-form"); let tagContainer = document.getElementById("tag-container-form");
let form = document.querySelector("form"); let form = document.querySelector("form");
@ -26,10 +25,10 @@ function initFormHandler() {
let player = document.getElementById("player"); let player = document.getElementById("player");
let canvas = document.getElementById("photoCanvas"); let canvas = document.getElementById("photoCanvas");
let photoButton = document.getElementById("photoButton"); let photoButton = document.getElementById("photoButton");
let context = canvas.getContext('2d'); let context = canvas.getContext("2d");
// Event listener for the photo taking/reset button // Event listener for the photo taking/reset button
photoButton.addEventListener('click', ()=>{ photoButton.addEventListener("click", () => {
// capturing the current video frame // capturing the current video frame
if (videoMode) { if (videoMode) {
videoMode = false; videoMode = false;
@ -57,7 +56,7 @@ function initFormHandler() {
// Event listener for reading image form different data // Event listener for reading image form different data
let select = document.getElementById("select"); let select = document.getElementById("select");
const input = document.getElementById("mealImg"); const input = document.getElementById("mealImg");
select.addEventListener("change", function() { select.addEventListener("change", function () {
// Select a photo with HTML file selector // Select a photo with HTML file selector
if (select.value == "file") { if (select.value == "file") {
// enabling file upload components and hiding photo taking components // enabling file upload components and hiding photo taking components
@ -80,27 +79,30 @@ function initFormHandler() {
photoButton.removeAttribute("hidden", ""); photoButton.removeAttribute("hidden", "");
// getting video stream from user's camera then displaying it on a video element // getting video stream from user's camera then displaying it on a video element
navigator.mediaDevices.getUserMedia({video: true,}).then((stream)=>{ navigator.mediaDevices.getUserMedia({ video: true }).then((stream) => {
player.srcObject = stream; player.srcObject = stream;
}); });
} }
}); });
// Addresses sourcing image from local file // Addresses sourcing image from local file
document.getElementById("mealImg").addEventListener("change", function() { document.getElementById("mealImg").addEventListener("change", function () {
const reader = new FileReader(); const reader = new FileReader();
// Store image data URL after successful image load // Store image data URL after successful image load
reader.addEventListener("load", ()=>{ reader.addEventListener(
imgDataURL = reader.result; "load",
}, false); () => {
imgDataURL = reader.result;
},
false
);
// Convert image file into data URL for local storage // Convert image file into data URL for local storage
reader.readAsDataURL(document.getElementById("mealImg").files[0]); reader.readAsDataURL(document.getElementById("mealImg").files[0]);
}); });
form.addEventListener("submit", function(e){ form.addEventListener("submit", function (e) {
// Create reviewObject and put in storage // Create reviewObject and put in storage
e.preventDefault(); e.preventDefault();
let formData = new FormData(form); let formData = new FormData(form);
@ -119,14 +121,13 @@ function initFormHandler() {
} }
// Makes sure that ratings is filled // Makes sure that ratings is filled
if(reviewObject["rating"] != null){ if (reviewObject["rating"] != null) {
//Adds rags separately as an array //Adds rags separately as an array
reviewObject["tags"] = []; reviewObject["tags"] = [];
// Grabs tags // Grabs tags
let tags = document.querySelectorAll(".tag"); let tags = document.querySelectorAll(".tag");
for(let i = 0; i < tags.length; i ++) { for (let i = 0; i < tags.length; i++) {
reviewObject["tags"].push(tags[i].innerHTML); reviewObject["tags"].push(tags[i].innerHTML);
tagContainer.removeChild(tags[i]); tagContainer.removeChild(tags[i]);
} }
@ -139,28 +140,27 @@ function initFormHandler() {
window.location.assign("./ReviewDetails.html"); window.location.assign("./ReviewDetails.html");
} }
// Does not let user proceed if rating is not complete // Does not let user proceed if rating is not complete
else{ else {
window.alert("NO! FILL IN STARS"); window.alert("NO! FILL IN STARS");
} }
}); });
// Event listener for tag functionality // Event listener for tag functionality
let tagAddBtn = document.getElementById("tag-add-btn"); let tagAddBtn = document.getElementById("tag-add-btn");
//Set used to track tags and ensure no duplicates //Set used to track tags and ensure no duplicates
let tagSet = new Set(); let tagSet = new Set();
tagAddBtn.addEventListener("click", ()=> { tagAddBtn.addEventListener("click", () => {
let tagField = document.getElementById("tag-form"); let tagField = document.getElementById("tag-form");
// If there is a tag, it'll display the tag // If there is a tag, it'll display the tag
if (tagField.value.length > 0) { if (tagField.value.length > 0) {
let tagSetVal = tagField.value.toLowerCase(); let tagSetVal = tagField.value.toLowerCase();
if (!tagSet.has(tagSetVal)){ if (!tagSet.has(tagSetVal)) {
let tagLabel = document.createElement("label"); let tagLabel = document.createElement("label");
tagLabel.innerHTML = tagField.value; tagLabel.innerHTML = tagField.value;
tagLabel.setAttribute("class","tag"); tagLabel.setAttribute("class", "tag");
tagSet.add(tagSetVal); tagSet.add(tagSetVal);
tagLabel.addEventListener("click",()=> { tagLabel.addEventListener("click", () => {
tagContainer.removeChild(tagLabel); tagContainer.removeChild(tagLabel);
tagSet.delete(tagSetVal); tagSet.delete(tagSetVal);
}); });
@ -172,5 +172,4 @@ function initFormHandler() {
tagField.value = ""; tagField.value = "";
} }
}); });
} }

View File

@ -6,7 +6,7 @@ class ReviewCard extends HTMLElement {
constructor() { constructor() {
super(); super();
let shadowEl = this.attachShadow({mode:"open"}); let shadowEl = this.attachShadow({ mode: "open" });
let articleEl = document.createElement("article"); let articleEl = document.createElement("article");
@ -119,24 +119,24 @@ class ReviewCard extends HTMLElement {
} }
/** /**
* Called when the .data property is set on this element. * Called when the .data property is set on this element.
* *
* For Example: * For Example:
* let reviewCard = document.createElement('review-card'); * let reviewCard = document.createElement('review-card');
* reviewCard.data = { foo: 'bar' } * reviewCard.data = { foo: 'bar' }
* *
* @param {Object} data - The data to pass into the <review-card>, must be of the * @param {Object} data - The data to pass into the <review-card>, must be of the
* following format: * following format:
* { * {
* "mealImg": string, * "mealImg": string,
* "mealName": string, * "mealName": string,
* "comments": string, * "comments": string,
* "rating": number, * "rating": number,
* "restaurant": string, * "restaurant": string,
* "reviewID": number, * "reviewID": number,
* "tags": string array * "tags": string array
* } * }
*/ */
set data(data) { set data(data) {
// If nothing was passed in, return // If nothing was passed in, return
if (!data) return; if (!data) return;
@ -150,9 +150,9 @@ class ReviewCard extends HTMLElement {
// Image setup // Image setup
let mealImg = document.createElement("img"); let mealImg = document.createElement("img");
mealImg.setAttribute("id", "a-meal-img"); mealImg.setAttribute("id", "a-meal-img");
mealImg.setAttribute("alt","Meal Photo Corrupted"); mealImg.setAttribute("alt", "Meal Photo Corrupted");
mealImg.setAttribute("src",data["mealImg"]); mealImg.setAttribute("src", data["mealImg"]);
mealImg.addEventListener("error", function(e) { mealImg.addEventListener("error", function (e) {
mealImg.setAttribute("src", "./assets/images/default_plate.png"); mealImg.setAttribute("src", "./assets/images/default_plate.png");
e.onerror = null; e.onerror = null;
}); });
@ -162,14 +162,14 @@ class ReviewCard extends HTMLElement {
meallabelDiv.setAttribute("class", "meal-name-div"); meallabelDiv.setAttribute("class", "meal-name-div");
let mealLabel = document.createElement("label"); let mealLabel = document.createElement("label");
mealLabel.setAttribute("id", "a-meal-name"); mealLabel.setAttribute("id", "a-meal-name");
mealLabel.setAttribute("class","meal-name"); mealLabel.setAttribute("class", "meal-name");
mealLabel.innerHTML = data["mealName"]; mealLabel.innerHTML = data["mealName"];
meallabelDiv.append(mealLabel); meallabelDiv.append(mealLabel);
// Restaurant name setup // Restaurant name setup
let restaurantLabel = document.createElement("label"); let restaurantLabel = document.createElement("label");
restaurantLabel.setAttribute("id", "a-restaurant"); restaurantLabel.setAttribute("id", "a-restaurant");
restaurantLabel.setAttribute("class","restaurant-name"); restaurantLabel.setAttribute("class", "restaurant-name");
restaurantLabel.innerHTML = data["restaurant"]; restaurantLabel.innerHTML = data["restaurant"];
// Comment section setup (display set to none) // Comment section setup (display set to none)
@ -183,8 +183,8 @@ class ReviewCard extends HTMLElement {
ratingDiv.setAttribute("class", "rating"); ratingDiv.setAttribute("class", "rating");
let starsImg = document.createElement("img"); let starsImg = document.createElement("img");
starsImg.setAttribute("id", "a-rating"); starsImg.setAttribute("id", "a-rating");
starsImg.setAttribute("src", "./assets/images/"+data["rating"]+"-star.svg"); starsImg.setAttribute("src", "./assets/images/" + data["rating"] + "-star.svg");
starsImg.setAttribute("alt", data["rating"] +" stars"); starsImg.setAttribute("alt", data["rating"] + " stars");
starsImg.setAttribute("num", data["rating"]); starsImg.setAttribute("num", data["rating"]);
ratingDiv.append(starsImg); ratingDiv.append(starsImg);
@ -197,10 +197,10 @@ class ReviewCard extends HTMLElement {
tagContainer.setAttribute("list", data["tags"]); tagContainer.setAttribute("list", data["tags"]);
// Checks if user gave tags, if so added to review card // Checks if user gave tags, if so added to review card
if(data["tags"]){ if (data["tags"]) {
for (let i = 0; i < data["tags"].length; i++) { for (let i = 0; i < data["tags"].length; i++) {
let newTag = document.createElement("label"); let newTag = document.createElement("label");
newTag.setAttribute("class","a-tag"); newTag.setAttribute("class", "a-tag");
newTag.innerHTML = data["tags"][i]; newTag.innerHTML = data["tags"][i];
tagContainer.append(newTag); tagContainer.append(newTag);
} }
@ -214,31 +214,28 @@ class ReviewCard extends HTMLElement {
articleEl.append(ratingDiv); articleEl.append(ratingDiv);
articleEl.append(tagContainerDiv); articleEl.append(tagContainerDiv);
articleEl.append(comments); articleEl.append(comments);
} }
/** /**
* Called when getting the .data property of this element. * Called when getting the .data property of this element.
* *
* For Example: * For Example:
* let reviewCard = document.createElement('review-card'); * let reviewCard = document.createElement('review-card');
* reviewCard.data = { foo: 'bar' } * reviewCard.data = { foo: 'bar' }
* *
* @return {Object} data - The data from the <review-card>, of the * @return {Object} data - The data from the <review-card>, of the
* following format: * following format:
* { * {
* "mealImg": string, * "mealImg": string,
* "mealName": string, * "mealName": string,
* "comments": string, * "comments": string,
* "rating": number, * "rating": number,
* "restaurant": string, * "restaurant": string,
* "reviewID": number, * "reviewID": number,
* "tags": string array * "tags": string array
* } * }
*/ */
get data() { get data() {
let dataContainer = {}; let dataContainer = {};
// Getting the article elements for the review card // Getting the article elements for the review card

View File

@ -1,5 +1,5 @@
//reviewDetails.js //reviewDetails.js
import {deleteReviewFromStorage, getReviewFromStorage, updateReviewToStorage} from "./localStorage.js"; import { deleteReviewFromStorage, getReviewFromStorage, updateReviewToStorage } from "./localStorage.js";
// Run the init() function when the page has loaded // Run the init() function when the page has loaded
window.addEventListener("DOMContentLoaded", init); window.addEventListener("DOMContentLoaded", init);
@ -7,7 +7,7 @@ window.addEventListener("DOMContentLoaded", init);
/** /**
* Populates the relevant data to the details from local storage review. * Populates the relevant data to the details from local storage review.
*/ */
function init(){ function init() {
setupInfo(); setupInfo();
setupDelete(); setupDelete();
setupUpdate(); setupUpdate();
@ -16,14 +16,14 @@ function init(){
/** /**
* Populates the relevant data to the details from local storage review * Populates the relevant data to the details from local storage review
*/ */
function setupInfo(){ function setupInfo() {
let currID = JSON.parse(sessionStorage.getItem("currID")); let currID = JSON.parse(sessionStorage.getItem("currID"));
let currReview = getReviewFromStorage(currID); let currReview = getReviewFromStorage(currID);
//meal image //meal image
let mealImg = document.getElementById("d-meal-img"); let mealImg = document.getElementById("d-meal-img");
mealImg.setAttribute("src",currReview["mealImg"]); mealImg.setAttribute("src", currReview["mealImg"]);
mealImg.addEventListener("error", function(e) { mealImg.addEventListener("error", function (e) {
mealImg.setAttribute("src", "./assets/images/default_plate.png"); mealImg.setAttribute("src", "./assets/images/default_plate.png");
e.onerror = null; e.onerror = null;
}); });
@ -42,15 +42,15 @@ function setupInfo(){
//rating //rating
let starsImg = document.getElementById("d-rating"); let starsImg = document.getElementById("d-rating");
starsImg.setAttribute("src", "./assets/images/"+currReview["rating"]+"-star.svg"); starsImg.setAttribute("src", "./assets/images/" + currReview["rating"] + "-star.svg");
starsImg.setAttribute("alt", currReview["rating"] +" stars"); starsImg.setAttribute("alt", currReview["rating"] + " stars");
//tags //tags
let tagContainer = document.getElementById("d-tags"); let tagContainer = document.getElementById("d-tags");
if(currReview["tags"]){ if (currReview["tags"]) {
for (let i = 0; i < currReview["tags"].length; i++) { for (let i = 0; i < currReview["tags"].length; i++) {
let newTag = document.createElement("label"); let newTag = document.createElement("label");
newTag.setAttribute("class","d-tag"); newTag.setAttribute("class", "d-tag");
newTag.innerHTML = currReview["tags"][i]; newTag.innerHTML = currReview["tags"][i];
tagContainer.append(newTag); tagContainer.append(newTag);
} }
@ -60,11 +60,11 @@ function setupInfo(){
/** /**
* Sets up delete button to delete reveiw from storage and switch to homepage. * Sets up delete button to delete reveiw from storage and switch to homepage.
*/ */
function setupDelete(){ function setupDelete() {
let deleteBtn = document.getElementById("delete-btn"); let deleteBtn = document.getElementById("delete-btn");
let currID = JSON.parse(sessionStorage.getItem("currID")); let currID = JSON.parse(sessionStorage.getItem("currID"));
deleteBtn.addEventListener("click", function(){ deleteBtn.addEventListener("click", function () {
if(window.confirm("Are you sure you want to delete this entry?")){ if (window.confirm("Are you sure you want to delete this entry?")) {
deleteReviewFromStorage(currID); deleteReviewFromStorage(currID);
sessionStorage.removeItem("currID"); sessionStorage.removeItem("currID");
window.location.assign("./index.html"); window.location.assign("./index.html");
@ -75,13 +75,13 @@ function setupDelete(){
/** /**
* Sets up update button to reveal form and update info in storage and the current page. * Sets up update button to reveal form and update info in storage and the current page.
*/ */
function setupUpdate(){ function setupUpdate() {
let updateBtn = document.getElementById("update-btn"); let updateBtn = document.getElementById("update-btn");
let currID = JSON.parse(sessionStorage.getItem("currID")); let currID = JSON.parse(sessionStorage.getItem("currID"));
let currReview = getReviewFromStorage(currID); let currReview = getReviewFromStorage(currID);
let form = document.getElementById("new-food-entry"); let form = document.getElementById("new-food-entry");
let updateDiv = document.getElementById("update-form"); let updateDiv = document.getElementById("update-form");
updateBtn.addEventListener("click", function(){ updateBtn.addEventListener("click", function () {
//update function //update function
updateDiv.classList.remove("hidden"); updateDiv.classList.remove("hidden");
@ -98,7 +98,7 @@ function setupUpdate(){
//Set used to track tags and ensure no duplicates //Set used to track tags and ensure no duplicates
let tagSet = new Set(); let tagSet = new Set();
if(currReview["tags"]){ if (currReview["tags"]) {
while (tagContainer.firstChild) { while (tagContainer.firstChild) {
tagContainer.removeChild(tagContainer.firstChild); tagContainer.removeChild(tagContainer.firstChild);
} }
@ -108,9 +108,9 @@ function setupUpdate(){
tagSetVal = currReview["tags"][i].toLowerCase(); tagSetVal = currReview["tags"][i].toLowerCase();
tagSet.add(tagSetVal); tagSet.add(tagSetVal);
let newTag = document.createElement("label"); let newTag = document.createElement("label");
newTag.setAttribute("class","tag"); newTag.setAttribute("class", "tag");
newTag.innerHTML = currReview["tags"][i]; newTag.innerHTML = currReview["tags"][i];
newTag.addEventListener("click",()=> { newTag.addEventListener("click", () => {
tagContainer.removeChild(newTag); tagContainer.removeChild(newTag);
tagSet.delete(tagSetVal); tagSet.delete(tagSetVal);
}); });
@ -126,10 +126,10 @@ function setupUpdate(){
let player = document.getElementById("player"); let player = document.getElementById("player");
let canvas = document.getElementById("photoCanvas"); let canvas = document.getElementById("photoCanvas");
let photoButton = document.getElementById("photoButton"); let photoButton = document.getElementById("photoButton");
let context = canvas.getContext('2d'); let context = canvas.getContext("2d");
// Event listener for the photo taking/reset button // Event listener for the photo taking/reset button
photoButton.addEventListener('click', ()=>{ photoButton.addEventListener("click", () => {
// capturing the current video frame // capturing the current video frame
if (videoMode) { if (videoMode) {
videoMode = false; videoMode = false;
@ -155,12 +155,12 @@ function setupUpdate(){
}); });
/* /*
* change the input source of the image between local file and taking photo * change the input source of the image between local file and taking photo
* depending on user's selection * depending on user's selection
*/ */
let select = document.getElementById("select"); let select = document.getElementById("select");
const input = document.getElementById("mealImg"); const input = document.getElementById("mealImg");
select.addEventListener("change", function() { select.addEventListener("change", function () {
console.log("1"); console.log("1");
// Select a photo with HTML file selector // Select a photo with HTML file selector
if (select.value == "file") { if (select.value == "file") {
@ -184,33 +184,36 @@ function setupUpdate(){
photoButton.removeAttribute("hidden", ""); photoButton.removeAttribute("hidden", "");
// getting video stream from user's camera then displaying it on a video element // getting video stream from user's camera then displaying it on a video element
navigator.mediaDevices.getUserMedia({video: true,}).then((stream)=>{ navigator.mediaDevices.getUserMedia({ video: true }).then((stream) => {
player.srcObject = stream; player.srcObject = stream;
}); });
} }
}); });
//addressing sourcing image from local file //addressing sourcing image from local file
document.getElementById("mealImg").addEventListener("change", function() { document.getElementById("mealImg").addEventListener("change", function () {
console.log("reading used"); console.log("reading used");
const reader = new FileReader(); const reader = new FileReader();
//store image data URL after successful image load //store image data URL after successful image load
reader.addEventListener("load", ()=>{ reader.addEventListener(
imgDataURL = reader.result; "load",
}, false); () => {
imgDataURL = reader.result;
},
false
);
//convert image file into data URL for local storage //convert image file into data URL for local storage
reader.readAsDataURL(document.getElementById("mealImg").files[0]); reader.readAsDataURL(document.getElementById("mealImg").files[0]);
}); });
//Take formdata values as newData when submit //Take formdata values as newData when submit
form.addEventListener("submit", function(){ form.addEventListener("submit", function () {
/* /*
* User submits the form for their review. * User submits the form for their review.
* We create reviewCard data, replace in storage, and update tags * We create reviewCard data, replace in storage, and update tags
*/ */
let formData = new FormData(form); let formData = new FormData(form);
let newData = {}; let newData = {};
//iterate through formData and add to newData //iterate through formData and add to newData
@ -223,15 +226,14 @@ function setupUpdate(){
// Account for the case where image is not updated // Account for the case where image is not updated
if (`${key}` === "mealImg" && imgDataURL === "") { if (`${key}` === "mealImg" && imgDataURL === "") {
newData["mealImg"] = currReview["mealImg"]; newData["mealImg"] = currReview["mealImg"];
} } else if (`${key}` === "mealImg") {
else if (`${key}` === "mealImg") {
newData["mealImg"] = imgDataURL; newData["mealImg"] = imgDataURL;
} }
} }
newData["tags"] = []; newData["tags"] = [];
let tags = document.querySelectorAll(".tag"); let tags = document.querySelectorAll(".tag");
for(let i = 0; i < tags.length; i ++) { for (let i = 0; i < tags.length; i++) {
newData["tags"].push(tags[i].innerHTML); newData["tags"].push(tags[i].innerHTML);
tagContainer.removeChild(tags[i]); tagContainer.removeChild(tags[i]);
} }
@ -241,21 +243,20 @@ function setupUpdate(){
updateReviewToStorage(currID, newData); updateReviewToStorage(currID, newData);
updateDiv.classList.add("hidden"); updateDiv.classList.add("hidden");
}); });
// Adding tag to form functionality // Adding tag to form functionality
let tagAddBtn = document.getElementById("tag-add-btn"); let tagAddBtn = document.getElementById("tag-add-btn");
tagAddBtn.addEventListener("click", ()=> { tagAddBtn.addEventListener("click", () => {
let tagField = document.getElementById("tag-form"); let tagField = document.getElementById("tag-form");
if (tagField.value.length > 0) { if (tagField.value.length > 0) {
let tagSetVal = tagField.value.toLowerCase(); let tagSetVal = tagField.value.toLowerCase();
if (!tagSet.has(tagSetVal)){ if (!tagSet.has(tagSetVal)) {
let tagLabel = document.createElement("label"); let tagLabel = document.createElement("label");
tagLabel.innerHTML = tagField.value; tagLabel.innerHTML = tagField.value;
tagLabel.setAttribute("class","tag"); tagLabel.setAttribute("class", "tag");
tagSet.add(tagSetVal); tagSet.add(tagSetVal);
tagLabel.addEventListener("click",()=> { tagLabel.addEventListener("click", () => {
tagContainer.removeChild(tagLabel); tagContainer.removeChild(tagLabel);
tagSet.delete(tagSetVal); tagSet.delete(tagSetVal);
}); });

View File

@ -1,4 +1,4 @@
import {strict as assert} from "node:assert"; import { strict as assert } from "node:assert";
/** /**
* Fills out a create or update review form * Fills out a create or update review form
@ -6,30 +6,29 @@ import {strict as assert} from "node:assert";
* @param {Object} review review data to input into the form * @param {Object} review review data to input into the form
*/ */
export async function setReviewForm(page, review) { export async function setReviewForm(page, review) {
// Set text fields // Set text fields
await page.$eval("#mealName", (el, value) => el.value = value, review.mealName); await page.$eval("#mealName", (el, value) => (el.value = value), review.mealName);
await page.$eval("#comments", (el, value) => el.value = value, review.comments); await page.$eval("#comments", (el, value) => (el.value = value), review.comments);
await page.$eval("#restaurant", (el, value) => el.value = value, review.restaurant); await page.$eval("#restaurant", (el, value) => (el.value = value), review.restaurant);
// Get all tag elements and click them to delete them // Get all tag elements and click them to delete them
let tag_items = await page.$$(".tag"); let tag_items = await page.$$(".tag");
if(tag_items !== null){ if (tag_items !== null) {
for(let i = 0; i < tag_items.length; i++){ for (let i = 0; i < tag_items.length; i++) {
await tag_items[i].click(); await tag_items[i].click();
} }
} }
// Get the button needed to add new tags // Get the button needed to add new tags
let tag_btn = await page.$("#tag-add-btn"); let tag_btn = await page.$("#tag-add-btn");
for(let i = 0; i < review.tags.length; i++){ for (let i = 0; i < review.tags.length; i++) {
await page.$eval("#tag-form", (el, value) => el.value = value, review.tags[i]); await page.$eval("#tag-form", (el, value) => (el.value = value), review.tags[i]);
await tag_btn.click(); await tag_btn.click();
} }
// Select a new rating // Select a new rating
let rating_select = await page.$(`#s${review.rating}-select`); let rating_select = await page.$(`#s${review.rating}-select`);
await rating_select.click({delay: 100}); await rating_select.click({ delay: 100 });
} }
/** /**
@ -38,7 +37,7 @@ export async function setReviewForm(page, review) {
* @param {string} prefix prefix character for element IDs * @param {string} prefix prefix character for element IDs
* @param {Object} expected values for each element * @param {Object} expected values for each element
*/ */
export async function checkCorrectness(root, prefix, expected){ export async function checkCorrectness(root, prefix, expected) {
// Get the review image and check src // Get the review image and check src
let img = await root.$(`#${prefix}-meal-img`); let img = await root.$(`#${prefix}-meal-img`);
let imgSrc = await img.getProperty("src"); let imgSrc = await img.getProperty("src");
@ -61,7 +60,7 @@ export async function checkCorrectness(root, prefix, expected){
// Check tags // Check tags
let tags = await root.$$(`.${prefix}-tag`); let tags = await root.$$(`.${prefix}-tag`);
assert.strictEqual(await tags.length, expected.tags.length); assert.strictEqual(await tags.length, expected.tags.length);
for(let i = 0; i < expected.tags.length; i++){ for (let i = 0; i < expected.tags.length; i++) {
let tag_text = await tags[i].getProperty("innerText"); let tag_text = await tags[i].getProperty("innerText");
assert.strictEqual(await tag_text.jsonValue(), expected.tags[i]); assert.strictEqual(await tag_text.jsonValue(), expected.tags[i]);
} }

View File

@ -3,7 +3,7 @@
* @param {Object} review to store * @param {Object} review to store
* @return {number} ID of the newly added review * @return {number} ID of the newly added review
*/ */
export function newReviewToStorage(review){ export function newReviewToStorage(review) {
//grabbing the nextID, and putting our review object in storage associated with the ID //grabbing the nextID, and putting our review object in storage associated with the ID
let nextReviewId = JSON.parse(localStorage.getItem("nextID")); let nextReviewId = JSON.parse(localStorage.getItem("nextID"));
review["reviewID"] = nextReviewId; review["reviewID"] = nextReviewId;
@ -16,7 +16,7 @@ export function newReviewToStorage(review){
//adding to the star storage //adding to the star storage
let starArr = JSON.parse(localStorage.getItem(`star${review["rating"]}`)); let starArr = JSON.parse(localStorage.getItem(`star${review["rating"]}`));
if(!starArr){ if (!starArr) {
starArr = []; starArr = [];
} }
starArr.push(nextReviewId); starArr.push(nextReviewId);
@ -38,7 +38,7 @@ export function newReviewToStorage(review){
* @param {string} ID of the review to get * @param {string} ID of the review to get
* @returns {Object} review object corresponding to param ID * @returns {Object} review object corresponding to param ID
*/ */
export function getReviewFromStorage(ID){ export function getReviewFromStorage(ID) {
return JSON.parse(localStorage.getItem(`review${ID}`)); return JSON.parse(localStorage.getItem(`review${ID}`));
} }
@ -47,15 +47,15 @@ export function getReviewFromStorage(ID){
* @param {string} ID of review to update * @param {string} ID of review to update
* @param {Object} review to store * @param {Object} review to store
*/ */
export function updateReviewToStorage(ID, review){ export function updateReviewToStorage(ID, review) {
let oldReview = JSON.parse(localStorage.getItem(`review${ID}`)); let oldReview = JSON.parse(localStorage.getItem(`review${ID}`));
let starArr = JSON.parse(localStorage.getItem(`star${review["rating"]}`)); let starArr = JSON.parse(localStorage.getItem(`star${review["rating"]}`));
//activeID update recency //activeID update recency
let activeIDS = JSON.parse(localStorage.getItem("activeIDS")); let activeIDS = JSON.parse(localStorage.getItem("activeIDS"));
for (let i in activeIDS){ for (let i in activeIDS) {
if(activeIDS[i] == ID){ if (activeIDS[i] == ID) {
activeIDS.splice(i,1); activeIDS.splice(i, 1);
activeIDS.push(ID); activeIDS.push(ID);
break; break;
} }
@ -63,33 +63,33 @@ export function updateReviewToStorage(ID, review){
localStorage.setItem("activeIDS", JSON.stringify(activeIDS)); localStorage.setItem("activeIDS", JSON.stringify(activeIDS));
//star local storage update //star local storage update
if(oldReview["rating"] !== review["rating"]){ if (oldReview["rating"] !== review["rating"]) {
//first delete from previous rating array in storage //first delete from previous rating array in storage
let oldStarArr = JSON.parse(localStorage.getItem(`star${oldReview["rating"]}`)); let oldStarArr = JSON.parse(localStorage.getItem(`star${oldReview["rating"]}`));
for (let i in oldStarArr) { for (let i in oldStarArr) {
if (oldStarArr[i] == ID) { if (oldStarArr[i] == ID) {
//removing from corresponding rating array and updating local Storage //removing from corresponding rating array and updating local Storage
oldStarArr.splice(i,1); oldStarArr.splice(i, 1);
break; break;
} }
} }
if(oldStarArr.length != 0){ if (oldStarArr.length != 0) {
localStorage.setItem(`star${oldReview["rating"]}`, JSON.stringify(oldStarArr)); localStorage.setItem(`star${oldReview["rating"]}`, JSON.stringify(oldStarArr));
} else { } else {
localStorage.removeItem(`star${oldReview["rating"]}`); localStorage.removeItem(`star${oldReview["rating"]}`);
} }
//then add ID to array corresponding to new review rating //then add ID to array corresponding to new review rating
let newStarArr = starArr; let newStarArr = starArr;
if(!newStarArr){ if (!newStarArr) {
newStarArr = []; newStarArr = [];
} }
newStarArr.push(ID); newStarArr.push(ID);
localStorage.setItem(`star${review["rating"]}`, JSON.stringify(newStarArr)); localStorage.setItem(`star${review["rating"]}`, JSON.stringify(newStarArr));
} else if(starArr.length !== 1) { } else if (starArr.length !== 1) {
//stars update recency if unchanged //stars update recency if unchanged
for (let i in starArr){ for (let i in starArr) {
if(starArr[i] == ID) { if (starArr[i] == ID) {
starArr.splice(i,1); starArr.splice(i, 1);
starArr.push(ID); starArr.push(ID);
break; break;
} }
@ -98,14 +98,14 @@ export function updateReviewToStorage(ID, review){
} }
//specifically the unchanged tags update recency //specifically the unchanged tags update recency
let repeatedTags = review["tags"].filter(x => oldReview["tags"].includes(x)); let repeatedTags = review["tags"].filter((x) => oldReview["tags"].includes(x));
let tagArr = []; let tagArr = [];
for (let i in repeatedTags){ for (let i in repeatedTags) {
tagArr = JSON.parse(localStorage.getItem(`!${repeatedTags[i]}`.toLocaleLowerCase())); tagArr = JSON.parse(localStorage.getItem(`!${repeatedTags[i]}`.toLocaleLowerCase()));
if(tagArr.length == 1){ if (tagArr.length == 1) {
for (let j in tagArr){ for (let j in tagArr) {
if(tagArr[j] == ID){ if (tagArr[j] == ID) {
tagArr.splice(j,1); tagArr.splice(j, 1);
tagArr.push(ID); tagArr.push(ID);
break; break;
} }
@ -115,8 +115,8 @@ export function updateReviewToStorage(ID, review){
} }
//Get diff of tags and update storage //Get diff of tags and update storage
let deletedTags = oldReview["tags"].filter(x => !review["tags"].includes(x)); let deletedTags = oldReview["tags"].filter((x) => !review["tags"].includes(x));
let addedTags = review["tags"].filter(x => !oldReview["tags"].includes(x)); let addedTags = review["tags"].filter((x) => !oldReview["tags"].includes(x));
deleteTagsFromStorage(ID, deletedTags); deleteTagsFromStorage(ID, deletedTags);
addTagsToStorage(ID, addedTags); addTagsToStorage(ID, addedTags);
@ -128,7 +128,7 @@ export function updateReviewToStorage(ID, review){
* Deletes a review by ID from storage * Deletes a review by ID from storage
* @param {string} ID of the review to delete * @param {string} ID of the review to delete
*/ */
export function deleteReviewFromStorage(ID){ export function deleteReviewFromStorage(ID) {
//removing id number from activeIDS and star{rating} //removing id number from activeIDS and star{rating}
let activeIDS = JSON.parse(localStorage.getItem("activeIDS")); let activeIDS = JSON.parse(localStorage.getItem("activeIDS"));
let reviewRating = JSON.parse(localStorage.getItem(`review${ID}`))["rating"]; let reviewRating = JSON.parse(localStorage.getItem(`review${ID}`))["rating"];
@ -137,11 +137,11 @@ export function deleteReviewFromStorage(ID){
for (let i in starArr) { for (let i in starArr) {
if (starArr[i] == ID) { if (starArr[i] == ID) {
//removing from corresponding rating array and updating local Storage //removing from corresponding rating array and updating local Storage
starArr.splice(i,1); starArr.splice(i, 1);
break; break;
} }
} }
if(starArr.length != 0){ if (starArr.length != 0) {
localStorage.setItem(`star${reviewRating}`, JSON.stringify(starArr)); localStorage.setItem(`star${reviewRating}`, JSON.stringify(starArr));
} else { } else {
localStorage.removeItem(`star${reviewRating}`); localStorage.removeItem(`star${reviewRating}`);
@ -149,7 +149,7 @@ export function deleteReviewFromStorage(ID){
for (let i in activeIDS) { for (let i in activeIDS) {
if (activeIDS[i] == ID) { if (activeIDS[i] == ID) {
activeIDS.splice(i,1); activeIDS.splice(i, 1);
localStorage.setItem("activeIDS", JSON.stringify(activeIDS)); localStorage.setItem("activeIDS", JSON.stringify(activeIDS));
let currReview = JSON.parse(localStorage.getItem(`review${ID}`)); let currReview = JSON.parse(localStorage.getItem(`review${ID}`));
@ -168,17 +168,17 @@ export function deleteReviewFromStorage(ID){
* @param {string[]} deletedTags to modify storage of * @param {string[]} deletedTags to modify storage of
*/ */
function deleteTagsFromStorage(ID, deletedTags) { function deleteTagsFromStorage(ID, deletedTags) {
for(let i in deletedTags){ for (let i in deletedTags) {
//get local storage of each tag and remove id from tag list //get local storage of each tag and remove id from tag list
let tagName = "!"+ deletedTags[i].toLowerCase(); let tagName = "!" + deletedTags[i].toLowerCase();
let tagArr = JSON.parse(localStorage.getItem(tagName)); let tagArr = JSON.parse(localStorage.getItem(tagName));
for(let j in tagArr){ for (let j in tagArr) {
if(tagArr[j] == ID){ if (tagArr[j] == ID) {
tagArr.splice(j,1); tagArr.splice(j, 1);
break; break;
} }
} }
if(tagArr.length != 0){ if (tagArr.length != 0) {
localStorage.setItem(tagName, JSON.stringify(tagArr)); localStorage.setItem(tagName, JSON.stringify(tagArr));
} else { } else {
localStorage.removeItem(tagName); localStorage.removeItem(tagName);
@ -192,10 +192,10 @@ function deleteTagsFromStorage(ID, deletedTags) {
* @param {string[]} addedTags to modify storage of * @param {string[]} addedTags to modify storage of
*/ */
function addTagsToStorage(ID, addedTags) { function addTagsToStorage(ID, addedTags) {
for(let i in addedTags){ for (let i in addedTags) {
let tagName = "!" + addedTags[i].toLowerCase(); let tagName = "!" + addedTags[i].toLowerCase();
let tagArr = JSON.parse(localStorage.getItem(tagName)); let tagArr = JSON.parse(localStorage.getItem(tagName));
if(!tagArr){ if (!tagArr) {
tagArr = []; tagArr = [];
} }
tagArr.push(ID); tagArr.push(ID);
@ -208,10 +208,10 @@ function addTagsToStorage(ID, addedTags) {
* @returns {Object} all active reviews from local storage * @returns {Object} all active reviews from local storage
*/ */
export function getAllReviewsFromStorage() { export function getAllReviewsFromStorage() {
if (!(localStorage.getItem("activeIDS"))) { if (!localStorage.getItem("activeIDS")) {
// we wanna init the active ID array and start the nextID count // we wanna init the active ID array and start the nextID count
localStorage.setItem("activeIDS", JSON.stringify([])); localStorage.setItem("activeIDS", JSON.stringify([]));
localStorage.setItem("nextID", JSON.stringify(0)); localStorage.setItem("nextID", JSON.stringify(0));
} }
//iterate thru activeIDS //iterate thru activeIDS
let activeIDS = JSON.parse(localStorage.getItem("activeIDS")); let activeIDS = JSON.parse(localStorage.getItem("activeIDS"));
@ -228,10 +228,10 @@ export function getAllReviewsFromStorage() {
* @returns {number[]} list of all active IDs by recency * @returns {number[]} list of all active IDs by recency
*/ */
export function getIDsFromStorage() { export function getIDsFromStorage() {
if (!(localStorage.getItem("activeIDS"))) { if (!localStorage.getItem("activeIDS")) {
// we wanna init the active ID array and start the nextID count // we wanna init the active ID array and start the nextID count
localStorage.setItem("activeIDS", JSON.stringify([])); localStorage.setItem("activeIDS", JSON.stringify([]));
localStorage.setItem("nextID", JSON.stringify(0)); localStorage.setItem("nextID", JSON.stringify(0));
} }
let activeIDS = JSON.parse(localStorage.getItem("activeIDS")); let activeIDS = JSON.parse(localStorage.getItem("activeIDS"));
return activeIDS.reverse(); return activeIDS.reverse();
@ -244,7 +244,7 @@ export function getIDsFromStorage() {
*/ */
export function getIDsByTag(tag) { export function getIDsByTag(tag) {
let tagArr = JSON.parse(localStorage.getItem("!" + tag.toLowerCase())); let tagArr = JSON.parse(localStorage.getItem("!" + tag.toLowerCase()));
if(!tagArr){ if (!tagArr) {
tagArr = []; tagArr = [];
} }
return tagArr.reverse(); return tagArr.reverse();
@ -256,9 +256,9 @@ export function getIDsByTag(tag) {
*/ */
export function getTopIDsFromStorage() { export function getTopIDsFromStorage() {
let resultArr = []; let resultArr = [];
for(let i = 5; i > 0; i--){ for (let i = 5; i > 0; i--) {
let starArr = JSON.parse(localStorage.getItem(`star${i}`)); let starArr = JSON.parse(localStorage.getItem(`star${i}`));
if(!starArr){ if (!starArr) {
continue; continue;
} }
resultArr = resultArr.concat(starArr.reverse()); resultArr = resultArr.concat(starArr.reverse());

View File

@ -1,9 +1,16 @@
import {strict as assert} from "node:assert"; import { strict as assert } from "node:assert";
import {describe, it, before, after} from "mocha"; import { describe, it, before, after } from "mocha";
import {newReviewToStorage, getReviewFromStorage, updateReviewToStorage, deleteReviewFromStorage, getAllReviewsFromStorage, getIDsByTag, getTopIDsFromStorage} from "./localStorage.js"; import {
newReviewToStorage,
getReviewFromStorage,
updateReviewToStorage,
deleteReviewFromStorage,
getAllReviewsFromStorage,
getIDsByTag,
getTopIDsFromStorage,
} from "./localStorage.js";
describe("test CRUD localStorage interaction", () => { describe("test CRUD localStorage interaction", () => {
before(() => { before(() => {
localStorage.clear(); localStorage.clear();
}); });
@ -16,11 +23,11 @@ describe("test CRUD localStorage interaction", () => {
it("test localStorage state after adding one review", () => { it("test localStorage state after adding one review", () => {
let review = { let review = {
"imgSrc": "sample src", imgSrc: "sample src",
"mealName": "sample name", mealName: "sample name",
"restaurant": "sample restaurant", restaurant: "sample restaurant",
"rating": 5, rating: 5,
"tags": ["tag 1", "tag 2", "tag 3"] tags: ["tag 1", "tag 2", "tag 3"],
}; };
newReviewToStorage(review); newReviewToStorage(review);
@ -37,38 +44,38 @@ describe("test CRUD localStorage interaction", () => {
let reviews = getAllReviewsFromStorage(); let reviews = getAllReviewsFromStorage();
let ids = [0]; let ids = [0];
for(let i = 1; i < 1000; i++){ for (let i = 1; i < 1000; i++) {
ids.push(i); ids.push(i);
let new_review = { let new_review = {
"imgSrc": `sample src ${i}`, imgSrc: `sample src ${i}`,
"mealName": `sample name ${i}`, mealName: `sample name ${i}`,
"restaurant": `sample restaurant ${i}`, restaurant: `sample restaurant ${i}`,
"rating": i, rating: i,
"tags": [`tag ${3*i}`, `tag ${3*i + 1}`, `tag ${3*i + 2}`] tags: [`tag ${3 * i}`, `tag ${3 * i + 1}`, `tag ${3 * i + 2}`],
}; };
new_review.reviewID = newReviewToStorage(new_review); new_review.reviewID = newReviewToStorage(new_review);
reviews.push(new_review); reviews.push(new_review);
assert.deepEqual(getAllReviewsFromStorage(), reviews); assert.deepEqual(getAllReviewsFromStorage(), reviews);
assert.deepEqual(getReviewFromStorage(i), new_review); assert.deepEqual(getReviewFromStorage(i), new_review);
assert.deepEqual(JSON.parse(localStorage.getItem("activeIDS")), ids); assert.deepEqual(JSON.parse(localStorage.getItem("activeIDS")), ids);
assert.strictEqual(JSON.parse(localStorage.getItem("nextID")), (i+1)); assert.strictEqual(JSON.parse(localStorage.getItem("nextID")), i + 1);
} }
}).timeout(5000); }).timeout(5000);
it("test localStorage state during updating 1000 reviews", () => { it("test localStorage state during updating 1000 reviews", () => {
for(let i = 0; i < 1000; i++){ for (let i = 0; i < 1000; i++) {
let old_review = getReviewFromStorage(i); let old_review = getReviewFromStorage(i);
let id = old_review.reviewID; let id = old_review.reviewID;
let new_review = { let new_review = {
"imgSrc": `updated sample src ${id}`, imgSrc: `updated sample src ${id}`,
"mealName": `updated sample name ${id}`, mealName: `updated sample name ${id}`,
"restaurant": `updated sample restaurant ${id}`, restaurant: `updated sample restaurant ${id}`,
"reviewID": id, reviewID: id,
"rating": (id % 5) + 1, rating: (id % 5) + 1,
"tags": [`tag ${3*id}`, `tag ${3*id + 1}`, `tag ${3*id + 2}`] tags: [`tag ${3 * id}`, `tag ${3 * id + 1}`, `tag ${3 * id + 2}`],
}; };
updateReviewToStorage(id, new_review); updateReviewToStorage(id, new_review);
@ -87,7 +94,7 @@ describe("test CRUD localStorage interaction", () => {
let reviews = getAllReviewsFromStorage(); let reviews = getAllReviewsFromStorage();
let ids = JSON.parse(localStorage.getItem("activeIDS")); let ids = JSON.parse(localStorage.getItem("activeIDS"));
for(let i = 999; i >= 0; i--){ for (let i = 999; i >= 0; i--) {
deleteReviewFromStorage(i); deleteReviewFromStorage(i);
ids.pop(); ids.pop();
reviews.pop(); reviews.pop();
@ -106,30 +113,29 @@ describe("test CRUD localStorage interaction", () => {
}); });
describe("test sort/filter localStorage interaction", () => { describe("test sort/filter localStorage interaction", () => {
before(() => { before(() => {
localStorage.clear(); localStorage.clear();
getAllReviewsFromStorage(); getAllReviewsFromStorage();
}); });
it("add sample data for sort and filter", () => { it("add sample data for sort and filter", () => {
for(let i = 0; i < 100; i++){ for (let i = 0; i < 100; i++) {
let review = { let review = {
"imgSrc": `sample src ${i}`, imgSrc: `sample src ${i}`,
"mealName": `sample name ${i}`, mealName: `sample name ${i}`,
"restaurant": `sample restaurant ${i}`, restaurant: `sample restaurant ${i}`,
"rating": (i % 5) + 1, rating: (i % 5) + 1,
"tags": [`tag ${i%3}`, `tag ${i < 50}`, "tag x"] tags: [`tag ${i % 3}`, `tag ${i < 50}`, "tag x"],
}; };
newReviewToStorage(review); newReviewToStorage(review);
} }
}); });
it("test getTopIDsFromStorage end behavior after create", () =>{ it("test getTopIDsFromStorage end behavior after create", () => {
let top_reviews = getTopIDsFromStorage(); let top_reviews = getTopIDsFromStorage();
let prev = Infinity; let prev = Infinity;
for(let i = 0; i < top_reviews.length; i++){ for (let i = 0; i < top_reviews.length; i++) {
let review = getReviewFromStorage(top_reviews[i]); let review = getReviewFromStorage(top_reviews[i]);
assert.strictEqual(review.rating <= prev, true); assert.strictEqual(review.rating <= prev, true);
} }
@ -140,7 +146,7 @@ describe("test sort/filter localStorage interaction", () => {
specific_tagged_reviews = getIDsByTag("tag 0"); specific_tagged_reviews = getIDsByTag("tag 0");
assert.strictEqual(specific_tagged_reviews.length, 34); assert.strictEqual(specific_tagged_reviews.length, 34);
for(let i = 0; i < specific_tagged_reviews.length; i++){ for (let i = 0; i < specific_tagged_reviews.length; i++) {
let review = getReviewFromStorage(specific_tagged_reviews[i]); let review = getReviewFromStorage(specific_tagged_reviews[i]);
assert.strictEqual(review.tags.includes("tag 0"), true); assert.strictEqual(review.tags.includes("tag 0"), true);
assert.strictEqual(review.reviewID % 3, 0); assert.strictEqual(review.reviewID % 3, 0);
@ -148,7 +154,7 @@ describe("test sort/filter localStorage interaction", () => {
specific_tagged_reviews = getIDsByTag("tag 1"); specific_tagged_reviews = getIDsByTag("tag 1");
assert.strictEqual(specific_tagged_reviews.length, 33); assert.strictEqual(specific_tagged_reviews.length, 33);
for(let i = 0; i < specific_tagged_reviews.length; i++){ for (let i = 0; i < specific_tagged_reviews.length; i++) {
let review = getReviewFromStorage(specific_tagged_reviews[i]); let review = getReviewFromStorage(specific_tagged_reviews[i]);
assert.strictEqual(review.tags.includes("tag 1"), true); assert.strictEqual(review.tags.includes("tag 1"), true);
assert.strictEqual(review.reviewID % 3, 1); assert.strictEqual(review.reviewID % 3, 1);
@ -156,7 +162,7 @@ describe("test sort/filter localStorage interaction", () => {
specific_tagged_reviews = getIDsByTag("tag 2"); specific_tagged_reviews = getIDsByTag("tag 2");
assert.strictEqual(specific_tagged_reviews.length, 33); assert.strictEqual(specific_tagged_reviews.length, 33);
for(let i = 0; i < specific_tagged_reviews.length; i++){ for (let i = 0; i < specific_tagged_reviews.length; i++) {
let review = getReviewFromStorage(specific_tagged_reviews[i]); let review = getReviewFromStorage(specific_tagged_reviews[i]);
assert.strictEqual(review.tags.includes("tag 2"), true); assert.strictEqual(review.tags.includes("tag 2"), true);
assert.strictEqual(review.reviewID % 3, 2); assert.strictEqual(review.reviewID % 3, 2);
@ -164,7 +170,7 @@ describe("test sort/filter localStorage interaction", () => {
specific_tagged_reviews = getIDsByTag("tag true"); specific_tagged_reviews = getIDsByTag("tag true");
assert.strictEqual(specific_tagged_reviews.length, 50); assert.strictEqual(specific_tagged_reviews.length, 50);
for(let i = 0; i < specific_tagged_reviews.length; i++){ for (let i = 0; i < specific_tagged_reviews.length; i++) {
let review = getReviewFromStorage(specific_tagged_reviews[i]); let review = getReviewFromStorage(specific_tagged_reviews[i]);
assert.strictEqual(review.tags.includes("tag true"), true); assert.strictEqual(review.tags.includes("tag true"), true);
assert.strictEqual(review.reviewID < 50, true); assert.strictEqual(review.reviewID < 50, true);
@ -172,7 +178,7 @@ describe("test sort/filter localStorage interaction", () => {
specific_tagged_reviews = getIDsByTag("tag false"); specific_tagged_reviews = getIDsByTag("tag false");
assert.strictEqual(specific_tagged_reviews.length, 50); assert.strictEqual(specific_tagged_reviews.length, 50);
for(let i = 0; i < specific_tagged_reviews.length; i++){ for (let i = 0; i < specific_tagged_reviews.length; i++) {
let review = getReviewFromStorage(specific_tagged_reviews[i]); let review = getReviewFromStorage(specific_tagged_reviews[i]);
assert.strictEqual(review.tags.includes("tag false"), true); assert.strictEqual(review.tags.includes("tag false"), true);
assert.strictEqual(review.reviewID >= 50, true); assert.strictEqual(review.reviewID >= 50, true);
@ -186,25 +192,25 @@ describe("test sort/filter localStorage interaction", () => {
}); });
it("update sample data for sort and filter", () => { it("update sample data for sort and filter", () => {
for(let i = 0; i < 100; i++){ for (let i = 0; i < 100; i++) {
let old_review = getReviewFromStorage(i); let old_review = getReviewFromStorage(i);
let new_review = { let new_review = {
"imgSrc": `sample src ${i}`, imgSrc: `sample src ${i}`,
"mealName": `sample name ${i}`, mealName: `sample name ${i}`,
"restaurant": `sample restaurant ${i}`, restaurant: `sample restaurant ${i}`,
"reviewID": old_review.reviewID, reviewID: old_review.reviewID,
"rating": (i % 5) + 1, rating: (i % 5) + 1,
"tags": [`tag ${i % 4}`, `tag ${i < 37}`, "tag y"] tags: [`tag ${i % 4}`, `tag ${i < 37}`, "tag y"],
}; };
updateReviewToStorage(old_review.reviewID, new_review); updateReviewToStorage(old_review.reviewID, new_review);
} }
}); });
it("test getTopIDsFromStorage end behavior after create", () =>{ it("test getTopIDsFromStorage end behavior after create", () => {
let top_reviews = getTopIDsFromStorage(); let top_reviews = getTopIDsFromStorage();
let prev = Infinity; let prev = Infinity;
for(let i = 0; i < top_reviews.length; i++){ for (let i = 0; i < top_reviews.length; i++) {
let review = getReviewFromStorage(top_reviews[i]); let review = getReviewFromStorage(top_reviews[i]);
assert.strictEqual(review.rating <= prev, true); assert.strictEqual(review.rating <= prev, true);
} }
@ -215,7 +221,7 @@ describe("test sort/filter localStorage interaction", () => {
specific_tagged_reviews = getIDsByTag("tag 0"); specific_tagged_reviews = getIDsByTag("tag 0");
assert.strictEqual(specific_tagged_reviews.length, 25); assert.strictEqual(specific_tagged_reviews.length, 25);
for(let i = 0; i < specific_tagged_reviews.length; i++){ for (let i = 0; i < specific_tagged_reviews.length; i++) {
let review = getReviewFromStorage(specific_tagged_reviews[i]); let review = getReviewFromStorage(specific_tagged_reviews[i]);
assert.strictEqual(review.tags.includes("tag 0"), true); assert.strictEqual(review.tags.includes("tag 0"), true);
assert.strictEqual(review.reviewID % 4, 0); assert.strictEqual(review.reviewID % 4, 0);
@ -223,7 +229,7 @@ describe("test sort/filter localStorage interaction", () => {
specific_tagged_reviews = getIDsByTag("tag 1"); specific_tagged_reviews = getIDsByTag("tag 1");
assert.strictEqual(specific_tagged_reviews.length, 25); assert.strictEqual(specific_tagged_reviews.length, 25);
for(let i = 0; i < specific_tagged_reviews.length; i++){ for (let i = 0; i < specific_tagged_reviews.length; i++) {
let review = getReviewFromStorage(specific_tagged_reviews[i]); let review = getReviewFromStorage(specific_tagged_reviews[i]);
assert.strictEqual(review.tags.includes("tag 1"), true); assert.strictEqual(review.tags.includes("tag 1"), true);
assert.strictEqual(review.reviewID % 4, 1); assert.strictEqual(review.reviewID % 4, 1);
@ -231,7 +237,7 @@ describe("test sort/filter localStorage interaction", () => {
specific_tagged_reviews = getIDsByTag("tag 2"); specific_tagged_reviews = getIDsByTag("tag 2");
assert.strictEqual(specific_tagged_reviews.length, 25); assert.strictEqual(specific_tagged_reviews.length, 25);
for(let i = 0; i < specific_tagged_reviews.length; i++){ for (let i = 0; i < specific_tagged_reviews.length; i++) {
let review = getReviewFromStorage(specific_tagged_reviews[i]); let review = getReviewFromStorage(specific_tagged_reviews[i]);
assert.strictEqual(review.tags.includes("tag 2"), true); assert.strictEqual(review.tags.includes("tag 2"), true);
assert.strictEqual(review.reviewID % 4, 2); assert.strictEqual(review.reviewID % 4, 2);
@ -239,7 +245,7 @@ describe("test sort/filter localStorage interaction", () => {
specific_tagged_reviews = getIDsByTag("tag 3"); specific_tagged_reviews = getIDsByTag("tag 3");
assert.strictEqual(specific_tagged_reviews.length, 25); assert.strictEqual(specific_tagged_reviews.length, 25);
for(let i = 0; i < specific_tagged_reviews.length; i++){ for (let i = 0; i < specific_tagged_reviews.length; i++) {
let review = getReviewFromStorage(specific_tagged_reviews[i]); let review = getReviewFromStorage(specific_tagged_reviews[i]);
assert.strictEqual(review.tags.includes("tag 3"), true); assert.strictEqual(review.tags.includes("tag 3"), true);
assert.strictEqual(review.reviewID % 4, 3); assert.strictEqual(review.reviewID % 4, 3);
@ -247,7 +253,7 @@ describe("test sort/filter localStorage interaction", () => {
specific_tagged_reviews = getIDsByTag("tag true"); specific_tagged_reviews = getIDsByTag("tag true");
assert.strictEqual(specific_tagged_reviews.length, 37); assert.strictEqual(specific_tagged_reviews.length, 37);
for(let i = 0; i < specific_tagged_reviews.length; i++){ for (let i = 0; i < specific_tagged_reviews.length; i++) {
let review = getReviewFromStorage(specific_tagged_reviews[i]); let review = getReviewFromStorage(specific_tagged_reviews[i]);
assert.strictEqual(review.tags.includes("tag true"), true); assert.strictEqual(review.tags.includes("tag true"), true);
assert.strictEqual(review.reviewID < 37, true); assert.strictEqual(review.reviewID < 37, true);
@ -255,7 +261,7 @@ describe("test sort/filter localStorage interaction", () => {
specific_tagged_reviews = getIDsByTag("tag false"); specific_tagged_reviews = getIDsByTag("tag false");
assert.strictEqual(specific_tagged_reviews.length, 63); assert.strictEqual(specific_tagged_reviews.length, 63);
for(let i = 0; i < specific_tagged_reviews.length; i++){ for (let i = 0; i < specific_tagged_reviews.length; i++) {
let review = getReviewFromStorage(specific_tagged_reviews[i]); let review = getReviewFromStorage(specific_tagged_reviews[i]);
assert.strictEqual(review.tags.includes("tag false"), true); assert.strictEqual(review.tags.includes("tag false"), true);
assert.strictEqual(review.reviewID >= 37, true); assert.strictEqual(review.reviewID >= 37, true);
@ -269,13 +275,13 @@ describe("test sort/filter localStorage interaction", () => {
}); });
it("delete all sample data for sort and filter", () => { it("delete all sample data for sort and filter", () => {
for(let i = 0; i < 100; i++){ for (let i = 0; i < 100; i++) {
deleteReviewFromStorage(i); deleteReviewFromStorage(i);
} }
}); });
it("test getTopIDsFromStorage end behavior after delete", () =>{ it("test getTopIDsFromStorage end behavior after delete", () => {
for(let i = 0; i <= 100; i++){ for (let i = 0; i <= 100; i++) {
let top_reviews = getTopIDsFromStorage(i); let top_reviews = getTopIDsFromStorage(i);
assert.deepEqual(top_reviews, []); assert.deepEqual(top_reviews, []);
} }

View File

@ -1,30 +1,27 @@
import {strict as assert} from "node:assert"; import { strict as assert } from "node:assert";
import {describe, it, before, after} from "mocha"; import { describe, it, before, after } from "mocha";
import puppeteer from "puppeteer-core"; import puppeteer from "puppeteer-core";
import {setReviewForm, checkCorrectness} from "./appTestHelpers.js"; import { setReviewForm, checkCorrectness } from "./appTestHelpers.js";
describe("test App end to end", async () => { describe("test App end to end", async () => {
let browser; let browser;
let page; let page;
before(async () => { before(async () => {
let root; let root;
try { try {
root = process.getuid() == 0; root = process.getuid() == 0;
} } catch (error) {
catch (error) {
root = false; root = false;
} }
//browser = await puppeteer.launch({headless: false, slowMo: 250, args: root ? ['--no-sandbox'] : undefined}); //browser = await puppeteer.launch({headless: false, slowMo: 250, args: root ? ['--no-sandbox'] : undefined});
browser = await puppeteer.launch({args: root ? ["--no-sandbox"] : undefined}); browser = await puppeteer.launch({ args: root ? ["--no-sandbox"] : undefined });
page = await browser.newPage(); page = await browser.newPage();
try{ try {
await page.goto("http://localhost:8080", {timeout: 2000}); await page.goto("http://localhost:8080", { timeout: 2000 });
await console.log(`✔ connected to localhost webserver as ${root ? "root" : "user"}`); await console.log(`✔ connected to localhost webserver as ${root ? "root" : "user"}`);
} } catch (error) {
catch (error) {
await console.log("❌ failed to connect to localhost webserver on port 8080"); await console.log("❌ failed to connect to localhost webserver on port 8080");
} }
}); });
@ -36,7 +33,6 @@ describe("test App end to end", async () => {
}); });
describe("test CRUD on simple inputs and default image", () => { describe("test CRUD on simple inputs and default image", () => {
describe("test create 1 new review", async () => { describe("test create 1 new review", async () => {
it("create 1 new review", async () => { it("create 1 new review", async () => {
// Click the button to create a new review // Click the button to create a new review
@ -50,7 +46,7 @@ describe("test App end to end", async () => {
comments: "sample comment", comments: "sample comment",
restaurant: "sample restaurant", restaurant: "sample restaurant",
tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"],
rating: 1 rating: 1,
}; };
await setReviewForm(page, review); await setReviewForm(page, review);
@ -68,7 +64,7 @@ describe("test App end to end", async () => {
comments: "sample comment", comments: "sample comment",
restaurant: "sample restaurant", restaurant: "sample restaurant",
tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"],
rating: "http://localhost:8080/assets/images/1-star.svg" rating: "http://localhost:8080/assets/images/1-star.svg",
}; };
await checkCorrectness(page, "d", expected); await checkCorrectness(page, "d", expected);
}); });
@ -89,7 +85,7 @@ describe("test App end to end", async () => {
comments: "sample comment", comments: "sample comment",
restaurant: "sample restaurant", restaurant: "sample restaurant",
tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"],
rating: "http://localhost:8080/assets/images/1-star.svg" rating: "http://localhost:8080/assets/images/1-star.svg",
}; };
await checkCorrectness(shadowRoot, "a", expected); await checkCorrectness(shadowRoot, "a", expected);
}); });
@ -114,7 +110,7 @@ describe("test App end to end", async () => {
comments: "sample comment", comments: "sample comment",
restaurant: "sample restaurant", restaurant: "sample restaurant",
tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"],
rating: "http://localhost:8080/assets/images/1-star.svg" rating: "http://localhost:8080/assets/images/1-star.svg",
}; };
await checkCorrectness(page, "d", expected); await checkCorrectness(page, "d", expected);
}); });
@ -136,16 +132,14 @@ describe("test App end to end", async () => {
comments: "sample comment", comments: "sample comment",
restaurant: "sample restaurant", restaurant: "sample restaurant",
tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"],
rating: "http://localhost:8080/assets/images/1-star.svg" rating: "http://localhost:8080/assets/images/1-star.svg",
}; };
await checkCorrectness(shadowRoot, "a", expected); await checkCorrectness(shadowRoot, "a", expected);
}); });
}); });
describe("test update 1 review", async () => { describe("test update 1 review", async () => {
it("update 1 review", async () => { it("update 1 review", async () => {
// Get the only review card and click it // Get the only review card and click it
let review_card = await page.$("review-card"); let review_card = await page.$("review-card");
await review_card.click(); await review_card.click();
@ -161,7 +155,7 @@ describe("test App end to end", async () => {
comments: "updated comment", comments: "updated comment",
restaurant: "updated restaurant", restaurant: "updated restaurant",
tags: ["tag -0", "tag -1", "tag -2", "tag -3", "tag -4", "tag -5"], tags: ["tag -0", "tag -1", "tag -2", "tag -3", "tag -4", "tag -5"],
rating: 5 rating: 5,
}; };
await setReviewForm(page, review); await setReviewForm(page, review);
@ -179,7 +173,7 @@ describe("test App end to end", async () => {
comments: "updated comment", comments: "updated comment",
restaurant: "updated restaurant", restaurant: "updated restaurant",
tags: ["tag -0", "tag -1", "tag -2", "tag -3", "tag -4", "tag -5"], tags: ["tag -0", "tag -1", "tag -2", "tag -3", "tag -4", "tag -5"],
rating: "http://localhost:8080/assets/images/5-star.svg" rating: "http://localhost:8080/assets/images/5-star.svg",
}; };
await checkCorrectness(page, "d", expected); await checkCorrectness(page, "d", expected);
}); });
@ -201,11 +195,10 @@ describe("test App end to end", async () => {
comments: "updated comment", comments: "updated comment",
restaurant: "updated restaurant", restaurant: "updated restaurant",
tags: ["tag -0", "tag -1", "tag -2", "tag -3", "tag -4", "tag -5"], tags: ["tag -0", "tag -1", "tag -2", "tag -3", "tag -4", "tag -5"],
rating: "http://localhost:8080/assets/images/5-star.svg" rating: "http://localhost:8080/assets/images/5-star.svg",
}; };
await checkCorrectness(shadowRoot, "a", expected); await checkCorrectness(shadowRoot, "a", expected);
}); });
}); });
describe("test delete 1 review", async () => { describe("test delete 1 review", async () => {
@ -215,7 +208,7 @@ describe("test App end to end", async () => {
await review_card.click(); await review_card.click();
await page.waitForNavigation(); await page.waitForNavigation();
page.on("dialog", async dialog => { page.on("dialog", async (dialog) => {
console.log(dialog.message()); console.log(dialog.message());
await dialog.accept(); await dialog.accept();
}); });

View File

@ -1,5 +1,5 @@
// main.js // main.js
import {getIDsByTag, getIDsFromStorage, getReviewFromStorage, getTopIDsFromStorage} from "./localStorage.js"; import { getIDsByTag, getIDsFromStorage, getReviewFromStorage, getTopIDsFromStorage } from "./localStorage.js";
// Run the init() function when the page has loaded // Run the init() function when the page has loaded
window.addEventListener("DOMContentLoaded", init); window.addEventListener("DOMContentLoaded", init);
@ -11,25 +11,22 @@ function init() {
initFormHandler(); initFormHandler();
} }
/** /**
* @param {Array<Object>} reviews An array of reviews * @param {Array<Object>} reviews An array of reviews
*/ */
function addReviewsToDocument(reviews) { function addReviewsToDocument(reviews) {
let reviewBox = document.getElementById("review-container"); let reviewBox = document.getElementById("review-container");
reviews.forEach(review => { reviews.forEach((review) => {
let newReview = document.createElement("review-card"); let newReview = document.createElement("review-card");
newReview.data = review; newReview.data = review;
reviewBox.append(newReview); reviewBox.append(newReview);
}); });
} }
/** /**
* Adds the necessary event handlers to search-btn and sort * Adds the necessary event handlers to search-btn and sort
*/ */
function initFormHandler() { function initFormHandler() {
//grabbing search field //grabbing search field
let searchField = document.getElementById("search-bar"); let searchField = document.getElementById("search-bar");
let searchBtn = document.getElementById("search-btn"); let searchBtn = document.getElementById("search-btn");
@ -37,14 +34,14 @@ function initFormHandler() {
//adding search functionality //adding search functionality
//TODO: Add ability to enter without refresh of search bar //TODO: Add ability to enter without refresh of search bar
//filter by selected tag when button clicked //filter by selected tag when button clicked
searchBtn.addEventListener("click", function(){ searchBtn.addEventListener("click", function () {
searchTag = searchField.value; searchTag = searchField.value;
sortAndFilter(searchTag); sortAndFilter(searchTag);
}); });
//for clearing tag filter //for clearing tag filter
let clearSearchBtn = document.getElementById("clear-search"); let clearSearchBtn = document.getElementById("clear-search");
clearSearchBtn.addEventListener("click", function(){ clearSearchBtn.addEventListener("click", function () {
searchTag = null; searchTag = null;
searchField.value = ""; searchField.value = "";
sortAndFilter(searchTag); sortAndFilter(searchTag);
@ -52,29 +49,27 @@ function initFormHandler() {
//sort by selected method //sort by selected method
let sortMethod = document.getElementById("sort"); let sortMethod = document.getElementById("sort");
sortMethod.addEventListener("input", function(){ sortMethod.addEventListener("input", function () {
sortAndFilter(searchTag); sortAndFilter(searchTag);
}); });
} }
/** /**
* Deciphers sort and filter to populate the review-container * Deciphers sort and filter to populate the review-container
* @param {string} searchTag tag name to filter by * @param {string} searchTag tag name to filter by
*/ */
function sortAndFilter(searchTag){ function sortAndFilter(searchTag) {
let reviewBox = document.getElementById("review-container"); let reviewBox = document.getElementById("review-container");
let sortMethod = document.getElementById("sort"); let sortMethod = document.getElementById("sort");
//clear review container //clear review container
while(reviewBox.firstChild){ while (reviewBox.firstChild) {
reviewBox.removeChild(reviewBox.firstChild); reviewBox.removeChild(reviewBox.firstChild);
} }
let reviewIDs = []; let reviewIDs = [];
//sort method: most recent //sort method: most recent
if(sortMethod.value == "recent"){ if (sortMethod.value == "recent") {
//tag filtered most recent //tag filtered most recent
if(searchTag){ if (searchTag) {
reviewIDs = getIDsByTag(searchTag); reviewIDs = getIDsByTag(searchTag);
} }
//most recent //most recent
@ -85,11 +80,11 @@ function sortAndFilter(searchTag){
loadReviews(0, reviewIDs); loadReviews(0, reviewIDs);
} }
//sort method: top rated //sort method: top rated
else if (sortMethod.value == "top"){ else if (sortMethod.value == "top") {
//tag filtered top rated //tag filtered top rated
if(searchTag){ if (searchTag) {
//intersection of top ids list and ids by tag in top ids order //intersection of top ids list and ids by tag in top ids order
reviewIDs = getTopIDsFromStorage().filter(x => getIDsByTag(searchTag).includes(x)); reviewIDs = getTopIDsFromStorage().filter((x) => getIDsByTag(searchTag).includes(x));
} }
//top rated //top rated
else { else {
@ -104,36 +99,36 @@ function sortAndFilter(searchTag){
* @param {number} index review index to begin with * @param {number} index review index to begin with
* @param {number[]} reviewIDs ordered array of reviews * @param {number[]} reviewIDs ordered array of reviews
*/ */
function loadReviews(index, reviewIDs){ function loadReviews(index, reviewIDs) {
let reviewBox = document.getElementById("review-container"); let reviewBox = document.getElementById("review-container");
// label if there are no reviews to display // label if there are no reviews to display
if(reviewIDs.length == 0){ if (reviewIDs.length == 0) {
let emptyLabel = document.createElement("label"); let emptyLabel = document.createElement("label");
emptyLabel.setAttribute("id", "empty"); emptyLabel.setAttribute("id", "empty");
emptyLabel.innerText = "No Reviews To Display"; emptyLabel.innerText = "No Reviews To Display";
reviewBox.append(emptyLabel); reviewBox.append(emptyLabel);
} else { } else {
let emptyLabel = document.getElementById("empty"); let emptyLabel = document.getElementById("empty");
if(emptyLabel){ if (emptyLabel) {
reviewBox.removeChild(emptyLabel); reviewBox.removeChild(emptyLabel);
} }
} }
let moreBtn = document.getElementById("more-btn"); let moreBtn = document.getElementById("more-btn");
//delete load more button if exists //delete load more button if exists
if(moreBtn){ if (moreBtn) {
reviewBox.removeChild(moreBtn); reviewBox.removeChild(moreBtn);
} }
let reviewArr = []; let reviewArr = [];
//check if there are more than 9 reviews left //check if there are more than 9 reviews left
if(index + 9 > reviewIDs.length - 1){ if (index + 9 > reviewIDs.length - 1) {
//add remaining reviews to review container //add remaining reviews to review container
for(let i = index; i < reviewIDs.length; i++){ for (let i = index; i < reviewIDs.length; i++) {
reviewArr.push(getReviewFromStorage(reviewIDs[i])); reviewArr.push(getReviewFromStorage(reviewIDs[i]));
} }
addReviewsToDocument(reviewArr); addReviewsToDocument(reviewArr);
} else { } else {
//add 9 more reviews to container //add 9 more reviews to container
for(let i = index; i < index + 9; i++){ for (let i = index; i < index + 9; i++) {
reviewArr.push(getReviewFromStorage(reviewIDs[i])); reviewArr.push(getReviewFromStorage(reviewIDs[i]));
} }
addReviewsToDocument(reviewArr); addReviewsToDocument(reviewArr);
@ -142,16 +137,17 @@ function loadReviews(index, reviewIDs){
moreBtn.setAttribute("id", "more-btn"); moreBtn.setAttribute("id", "more-btn");
moreBtn.innerText = "Load More"; moreBtn.innerText = "Load More";
//if load more clicked, load 9 more //if load more clicked, load 9 more
moreBtn.addEventListener("click", function(){loadReviews(index + 9, reviewIDs);}); moreBtn.addEventListener("click", function () {
loadReviews(index + 9, reviewIDs);
});
reviewBox.append(moreBtn); reviewBox.append(moreBtn);
} }
} }
const registerServiceWorker = async () => { const registerServiceWorker = async () => {
if ("serviceWorker" in navigator) { if ("serviceWorker" in navigator) {
try { try {
await navigator.serviceWorker.register("./sw.js", {scope: "./"}); await navigator.serviceWorker.register("./sw.js", { scope: "./" });
} catch (error) { } catch (error) {
console.error(`Registration failed with ${error}`); console.error(`Registration failed with ${error}`);
} }

View File

@ -1,64 +1,65 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Food Journal</title> <title>Food Journal</title>
<!--Add Favicon--> <!--Add Favicon-->
<link rel="icon" type="image/x-icon" href="./assets/images/favicon.ico"> <link rel="icon" type="image/x-icon" href="./assets/images/favicon.ico" />
<!-- Recipe Card Custom Element --> <!-- Recipe Card Custom Element -->
<script src="assets/scripts/ReviewCard.js" type="module"></script> <script src="assets/scripts/ReviewCard.js" type="module"></script>
<!-- Main Stylesheets & Scripts --> <!-- Main Stylesheets & Scripts -->
<!-- Temporarily commented out reset.css due to furthur discussion needed on the values of the default config--> <!-- Temporarily commented out reset.css due to furthur discussion needed on the values of the default config-->
<!-- <link rel="stylesheet" href="/static/reset.css" /> --> <!-- <link rel="stylesheet" href="/static/reset.css" /> -->
<link rel="stylesheet" href="./static/homepage.css" /> <link rel="stylesheet" href="./static/homepage.css" />
<script src="assets/scripts/main.js" type="module"></script> <script src="assets/scripts/main.js" type="module"></script>
</head> </head>
<body> <body>
<header> <header>
<div class="top-bar"> <div class="top-bar">
<img src="./assets/images/Logo.png" alt="logo" /> <img src="./assets/images/Logo.png" alt="logo" />
<h1> Food Journal </h1> <h1>Food Journal</h1>
<img src="./assets/images/Logo.png" alt="logo" /> <img src="./assets/images/Logo.png" alt="logo" />
</div>
</header>
<main>
<div class="body-container">
<div style="width: 20%;"></div>
<div style="width: 60%;">
<div class="search-bar">
<form id="form">
<label for="sort">Sorting Method:</label>
<select id="sort">
<option value="recent">Most Recent</option>
<option value="top">Top Rated</option>
</select>
<input type="search" id="search-bar" name="searchBar" placeholder="Search tags...">
<button id="clear-search">Clear Search</button>
</form>
<img src="./assets/images/search_button.png" alt="SEARCH BTN" id="search-btn" />
</div>
<div class="center-display">
<img src="./assets/images/create_button.png" alt="CREATE" id="create-btn" title="Add an entry!"
onclick="window.location.assign('./CreatePage.html')" />
<h2 id="recent-reviews-text"> Recent Reviews </h2>
<img src="./assets/images/create_button.png" id="create-btn-invis" draggable="false" />
</div>
<div class="review-container" id="review-container"></div>
</div> </div>
<div style="width: 20%;"> </header>
</div> <main>
</div> <div class="body-container">
</main> <div style="width: 20%"></div>
</body> <div style="width: 60%">
<div class="search-bar">
<form id="form">
<label for="sort">Sorting Method:</label>
<select id="sort">
<option value="recent">Most Recent</option>
<option value="top">Top Rated</option>
</select>
<input type="search" id="search-bar" name="searchBar" placeholder="Search tags..." />
<button id="clear-search">Clear Search</button>
</form>
<img src="./assets/images/search_button.png" alt="SEARCH BTN" id="search-btn" />
</div>
<div class="center-display">
<img
src="./assets/images/create_button.png"
alt="CREATE"
id="create-btn"
title="Add an entry!"
onclick="window.location.assign('./CreatePage.html')"
/>
<h2 id="recent-reviews-text">Recent Reviews</h2>
<img src="./assets/images/create_button.png" id="create-btn-invis" draggable="false" />
</div>
<div class="review-container" id="review-container"></div>
</div>
<div style="width: 20%"></div>
</div>
</main>
</body>
</html> </html>

View File

@ -48,7 +48,8 @@ input[type="text"]:focus {
} }
.hidden, .hidden,
.rating:not(:checked) > input { /* Hide radio circles while star rating */ .rating:not(:checked) > input {
/* Hide radio circles while star rating */
display: none; display: none;
} }

View File

@ -26,7 +26,7 @@ const ASSETS = [
"assets/scripts/localStorage.js", "assets/scripts/localStorage.js",
"assets/scripts/main.js", "assets/scripts/main.js",
"assets/scripts/ReviewCard.js", "assets/scripts/ReviewCard.js",
"assets/scripts/ReviewDetails.js" "assets/scripts/ReviewDetails.js",
]; ];
/** /**
@ -46,18 +46,22 @@ self.addEventListener("install", async () => {
*/ */
self.addEventListener("fetch", (event) => { self.addEventListener("fetch", (event) => {
// add a response to the fetch event // add a response to the fetch event
event.respondWith(caches.open(CACHE_NAME).then((cache) => { event.respondWith(
// try to return a network fetch response caches.open(CACHE_NAME).then((cache) => {
return fetch(event.request).then((fetchedResponse) => { // try to return a network fetch response
// if there is a response, add it to the cache return fetch(event.request)
cache.put(event.request, fetchedResponse.clone()); .then((fetchedResponse) => {
// return the network response // if there is a response, add it to the cache
return fetchedResponse; cache.put(event.request, fetchedResponse.clone());
}).catch(() => { // return the network response
// If there is not a network response, return the cached response return fetchedResponse;
// The ignoreVary option is used here to fix an issue where the service worker })
// would not serve certain requests unless the page was refreshed at least once .catch(() => {
return cache.match(event.request, {ignoreVary: true, ignoreSearch: true}); // If there is not a network response, return the cached response
}); // The ignoreVary option is used here to fix an issue where the service worker
})); // would not serve certain requests unless the page was refreshed at least once
return cache.match(event.request, { ignoreVary: true, ignoreSearch: true });
});
})
);
}); });

View File

@ -1,16 +1,20 @@
# Final Project Topic Decision # Final Project Topic Decision
- Status: accept
- Deciders: team members and TA - Status: accept
- Date: 10 / 27 / 22 - Deciders: team members and TA
- Date: 10 / 27 / 22
## Decision Drivers ## Decision Drivers
- Needed to develop a local-first, CRUD application that would be simple enough to implement in the next few weeks
- Needed to develop a local-first, CRUD application that would be simple enough to implement in the next few weeks
## Considered Options: ## Considered Options:
- Social Media Archive
- Resume Builder - Social Media Archive
- Copy/Paste - Resume Builder
- Food Journal - Copy/Paste
- Food Journal
## Decision Outcome ## Decision Outcome
Chosen Option: Food Journal, which allows users to hold their thoughts and ratings on meals and restaurants that they have been to. It is local-first, CRUD app, and fun. Therefore, we decided to choose this. Chosen Option: Food Journal, which allows users to hold their thoughts and ratings on meals and restaurants that they have been to. It is local-first, CRUD app, and fun. Therefore, we decided to choose this.

View File

@ -1,15 +1,19 @@
# Finalized App Design on Figma # Finalized App Design on Figma
- Status: accept
- Deciders: Isaac Otero - Status: accept
- Date: 11 / 08 / 22 - Deciders: Isaac Otero
- Date: 11 / 08 / 22
## Decision Drivers: ## Decision Drivers:
- Needed to figure out the wireframe and flow of our app
- Needed to visualize the different features - Needed to figure out the wireframe and flow of our app
- Needed to visualize the different features
## Considered Option: ## Considered Option:
- Different feature option
- Color Scheme, font, spacing, and other design options were discussed - Different feature option
- Color Scheme, font, spacing, and other design options were discussed
## Decision Outcome: ## Decision Outcome:
- Chosen Option: Design can be found at this link: https://www.figma.com/file/Qhugp1Dd0gPnJTbmmUIvsa/Wireframe?node-id=36%3A2
- Chosen Option: Design can be found at this link: https://www.figma.com/file/Qhugp1Dd0gPnJTbmmUIvsa/Wireframe?node-id=36%3A2

View File

@ -1,18 +1,18 @@
# Use multiple CI/CD pipelines in parallel # Use multiple CI/CD pipelines in parallel
- Status: accept - Status: accept
- Deciders: Arthur Lu, Marc Reta - Deciders: Arthur Lu, Marc Reta
- Date: 11 / 12 / 22 - Date: 11 / 12 / 22
## Decision Drivers ## Decision Drivers
- Need to perform many different CI/CD tasks - Need to perform many different CI/CD tasks
- Need pipeline to be durable against any single failure - Need pipeline to be durable against any single failure
## Considered Options ## Considered Options
- Single deep pipeline - Single deep pipeline
- Multiple short pipelines in parallel - Multiple short pipelines in parallel
## Decision Outcone ## Decision Outcone

View File

@ -1,18 +1,18 @@
# Use eslint for JS linting framework # Use eslint for JS linting framework
- Status: accept - Status: accept
- Deciders: Arthur Lu, Marc Reta - Deciders: Arthur Lu, Marc Reta
- Date: 11 / 12 / 22 - Date: 11 / 12 / 22
## Decision Drivers ## Decision Drivers
- Need linting to work with multiple style standards - Need linting to work with multiple style standards
- Need linting to be fast and informative - Need linting to be fast and informative
## Considered Options ## Considered Options
- JSLint - JSLint
- eslint - eslint
## Decision Outcome ## Decision Outcome

View File

@ -1,18 +1,19 @@
# Use mocha for JS unit testing framework # Use mocha for JS unit testing framework
- Status: accept - Status: accept
- Deciders: Arthur Lu, Marc Reta - Deciders: Arthur Lu, Marc Reta
- Date: 11 / 12 / 22 - Date: 11 / 12 / 22
## Decision Drivers ## Decision Drivers
- Need specification on how to write unit testing assertion statements - Need specification on how to write unit testing assertion statements
- Need framework to perform unit testing quickly for immediate code feedback - Need framework to perform unit testing quickly for immediate code feedback
## Considered Options ## Considered Options
- JUnit5
- Jest - JUnit5
- Mocha - Jest
- Mocha
## Decision Outcome ## Decision Outcome

View File

@ -1,18 +1,18 @@
# Use Stylelint for CSS linting framework # Use Stylelint for CSS linting framework
- Status: accept - Status: accept
- Deciders: Arthur Lu, Marc Reta - Deciders: Arthur Lu, Marc Reta
- Date: 11 / 14 / 22 - Date: 11 / 14 / 22
## Decision Drivers ## Decision Drivers
- Need linting to work with multiple style standards - Need linting to work with multiple style standards
- Need linting to be fast and informative - Need linting to be fast and informative
## Considered Options ## Considered Options
- Stylelint - Stylelint
- Prettier - Prettier
## Decision Outcome ## Decision Outcome

View File

@ -1,18 +1,18 @@
# Use HTMLhint for HTML linting framework # Use HTMLhint for HTML linting framework
- Status: accept - Status: accept
- Deciders: Arthur Lu, Marc Reta - Deciders: Arthur Lu, Marc Reta
- Date: 11 / 14 / 22 - Date: 11 / 14 / 22
## Decision Drivers ## Decision Drivers
- Need linting to work with multiple style standards - Need linting to work with multiple style standards
- Need linting to be fast and informative - Need linting to be fast and informative
## Considered Options ## Considered Options
- HTMLhint - HTMLhint
- HTML-validate - HTML-validate
## Decision Outcome ## Decision Outcome

View File

@ -1,18 +1,19 @@
# Use puppeteer for JS unit testing framework # Use puppeteer for JS unit testing framework
- Status: accept - Status: accept
- Deciders: Arthur Lu, Marc Reta - Deciders: Arthur Lu, Marc Reta
- Date: 11 / 16 / 22 - Date: 11 / 16 / 22
## Decision Drivers ## Decision Drivers
- Need end to end testing framework which runs headlessly and quickly - Need end to end testing framework which runs headlessly and quickly
- Framework should integrate well with Mocha, the existing unit testing framework - Framework should integrate well with Mocha, the existing unit testing framework
- Framework should be easy to implement end to end tests with - Framework should be easy to implement end to end tests with
## Considered Options ## Considered Options
- puppeteer
- selenium-webdriver - puppeteer
- selenium-webdriver
## Decision Outcome ## Decision Outcome

View File

@ -1,16 +1,17 @@
# Use JSDoc for JS documentation # Use JSDoc for JS documentation
- Status: accept - Status: accept
- Deciders: Arthur Lu, Marc Reta - Deciders: Arthur Lu, Marc Reta
- Date: 11 / 29 / 22 - Date: 11 / 29 / 22
## Decision Drivers ## Decision Drivers
- Need simple way to publish documentation for code - Need simple way to publish documentation for code
- Already documentating infile using JSDoc style - Already documentating infile using JSDoc style
## Considered Options ## Considered Options
- JSDoc
- JSDoc
## Decision Outcome ## Decision Outcome

View File

@ -1,16 +1,17 @@
# Use Prettier for generic style enforcement # Use Prettier for generic style enforcement
- Status: accept - Status: accept
- Deciders: Arthur Lu, Marc Reta - Deciders: Arthur Lu, Marc Reta
- Date: 11 / 29 / 22 - Date: 11 / 29 / 22
## Decision Drivers ## Decision Drivers
- Other linters (HTML, CSS, JS) are sometimes too permissive - Other linters (HTML, CSS, JS) are sometimes too permissive
- Need to enforce style on other files like markdown, json - Need to enforce style on other files like markdown, json
## Considered Options ## Considered Options
- Prettier
- Prettier
## Decision Outcome ## Decision Outcome

View File

@ -1,15 +1,19 @@
# Backend Storage Structure # Backend Storage Structure
- Status: Accept
- Deciders: Rhea Bhutada, Kara Hoagland, Gavyn Ezell, George Dubinin, Henry Feng - Status: Accept
- Date: 11/29/2022 - Deciders: Rhea Bhutada, Kara Hoagland, Gavyn Ezell, George Dubinin, Henry Feng
- Date: 11/29/2022
## Decision Drivers ## Decision Drivers
- Needed more efficient way of storing reviews that are created, for more efficient testing, updating, accessing, and deleting.
- Needed more efficient way of storing reviews that are created, for more efficient testing, updating, accessing, and deleting.
## Considered Options ## Considered Options
- localStorage
- localStorage
## Decision Outcome ## Decision Outcome
Using local storage to maintain the "local first" requirement. Using local storage to maintain the "local first" requirement.
Moved away from array of objects for storing reviews, reviews are stored individually as keys in localStorage, under the "review{id}" format. Each key Moved away from array of objects for storing reviews, reviews are stored individually as keys in localStorage, under the "review{id}" format. Each key
corresponds to object containing review data. We also have an array stored in local storage, named "activeIDs" which keeps track of id numbers that are attached corresponds to object containing review data. We also have an array stored in local storage, named "activeIDs" which keeps track of id numbers that are attached

View File

@ -1,15 +1,18 @@
# Opening Specific Reviews # Opening Specific Reviews
- Status: Accept
- Deciders: Rhea Bhutada, Kara Hoagland, Gavyn Ezell, George Dubinin, Henry Feng - Status: Accept
- Date: 11/29/2022 - Deciders: Rhea Bhutada, Kara Hoagland, Gavyn Ezell, George Dubinin, Henry Feng
- Date: 11/29/2022
## Decision Drivers ## Decision Drivers
- When opening up a review, browser needs to know what review ID to use for loading the review page data
- When opening up a review, browser needs to know what review ID to use for loading the review page data
## Considered Options ## Considered Options
- sessionStorage
- sessionStorage
## Decision Outcome ## Decision Outcome
Review cards have event listeners that will add their associated review ID number to session storage so Review cards have event listeners that will add their associated review ID number to session storage so
when the review loads, the browser will use the id stored to pull exact data corresponding to the review. when the review loads, the browser will use the id stored to pull exact data corresponding to the review.

View File

@ -1,13 +1,17 @@
# Organizing Review Under Tags # Organizing Review Under Tags
- Status: Accept
- Deciders: Rhea Bhutada, Kara Hoagland, Gavyn Ezell, George Dubinin, Henry Feng - Status: Accept
- Date: 11/29/2022 - Deciders: Rhea Bhutada, Kara Hoagland, Gavyn Ezell, George Dubinin, Henry Feng
- Date: 11/29/2022
## Decision Drivers ## Decision Drivers
- Needed to keep track of reviews under certain given tags for filtering feature.
- Needed to keep track of reviews under certain given tags for filtering feature.
## Considered Options ## Considered Options
- localStorage
- localStorage
## Decision Outcome ## Decision Outcome
For every tag create a key under that tag name in localStorage. They will store an array of IDs that correspond to reviews that contain that tag. For every tag create a key under that tag name in localStorage. They will store an array of IDs that correspond to reviews that contain that tag.

View File

@ -1,18 +1,19 @@
# Use a network first cache second for service worker architecture # Use a network first cache second for service worker architecture
- Status: in consideration - Status: in consideration
- Deciders: Arthur Lu, Kara Hoagland, Rhea Bhutada, George Dubinin - Deciders: Arthur Lu, Kara Hoagland, Rhea Bhutada, George Dubinin
- Date: 12 / 01 / 22 - Date: 12 / 01 / 22
## Decision Drivers ## Decision Drivers
- Need to balance the need for user ease of use and local first priority - Need to balance the need for user ease of use and local first priority
- Users should expect to update their app easily when they have network, but may not be expected to know how to perform a hard refresh - Users should expect to update their app easily when they have network, but may not be expected to know how to perform a hard refresh
- Local first priority means we should avoid unnecessary network activity when possible - Local first priority means we should avoid unnecessary network activity when possible
## Considered Options ## Considered Options
- Network first cache second
- Cache first network second - Network first cache second
- Cache first network second
## Decision Outcome ## Decision Outcome

View File

@ -1,2 +1,3 @@
# Overarching Decisions # Overarching Decisions
_We will eventually capture these as an ADR in markdown Links to an external site.(/specs/adrs will contain an individual document per major decision. There will be some initial ones that have to do with general project plan and approach, but more may be added as the project goes on. The main point of this capture is to explain why choices are made. As brainstorming may have your team settle on choices quickly capturing them in a document may be better than just mental consensus)_
_We will eventually capture these as an ADR in markdown Links to an external site.(/specs/adrs will contain an individual document per major decision. There will be some initial ones that have to do with general project plan and approach, but more may be added as the project goes on. The main point of this capture is to explain why choices are made. As brainstorming may have your team settle on choices quickly capturing them in a document may be better than just mental consensus)_

View File

@ -1,64 +1,75 @@
# App Pitch - Food Journal # App Pitch - Food Journal
## Summary ## Summary
<p> <p>
Our pitch is an app that allows users to store information about their recent restaurant experiences, including the restaurant name, location, date, dish, picture of the food, price, comments, ratings, etc. This app will allow individuals to document their food habits and track past meals. The app will then provide suggestions based on the users preferences and habits. Our pitch is an app that allows users to store information about their recent restaurant experiences, including the restaurant name, location, date, dish, picture of the food, price, comments, ratings, etc. This app will allow individuals to document their food habits and track past meals. The app will then provide suggestions based on the users preferences and habits.
</p> </p>
## Narrowing Down the Problem ## Narrowing Down the Problem
<p> <p>
People dont have a place to reflect on their food adventures. Whether its trying a new cuisine or looking into new restaurants, it is useful for people to have a place to record their restaurant experiences. In our research, we found that there is no app designed for people to journal their food related experiences and we feel that this app will offer a new and exciting avenue for people to enjoy and reflect on their meals. People dont have a place to reflect on their food adventures. Whether its trying a new cuisine or looking into new restaurants, it is useful for people to have a place to record their restaurant experiences. In our research, we found that there is no app designed for people to journal their food related experiences and we feel that this app will offer a new and exciting avenue for people to enjoy and reflect on their meals.
</p> </p>
## How is it CRUD? ## How is it CRUD?
* Create: Users create reviews of specific foods at any restaurant
* Read: Users read reviews that theyve created - Create: Users create reviews of specific foods at any restaurant
* Update: Users update their reviews when their ideas change about the food - Read: Users read reviews that theyve created
* Delete: Users may delete their reviews - Update: Users update their reviews when their ideas change about the food
- Delete: Users may delete their reviews
## Visual Representation ## Visual Representation
- User Flow Diagram:
- User Flow Diagram:
<img src="./diagram.png"></img> <img src="./diagram.png"></img>
- Home Page: Users sees all their reviews and can perform CRUD actions - Home Page: Users sees all their reviews and can perform CRUD actions
<img src="./wireframes/home_page_wireframe.PNG"></img> <img src="./wireframes/home_page_wireframe.PNG"></img>
- Review Page: User can see an induvidual review that they created previously - Review Page: User can see an induvidual review that they created previously
<img src="./wireframes/read_review_wireframe.PNG"></img> <img src="./wireframes/read_review_wireframe.PNG"></img>
- Create New Entry Page: new page with a form is opened up - Create New Entry Page: new page with a form is opened up
<img src="./wireframes/new_entry_wireframe.PNG"></img> <img src="./wireframes/new_entry_wireframe.PNG"></img>
## User Personas ## User Personas
### Persona 1: Tom ### Persona 1: Tom
Tom would often face the issue of not knowing where he should go for his next meal. As someone who is new to the town, Tom does not know the restaurants around his place by heart, let alone the details on each restaurant like the price range, cuisine, and specific dishes likes and dislikes.<br>Toms problem is one that can be solved by our app. Whenever he visits a restaurant, he can use our app to note down any relevant information from that visit. And when Tom would need help on deciding where to eat, he can refer to the notes on his food journal to help him make that decision. Tom would often face the issue of not knowing where he should go for his next meal. As someone who is new to the town, Tom does not know the restaurants around his place by heart, let alone the details on each restaurant like the price range, cuisine, and specific dishes likes and dislikes.<br>Toms problem is one that can be solved by our app. Whenever he visits a restaurant, he can use our app to note down any relevant information from that visit. And when Tom would need help on deciding where to eat, he can refer to the notes on his food journal to help him make that decision.
### Persona 2: Ben ### Persona 2: Ben
Ben is trying to make sure that he watches what he eats. He doesnt mind eating somewhere unhealthy once in a while, but he wants to make sure the majority of his purchasing decisions are healthy.<br>If Ben uses our app, he can place tags on the meals he eats depending on whether theyre healthy or unhealthy. Then, he can look back over the past weeks and months and make sure he hasnt been eating at too many unhealthy places. If hes ever looking for something to eat, he can filter by tags on the app to find only healthy places that hes given high ratings to in the past. This way, he can stay consistent with his dieting goals. Ben is trying to make sure that he watches what he eats. He doesnt mind eating somewhere unhealthy once in a while, but he wants to make sure the majority of his purchasing decisions are healthy.<br>If Ben uses our app, he can place tags on the meals he eats depending on whether theyre healthy or unhealthy. Then, he can look back over the past weeks and months and make sure he hasnt been eating at too many unhealthy places. If hes ever looking for something to eat, he can filter by tags on the app to find only healthy places that hes given high ratings to in the past. This way, he can stay consistent with his dieting goals.
### Persona 3: Claire ### Persona 3: Claire
Claire noticed that shes spending more than she would like to on eating out and made a resolution to try to budget how much shes spending on restaurants. Claire has a general idea of the restaurants in her area, but its difficult to keep track of the details of each location.<br>If Claire uses this app, she can note down the price of each food she tries when eating out and how she thought that the quality compared to the price with her budget in mind. She can narrow down foods that she finds worth the price. When craving a certain type of food, Claire can also look for cheaper options in the same category of cuisine based on her previous entries. Claire noticed that shes spending more than she would like to on eating out and made a resolution to try to budget how much shes spending on restaurants. Claire has a general idea of the restaurants in her area, but its difficult to keep track of the details of each location.<br>If Claire uses this app, she can note down the price of each food she tries when eating out and how she thought that the quality compared to the price with her budget in mind. She can narrow down foods that she finds worth the price. When craving a certain type of food, Claire can also look for cheaper options in the same category of cuisine based on her previous entries.
# Similar Apps and Competition # Similar Apps and Competition
* Social media allows users to technically post their own food reviews (food accounts, food review posts), but sites are not specialized for food reviews
* Yelp known for specifically food, but still branches - Social media allows users to technically post their own food reviews (food accounts, food review posts), but sites are not specialized for food reviews
* Our app differs in scope (focus on food exclusively) - Yelp known for specifically food, but still branches
* Our app offers food review-specific features like specialized templates and formats - Our app differs in scope (focus on food exclusively)
- Our app offers food review-specific features like specialized templates and formats
# Statement of Purpose # Statement of Purpose
Ultimately, the purpose of this app is to allow users to keep a food diary. Having a place that allows individuals to journal their favorite meals, restaurants, cuisines, pictures, and more can be beneficial for people who are looking to know more about their eating habits and tendencies as well as try out new foods. Ultimately, the purpose of this app is to allow users to keep a food diary. Having a place that allows individuals to journal their favorite meals, restaurants, cuisines, pictures, and more can be beneficial for people who are looking to know more about their eating habits and tendencies as well as try out new foods.
# Risks and Rabbit Holes # Risks and Rabbit Holes
* Technical Unkowns
* How to implement CRUD related features? - Technical Unkowns
* Is there a limit to storage? How to store large amounts of data locally? - How to implement CRUD related features?
* Unsolved Design Problems: - Is there a limit to storage? How to store large amounts of data locally?
* What features we want to prioritize? - Unsolved Design Problems:
* How much data will be collecting? - What features we want to prioritize?
* How many fields should we have for each meal? - How much data will be collecting?
* Misunderstood Interdependencies: - How many fields should we have for each meal?
* N/A - Misunderstood Interdependencies:
- N/A