-
Notifications
You must be signed in to change notification settings - Fork 11
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
collections page empty front-end look #940
collections page empty front-end look #940
Conversation
[diff-counting] Significant lines: 610. |
Visit the preview URL for this PR (updated for commit e179d25): https://cornelldti-courseplan-dev--pr940-hannah-collections-rg36z6dl.web.app (expires Tue, 26 Nov 2024 19:04:59 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 6d4e0437c4559ed895272bbd63991394f1e0e933 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job implementing the skeleton for this, looks in-line with the rest of the site! I picked up on a couple small Figma issues that would be good to have addressed, but as soon as you do those should be good to merge. Well done with SCSS and finding a relevant icon~
src/assets/images/dropdown.svg
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, we can just invert this with some CSS when toggling it.
</div> | ||
<div> | ||
<button class="dropdown-item-button"> | ||
<img src="@/assets/images/dropdown.svg" alt="open dropdown" class="hover-image" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually (or maybe even now, depending on the scope of your task?) we could make this reactive — on click change the alt and invert the image, with an associated reactive Vue state variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that makes sense once it becomes reactive. Another thing to consider is the change in color as well (it will become blue).
background: #587c91; | ||
} | ||
|
||
.top.header-title { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Figma designs have this title be bold, as does the dropdown-item-button
— could you add those updates in?
align-items: center; | ||
width: 226px; | ||
height: 17.126px; | ||
color: #3c3c3c; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you already imported the SASS variables, could we update this to use the $darkGray
variable?
@edit-plan="editPlan" | ||
@delete-plan="deletePlan" | ||
/> | ||
<button class="add-plan-button" @click="toggleAddPlan()">+ Add Plan</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look closely on the Figma you'll notice that the "+ Add Plan" button is slightly shorter and flex-centered horizontally with the My Plan search.
All the other navbars already do it the same way you do — this was not due to any change on your part. However we should probably consult with Joanna to make sure that it's fine to sidestep her designs like this.
<div class="sidebar"> | ||
<div class="sidebar-header"> | ||
<div class="separator-header"></div> | ||
<h1 class="top header-title">Collections</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a bit of misalignment with the Figma designs here, this text's bottom padding is a bit more than it should be (nitpicking).
}, | ||
emits: ['showTourEndWindow', 'toggleMinimized'], | ||
emits: ['showTourEndWindow', 'toggleMinimized'], // probably will remove emits with just using components |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you clarify what you meant here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry that's an old comment. Originally, I made an 'emit' to open the sidebar, then completely scratching that idea.
- added edit collection modal and text input collection modal - fixed front-end with trash can - fixed front-end with dropdown button and edit collection button
deleteCourseFromCollection() { | ||
this.deletingCourse = true; | ||
this.$emit('delete-course-from-collection', this.courseObj.code); | ||
// wait to allow deletion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another way to do this?
- fixed padding - fixed null issue
* add icon * fix icon * feature flag * fixed feature flags * collections page empty front-end look (#940) * added save-collection emit * create sidebar vue * connected dashboard and sidebar * finished empty front-end look * adjust hover * fixed positioning * update artifact version * added front-end look for saved courses in collection * fixed collectionsidebar css for frontend implementation * edit collection modal + front-end fixes - added edit collection modal and text input collection modal - fixed front-end with trash can - fixed front-end with dropdown button and edit collection button * frontend fixes - fixed padding - fixed null issue * added helper function in utilities * ran prettier * frontend fixes --------- Co-authored-by: Hannah Zhou <[email protected]> Co-authored-by: Hannah Zhou <[email protected]>
* [Saved Courses] add save modal (#912) * Change course menu to click state (#898) * add save button and icon * change position of save course button * added new Save Course Modal * added new Save Course Modal * added basic front-end look * re-edit teleport modal * fixed basic front-end look * renamed icon * fixed frontend alignment * fixed frontend alignment and file path * added feature flag for save course modal * fixed front-end bug and modal hierachy * change method and emit names --------- Co-authored-by: KaylinChan <[email protected]> * added collections in store. add backend methods and gtags * added basic functionality for save course - can save a course when press 'done' - course is saved to an empty collection - add functions for add & edit collection * fixed functionality for save courses to mutliple collections - can save one course to multiple collections w/ checkbox - saved course will be removed from semester view and from fullfilled requirements - pop up notification * finished backend and fixed frontend - finished scrollable checkbox frontend - fixed the bug for selecting a singular checkbox - believed its stored in firestore when added to collection - renamed collection to savedCourses for firesetore clarity * created editabilify for collection names - saveCourseModal allow user to name their new collections - moved scss into a separate file * fixed backend error and logic - added updateDoc in backend functions - made edit Collections modal more functional with saveCourse * [Saved Courses] Add Icon to Sidebar (#882) * add icon * fix icon * feature flag * fixed feature flags * collections page empty front-end look (#940) * added save-collection emit * create sidebar vue * connected dashboard and sidebar * finished empty front-end look * adjust hover * fixed positioning * update artifact version * added front-end look for saved courses in collection * fixed collectionsidebar css for frontend implementation * edit collection modal + front-end fixes - added edit collection modal and text input collection modal - fixed front-end with trash can - fixed front-end with dropdown button and edit collection button * frontend fixes - fixed padding - fixed null issue * added helper function in utilities * ran prettier * frontend fixes --------- Co-authored-by: Hannah Zhou <[email protected]> Co-authored-by: Hannah Zhou <[email protected]> * merged sidebar with backend * fixed migration script and bottom course bar * feat: draggable saved courses * chore: prettify things * ran prettier and type check * fixed cu review api * fixed div * remove feature flag * frontend and type check fixes * resolved front-end issue with plans * fixed more front-end and confirmation modal * fixed frontend * ran prettier * last fix --------- Co-authored-by: KaylinChan <[email protected]> Co-authored-by: andrew xu <[email protected]> Co-authored-by: Simon Ilincev <[email protected]> Co-authored-by: Simon Ilincev <[email protected]>
Summary
Created the basic frontend look for the sidebar Collection page.
This pull request is part of the Saved Course Feature
Here is the lastest demo:
CoursePlan.and.2.more.pages.-.Personal.-.Microsoft.Edge.2024-10-19.13-01-41.mp4
Breaking Changes
Course.vue
have prop:isSemesterCourseCard
so that I can change the course card look for the collection.TextInputModal
andEditPlanModal
for collections so that I don't make any breaking changes with multiple plans, but I think we can make a tempalteTextInputModal
that can work for any feature modals that require its functionalityRemaining TODOs:
Depends on #882 (It has the Saved Course Icon on the side to click into this page)
Test Plan
Make sure the frontend looks accurate with design