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

Comments #477

Merged
merged 8 commits into from
Oct 27, 2023
Merged

Comments #477

merged 8 commits into from
Oct 27, 2023

Conversation

yangleyland
Copy link
Contributor

Description

comments section components for the send comment and a comment
havent yet made the components take in input so no functionality

@vercel
Copy link

vercel bot commented Sep 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pointr ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 27, 2023 11:27pm
6 Ignored Deployments
Name Status Preview Comments Updated (UTC)
dashboard ⬜️ Ignored (Inspect) Visit Preview Oct 27, 2023 11:27pm
interim ⬜️ Ignored (Inspect) Visit Preview Oct 27, 2023 11:27pm
recruitment ⬜️ Ignored (Inspect) Visit Preview Oct 27, 2023 11:27pm
sso ⬜️ Ignored (Inspect) Visit Preview Oct 27, 2023 11:27pm
ui-kit-2023-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 27, 2023 11:27pm
www-2023 ⬜️ Ignored (Inspect) Visit Preview Oct 27, 2023 11:27pm

@VictiniX888 VictiniX888 changed the base branch from main to podium September 14, 2023 03:21
@VictiniX888 VictiniX888 requested review from VictiniX888 and removed request for vuvincent September 14, 2023 03:23
Copy link
Contributor

@VictiniX888 VictiniX888 left a comment

Choose a reason for hiding this comment

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

Can't wait to see how it looks with dynamic props!

Copy link
Contributor

Choose a reason for hiding this comment

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

Move this comment folder into /components/

`;
const OuterContainer = styled.div`
width: 355px;
background: #161616;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Extract this (and all other colors) out into a const (ideally shared between components) so that we don't have random hex codes littered around the css

const Name = styled.p`
color: #9d9d9d;
font-family: SF Pro Text;
font-size: 17px;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Use relative units (rem or em) for all font-size, and margin/padding where suitable

* Note: The corresponding styles are in the ./index.scss file.
*/
return (
<PhoneScreen>
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add another div outside so that the background color is shown across the entire page instead of just the small strip

padding: 30px;
justify-content: flex-start;
gap: 40px;
`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Make this div centered horizontally by adding margin: 0 auto

@yangleyland
Copy link
Contributor Author

Changed to fit the new style, so I made it white

Can post comments, not sure where to get the user ID and project ID from so I had those hardcoded, but I’m assuming those can be retrieved from cookies so I can add that functionality later when specified

Need to change how the api works so that one user can post multiple comments, how it is right now is that once a new user posts, it just overwrites that comment

@VictiniX888 VictiniX888 changed the base branch from podium to rory/podium-fixed October 27, 2023 23:19
@VictiniX888 VictiniX888 merged commit 04be0b5 into rory/podium-fixed Oct 27, 2023
@VictiniX888 VictiniX888 deleted the comments branch October 27, 2023 23:25
VictiniX888 added a commit that referenced this pull request Nov 4, 2023
* Initialize Podium app and service

* Update poetry.lock

* Setup Podium DB

* Setup sqlalchemy and pydantic

* Implement podium service endpoints

* Set up docker container for db and assoc nx commands

* Add vertical admin endpoints

* Refactor to Chalice + CockroachDB

* Update README with run instructions

* Use UUID for project and vertical IDs instead of serial

* Return vertical details in project details

* Add endpoint to get all projects

* Add endpoint to get all rankings

* Add endpoint to unlock rankings

* Add video_url field to Projects

* temp add projects api

* Fix misc bugs and improvements

* Include vertical name and ID in each project for get rankings for judge
* Include description and videoUrl in each project for get all projects
* Add vertical as field in request for update project details to allow changing verticals
* Fix unlock vertical endpoint to not error due to not returning any rows
* Delete final rankings when unlocking vertical to allow locking again
* Add endpoint to get lock state of vertical

* Fix /ranking endpoint error, fix lock rankings not addign final rankings

* Fix delete lock would delete all final rankings

* Add currentRank to get project

* add add_projects route, fix logic in add_projects api

* Fix add_projects api

* Add judge and comments tables, add comments endpoints

* Fix error on installing dependencies for podium-service

* Pin nixpkgs to latest staging-next with updated typing-extensions

* Implement judge endpoints

* Set up vanilla-extract for podium

* Initialize podium front end

* Clean up code and connect judge API

* Fix crash on slideroom

* Fix slideroom visual bug

* Added a sortable context around the spotlight project
* Kept a separate local state for ranked and unranked projects
* Remove active spotlight project from local list of projects
* Then add onDragOver, then the spotlight project is first dragged over the project bar we add it back to the list?
* Also changed the collision detection algorithm in dndcontext to use closestCorners

* Add comments page for Judging Portal (#477)

* basic comments section --no functionality

* working with api

* small fixes

* post request and style changes

* Make page responsive, show comment input only when press button

* Fix get comments to show name

* Allow users to post multiple comments

* Integrate comments page with user and project context, attempt to fix slideroom desktop...?

* Initialize judge fake user logic

* Change format for add projects in bulk endpoints for retool

* Extract image from video thumbnail

* Fix bulk add projects endpoint crashing

* Show youtube thumbnail correctly

* Fix compile issues

Huh

* Add endpoint to unrank projects

* Implement new project detail design

* Add RBAC to podium service

* Revise protected endpoints

* Basic On Hold system with bug

* Add master auth token method

* Fix dragging out of on hold

* Fix dragging from on hold to #1

* Fix drag when all are unranked bug

* Clean up code

* Improve UI

* Fix dragging unranked into ranked

* Fix dragging from on hold to unranked

But cannot drag again after

* Fix compile errors

* Improve mobile UI

* Implement comments with Link

* Fix haptic touch bug

* Improve comments UI and minor cursor changes

* Create search feature

* Change details CSS to shared modal

* Fix rank to second unranked bug

* Show yt thumbnail on on hold preview and project details

* Fix compile error

* Improve mobile responsiveness

* Return all project info in get_all_projects_in_vertical

* Pass auth token to API calls

* Update getProjects with new API structure

* Add RBAC for podium frontned

Only judges can enter the website

* Add RBAC for comments page too

* Fix error when deleting projects, and correctly reassign ranking when changing project vertical

* Add judging criteria

* Remove search, move question mark button to top bar, fix project names not showing up

---------

Co-authored-by: Benran Zhang <[email protected]>
Co-authored-by: roryvisuals <[email protected]>
Co-authored-by: Leyland Yang <[email protected]>
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.

2 participants