Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Justinxue/phs 42 news feed backend #40

Closed
wants to merge 95 commits into from

Conversation

jxmoose
Copy link
Collaborator

@jxmoose jxmoose commented Mar 8, 2024

✨ New in this PR ✨

One liner: what did you do? 🛠

Created news table in supabase and created frontend to display it

Coverage 🙆‍♀️

use this section to break up your task into submodules and track progress, copy from Linear and mark what was completed

  • Create a supabase table titles ‘news’
  • Write create, update, and delete queries for the news table
  • Add functions on Retool - ask @ miha
  • Populate front end from database so that it’s sorted by “created_at”

How can the reviewer test your code? Where is this sprint located in the codebase? 👩‍💻

Look at news feed page!
Component for each row is in src/components/userComponents/NewsDisplay/NewsDisplay.tsx
Overall page is src/app/newsFeedPage/page.tsx

REQUIRED: Link a short video demo of the feature you have added. 👩‍💻

https://www.loom.com/share/3de33afebd89437c933fbc7088426ff1?sid=f2351b7f-5b77-49f5-a873-9711fb006d0e

Any bugs you encountered or still having trouble with? 🐛

Resources 📔

REQUIREMENTS in this section: Link all relevant online resources and related PRs. Write down any new dependencies or packages and link to their documentation. If you ran into bugs, link any stack overflow or online resources that helped you unblock yourself

New dependency Moment.js https://momentjs.com. Basically used to format timestamp in supabase into a readable format (i.e. March 2, 2024).

❗IF this sprint was marked as FRONTEND on linear, cc Claire Wang

@cluurie
REMEMBER: once PR is made, also request a PR review Sarah, CC'ing is NOT enough!
🏚 cc: @sarahhpeng @andreisito

Copy link

linear bot commented Mar 8, 2024

PHS-42 News Feed

andreisito and others added 27 commits March 10, 2024 15:05
* styling ok on phones

* updated types

* fixed global styling

* config fix

* feat: Global styling + Welcome graphic on home screen

* feat: basic frontend for spotlight carousel

* feat: basic visitor resources buttons

* feat: routing from home page buttons added, WIP: bugs with rpc function

* chore: added docs to pages

* fix: changed styling for other phone screens

* rpc functions added

* feat: rpc function added to media spotlights on home page

* chore: commented out related spotlight for now

* style: changed div styling to meet tailwind conventions + base styling

* chore: extra changes from supabase types sync

* chore: removed console logs

* chore: prettier script

* chore: supabase types changed again

* fix: incorrect function call + extra console log removed

* style: fixing the spacing on the visitor resources buttons

* chore: supabase sync

* chore: comment fix

* feat: fixed some styling, added routing to the wildlife carousel

* chore: supabase sync

* feat: updated to match RPC DB func changes

* chore: removed unnecessary useEffect

* chore: removed imports

---------

Co-authored-by: sarahhpeng <[email protected]>
* ra

* fix phs 26 changed display.id to otherDisplay.id

* raaaaa

* phs-37 is done

* changed settings josn

* Christophertorres/phs 36 featured tours image carousel (#37)

* feat: add buttons for navigating images

* add image carousel to tour displays

* fix: minor styling changes to meet larger text inputs

* feat: more linting

* feat: more linting II

* chore: pre-push reformatting

* feat: aggressive pre-commit checks

* feat: use lint-staged instead

* chore: updated types

* feat: run tsc on staged files

* chore

* feat: disabling github actions until MPH / post-MPH

* chore: prettier

* chore: disabled only the tsc compiler for now

* feat: disabling github actions for now

* Andrei/phs 25 home screen redo (#38)

* styling ok on phones

* updated types

* fixed global styling

* config fix

* feat: Global styling + Welcome graphic on home screen

* feat: basic frontend for spotlight carousel

* feat: basic visitor resources buttons

* feat: routing from home page buttons added, WIP: bugs with rpc function

* chore: added docs to pages

* fix: changed styling for other phone screens

* rpc functions added

* feat: rpc function added to media spotlights on home page

* chore: commented out related spotlight for now

* style: changed div styling to meet tailwind conventions + base styling

* chore: extra changes from supabase types sync

* chore: removed console logs

* chore: prettier script

* chore: supabase types changed again

* fix: incorrect function call + extra console log removed

* style: fixing the spacing on the visitor resources buttons

* chore: supabase sync

* chore: comment fix

* feat: fixed some styling, added routing to the wildlife carousel

* chore: supabase sync

* feat: updated to match RPC DB func changes

* chore: removed unnecessary useEffect

* chore: removed imports

---------

Co-authored-by: sarahhpeng <[email protected]>

* commit limits

* phs-37 is done

* donw with committing

* ra

* fix phs 26 changed display.id to otherDisplay.id

* raaaaa

* phs-37 is done

* commit limits

* phs-37 is done

* donw with committing

---------

Co-authored-by: sarah <[email protected]>
Co-authored-by: Chris Torres <[email protected]>
Co-authored-by: Andrei Tan <[email protected]>
Co-authored-by: sarahhpeng <[email protected]>
@sarahhpeng sarahhpeng requested a review from andreisito April 8, 2024 22:43
@cluurie
Copy link
Collaborator

cluurie commented Apr 9, 2024

DEZIN COMMENTS (finish by EOD 4/10 and text me) @jxmoose

  • fix back arrow (color, icon is different, border radius - refer to figma)
  • the news is not vertically in line with the "News Feed" page title - margins should be 18px for all content
  • the external link icon should be a different color and inspect size/line weight - should be smaller
  • the date subtext should be all caps
  • also inspect date subtext size and weight - not the same as the design file rn

PLS INSPECT EVERY ELEMENT FOR COLOR, DIMENSIONS, PADDING/MARGINS, LINE WEIGHT, FONT SIZE

@jxmoose jxmoose closed this Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants