Closed ericbolikowski closed 8 months ago
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
[!IMPORTANT]
Auto Review Skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository.To trigger a single review, invoke the
@coderabbitai review
command.
The updates span across the ReDI Talent Pool application, enhancing UI components and backend data handling. Notable changes include the integration of a new AppNotification
component for streamlined notifications, the introduction of CardContextMenu
and LightModal
for improved user interactions, and a shift towards using @mui
for material components. Additionally, adjustments in import orders and the consolidation of similar functionalities reflect a focus on code organization and optimization.
Files | Change Summary |
---|---|
.../src/App.tsx |
Updated to include AppNotification ; adjusted import orders. |
.../components/molecules/CardContextMenu.tsx , LightModal.tsx |
New components for context menus and modals. |
.../components/organisms/Avatar.tsx , .../cv-list/CvListItem.tsx , .../jobseeker-profile/JobseekerProfileForJobseekerEyes.tsx , .../me/MeCompany.tsx |
Shifted to @mui imports for material components. |
.../components/organisms/ExpiredJobListings.tsx , .../company-profile-editables/EditableJobPostings.tsx |
Enhanced job listing functionalities with delete options and simplified job editing logic. |
.../components/organisms/JobListingCard.scss |
Added styles for ellipsis and icons. |
.../pages/app/browse/BrowseJobseeker.tsx |
Modified icon interaction. |
.../pages/front/login/Login.tsx , .../reset-password/SetNewPassword.tsx |
Updated notification handling via showNotification . |
.../lib/tp-job-listing/... |
Adjusted job listing data handling with additional fields and corrected mappings. |
.../shared-atomic-design-components/src/lib/atoms/... |
Introduced AppNotification and new icons; updated imports and hooks usage. |
libs/shared-config/src/lib/config.ts |
Added dynamic URL setting for different environments. |
"In the code's weave, a change does thread,
Through files and functions, seamlessly spread.
🐇 With each line, a new feature hops in sight,
A digital burrow, built just right."
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
These seem to be duplicated & should be removed. Correct?
1.
@coderabbitai review
These seem to be duplicated & should be removed. Correct?
@katamatata nice catch & fix. PS! Strange that I can't reply to your comment in the "thread", but only here.
One minor issue: The modals for
onDelete
click action on active and expired job listings look different. The one for active job listings is darker & the tooltip text renders above it
@katamatata: Will have a look
@katamatata:
Do we really need the tooltip on the 3-dot menu about copying the link? IMHO, it might be confusing. There are also other actions in the menu, not only 'copy the link', and the name of this action inside the menu is self-explanatory. Also, I guess we would inform the company representatives about the new flows/features anyway, so we can let them know where they can find different actions.
I see the point. It would be more ideal with some kind of announcement "Now you can copy the URL of Job Listing" banner/modal show once or twice.
I think we're short on time, so maybe we keep it for about a month then remove it? Can you bring it up in a team check-in?
@katamatata solved this one, and it was such a "d'oh I did somethin' silly" mistake 😆
One minor issue: The modals for onDelete click action on active and expired job listings look different. The one for active job listings is darker & the tooltip text renders above it
We can look at it during a mentoring session if you want! If you want to see how I screwed up 😁
What Github issue does this PR relate to? Insert link.
809
What should the reviewer know?
Demo video: https://share.cleanshot.com/rjHqnSHK (too long for GIF)
This PR implements a reusable "three-dots menu" component (more aptly named
<CardContextMenu>
in the codebase).The context menu is used as the CTA in Job Listing cards displayed in:
<EditableJobPostings>
<CardContextMenu>
displays a menu on click with options controlled through themenuItems
prop. Options shown in (1) vary from (2).The following features accessed from menu items are implemented:
Delete: triggers a confirmation modal. It follows a new design that is relative to existing models more light in the design, so a new
<LightModal>
component was implemented. Edit: edit button triggers the "normal" Edit modal as we know it. The Delete button is removed. Copy URL: copies the URL of the Job Listing's page to clipboard. Then displays a toast message. We already supported toasts via<AppNotification>
. CON and TP apps both held identical implementations of this component, so it was refactored back into a single "atom" now living in theshared-atomic-design-components
library. Reactivate: a button to Reactivate listings used to appear as a single CTA on cards in<ExpiredJobPostings>
. Button moved to a menu item. Clicking triggers the same logic as beforeFinally, the
<CardContextMenu>
used in<EditableJobPostings>
is wrapped into a<Tooltip>
component to display a tooltip about the copy url function.A complete migration from
material-ui
to the latest version ofmui
is also in place.Summary by CodeRabbit
New Features
AppNotification
component for displaying notifications across the app.CardContextMenu
component for customizable context menus with icons and actions.JobListingCards
component for editing, copying links, and deleting job postings.Delete
,EditLightGrey
,Ellipsis
,Refresh
,Link
) for enhanced UI elements.TALENT_POOL_URL
constant.Refactor
@material-ui/core
to@mui/material
and@mui/icons-material
.EditableJobPostings
.handleFavoriteClick
function inBrowseJobseeker
to replace heart icon with ellipsis icon.showNotification
.Style
&__ellipsis
and its nested&__icon
with hover effects inJobListingCard.scss
.Chores
showNotification
usage across components to align with changes in its import source and parameters.