-
Notifications
You must be signed in to change notification settings - Fork 58
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
Implement Monthly-checking Feature for Mentees, Mentors and Admins #199
Merged
Merged
Changes from 23 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
8546766
implement monthly checking modal, and ui for view submissions in both…
mayura-andrew a1946ec
Add date-fns library for date manipulation and validation
mayura-andrew afb8a0d
Refactor MonthlyChecking Modal
mayura-andrew a36e23b
add topic tags input field
mayura-andrew cc6f97c
Refactor MonthlyChecking component and add TagInput functionality
mayura-andrew d2f2320
Refactor MenteeCheckIn component and remove TagInput functionality
mayura-andrew 32ffd3f
Refactor MenteeCheckIn component and remove TagInput functionality
mayura-andrew 4a09730
Merge branch 'sef-global:main' into main
mayura-andrew 264abb9
Update MonthlyChecking feature: Add General Updates, Feedback, and Pr…
mayura-andrew 152aa79
Refactor enums.ts: Add REVOKED status to ApplicationStatus enum
mayura-andrew cb7c4d1
Refactor code: Remove unused MenteeCheckIn component and HistoryToggle
mayura-andrew 33a6448
Refactor ToggleButton component: Update badge styling
mayura-andrew 36d80ff
Refactor routing: Add new route for AdminMenteeView component
mayura-andrew a044bd0
Refactor routing: Update route for AdminMenteeView component
mayura-andrew 82609a3
Merge branch 'sef-global:main' into main
mayura-andrew 14f1d12
Refactor code: Update badge styling in ToggleButton component
mayura-andrew d97ead1
Refactor MonthlyCheckInModal component: Update media links handling
mayura-andrew fb99966
Refactor MonthlyCheckInModal component: Remove unused import and upda…
mayura-andrew 4ad7d95
Refactor code: Remove unused imports and update media links handling,…
mayura-andrew 5e07bb6
Refactor code: Remove unused route and update media links handling
mayura-andrew 77c11b5
Refactor code: Remove unused @react-spring dependencies
mayura-andrew 882152b
Refactor code: Remove Spinner component and update mentor feedback f…
mayura-andrew 42859b6
Refactor MentorCard component: Add variant prop and update UI
mayura-andrew 1c7e853
Merge branch 'development' into main
mayura-andrew 30eeb37
Renamed NotificationBellSVG to NotificationBell
mayura-andrew File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
|
||
interface ArrowIconProps { | ||
isExpanded: boolean; | ||
} | ||
|
||
const ArrowIcon: React.FC<ArrowIconProps> = ({ isExpanded }) => { | ||
return ( | ||
<svg | ||
className={`w-5 h-5 text-gray-500 transform transition-transform ${ | ||
isExpanded ? 'rotate-180' : '' | ||
}`} | ||
fill="none" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
> | ||
<path d="M19 9l-7 7-7-7" /> | ||
</svg> | ||
); | ||
}; | ||
|
||
export default ArrowIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
|
||
interface HistoryClockIconProps { | ||
className?: string; | ||
} | ||
|
||
const HistoryClockIcon: React.FC<HistoryClockIconProps> = ({ | ||
className = 'w-6 h-6', | ||
}) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
className={className} | ||
> | ||
<circle cx="12" cy="12" r="10" /> | ||
<polyline points="12 6 12 12 16 14" /> | ||
<path d="M12 22V18" /> | ||
<path d="M10 22H14" /> | ||
</svg> | ||
); | ||
|
||
export default HistoryClockIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
|
||
interface NewSubmissionsIconProps { | ||
className?: string; | ||
} | ||
|
||
const NewSubmissionsIcon: React.FC<NewSubmissionsIconProps> = ({ | ||
className = 'w-6 h-6', | ||
}) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="black" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
className={className} | ||
> | ||
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" /> | ||
<polyline points="14 2 14 8 20 8" /> | ||
<line x1="12" y1="18" x2="12" y2="12" /> | ||
<line x1="9" y1="15" x2="15" y2="15" /> | ||
</svg> | ||
); | ||
|
||
export default NewSubmissionsIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
|
||
const NoCheckInsIcon: React.FC = () => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
className="h-12 w-12 mx-auto text-gray-400 mb-3" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={2} | ||
d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" | ||
/> | ||
</svg> | ||
); | ||
|
||
export default NoCheckInsIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from 'react'; | ||
import { NotificationProps } from '../../../types'; | ||
|
||
const NotificationBellSVG: React.FC<NotificationProps> = ({ | ||
iconColor = 'currentColor', | ||
badgeColor = '#EF4444', | ||
textColor = 'white', | ||
count = 0, | ||
}) => { | ||
const displayCount = count > 99 ? '99+' : count.toString(); | ||
|
||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 24 24" | ||
className="w-6 h-6" | ||
> | ||
<path | ||
fill="none" | ||
stroke={iconColor} | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="1.5" | ||
d="M12 6.5V3m0 3.5a5 5 0 015 5v3.5c0 1 .5 2 1.5 2.5H5.5c1-.5 1.5-1.5 1.5-2.5V11.5a5 5 0 015-5zm-3.5 14h7" | ||
/> | ||
{count > 0 && ( | ||
<> | ||
<circle cx="18" cy="6" r="5.5" fill={badgeColor} /> | ||
<text | ||
x="18" | ||
y="6" | ||
fontFamily="Arial, sans-serif" | ||
fontSize="7" | ||
fontWeight="bold" | ||
fill={textColor} | ||
textAnchor="middle" | ||
dominantBaseline="central" | ||
> | ||
{displayCount} | ||
</text> | ||
</> | ||
)} | ||
</svg> | ||
); | ||
}; | ||
|
||
export default NotificationBellSVG; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Rename the component folder as well
NotificationBell