-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
add MidweekMeeting pdf file #1598
base: main-next
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Task linked: CU-86bx53yjk Midweek meeting – Normal |
Important Review skippedReview was skipped due to path filters Files ignored due to path filters (30)
You can disable this status message by setting the WalkthroughThe changes introduce a new React component, Changes
Sequence Diagram(s) (Beta)sequenceDiagram
participant User
participant MidweekMeeting
participant MidweekMeetingPartsTitle
participant MidweekMeetingSong
participant MidweekMeetingTask
participant MidweekMeetingTime
User->>MidweekMeeting: Render PDF
MidweekMeeting->>MidweekMeetingPartsTitle: Render Part Titles
MidweekMeeting->>MidweekMeetingSong: Render Songs
MidweekMeeting->>MidweekMeetingTask: Render Tasks
MidweekMeeting->>MidweekMeetingTime: Render Times
MidweekMeeting-->>User: Display PDF
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 2
src/v3/components/preview/index.tsx
Outdated
@@ -28,7 +28,7 @@ import { | |||
} from '@components/index'; | |||
import { useEffect, useState } from 'react'; | |||
import { IconAdd, IconAssign, IconClose, IconReturn, IconUndo, IconUpdate, IconInfo, IconVisitors } from '@icons/index'; | |||
|
|||
import PdfPreview from './PDF_Peview'; |
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.
Typographical error in import statement for PdfPreview
.
- import PdfPreview from './PDF_Peview';
+ import PdfPreview from './PDF_Preview';
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
import PdfPreview from './PDF_Peview'; | |
import PdfPreview from './PDF_Preview'; |
const styles = StyleSheet.create({ | ||
container: { | ||
paddingTop: 2, | ||
paddingBottom: 2, | ||
display: 'flex', | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
gap: 4, | ||
}, | ||
}); | ||
|
||
const func = (part, obj) => { | ||
if (part === 'Apply yourself to the field ministry' && typeof obj === 'object') { | ||
const mappedArray = Object.entries(obj).map(([_, value]) => { | ||
return { value }; | ||
}); | ||
return mappedArray; | ||
} | ||
return []; | ||
}; | ||
|
||
const participants = func(part, taskConductor); | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<View | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
justifyContent: 'space-between', | ||
gap: 4, | ||
}} | ||
> | ||
<View | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'row', | ||
width: participants.length > 1 ? 188 : 304, | ||
gap: 2, | ||
flexWrap: 'wrap', | ||
}} | ||
> | ||
<Text | ||
style={{ | ||
fontFamily: 'Inter', | ||
fontWeight: 'normal', | ||
fontSize: 9, | ||
color: textColor === '#3B4CA3' ? '#222222' : textColor, | ||
}} | ||
> | ||
{taskNumber} {taskTitle} | ||
</Text> | ||
<Text style={{ fontFamily: 'Inter', fontWeight: 'normal', fontSize: 9, color: '#AAAAAA' }}>{taskTime}</Text> | ||
</View> | ||
{participants.length > 0 ? null : ( | ||
<Text style={{ fontFamily: 'Inter', fontWeight: 'light', fontSize: 9, color: '#757575' }}>Conductor:</Text> | ||
)} | ||
</View> | ||
|
||
{participants.length > 0 ? ( | ||
<View | ||
style={ | ||
participants.length > 1 | ||
? { display: 'flex', flexDirection: 'row', width: 326, gap: 2, paddingRight: 2 } | ||
: {} | ||
} | ||
> | ||
{participants.map((participant: any, index: number) => ( | ||
<View | ||
key={index} | ||
style={{ display: 'flex', flexDirection: 'row', width: 106, gap: 4, paddingBottom: 4, paddingTop: 4 }} | ||
> | ||
<Text style={{ fontFamily: 'Inter', fontWeight: 'medium', fontSize: 9, color: '#222222' }}> | ||
{participant.value.first} | ||
</Text> | ||
<Text style={{ fontFamily: 'Inter', fontWeight: 'normal', fontSize: 9, color: '#222222' }}> | ||
{participant.value.second} | ||
</Text> | ||
</View> | ||
))} | ||
</View> | ||
) : ( | ||
<Text style={{ fontFamily: 'Inter', fontWeight: 'medium', fontSize: 9, color: '#222222' }}> | ||
{typeof taskConductor === 'string' ? taskConductor : null} | ||
</Text> | ||
)} | ||
</View> | ||
); | ||
}; |
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.
Optimize dynamic style creation and improve function naming.
- const styles = StyleSheet.create({
+ const staticStyles = StyleSheet.create({
- const func = (part, obj) => {
+ const mapTaskConductorToParticipants = (part, obj) => {
Move the styles
object outside of the component to prevent it from being recreated on each render. Also, rename the func
function to mapTaskConductorToParticipants
for better clarity.
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
const styles = StyleSheet.create({ | |
container: { | |
paddingTop: 2, | |
paddingBottom: 2, | |
display: 'flex', | |
flexDirection: 'row', | |
alignItems: 'center', | |
gap: 4, | |
}, | |
}); | |
const func = (part, obj) => { | |
if (part === 'Apply yourself to the field ministry' && typeof obj === 'object') { | |
const mappedArray = Object.entries(obj).map(([_, value]) => { | |
return { value }; | |
}); | |
return mappedArray; | |
} | |
return []; | |
}; | |
const participants = func(part, taskConductor); | |
return ( | |
<View style={styles.container}> | |
<View | |
style={{ | |
display: 'flex', | |
flexDirection: 'row', | |
alignItems: 'center', | |
justifyContent: 'space-between', | |
gap: 4, | |
}} | |
> | |
<View | |
style={{ | |
display: 'flex', | |
flexDirection: 'row', | |
width: participants.length > 1 ? 188 : 304, | |
gap: 2, | |
flexWrap: 'wrap', | |
}} | |
> | |
<Text | |
style={{ | |
fontFamily: 'Inter', | |
fontWeight: 'normal', | |
fontSize: 9, | |
color: textColor === '#3B4CA3' ? '#222222' : textColor, | |
}} | |
> | |
{taskNumber} {taskTitle} | |
</Text> | |
<Text style={{ fontFamily: 'Inter', fontWeight: 'normal', fontSize: 9, color: '#AAAAAA' }}>{taskTime}</Text> | |
</View> | |
{participants.length > 0 ? null : ( | |
<Text style={{ fontFamily: 'Inter', fontWeight: 'light', fontSize: 9, color: '#757575' }}>Conductor:</Text> | |
)} | |
</View> | |
{participants.length > 0 ? ( | |
<View | |
style={ | |
participants.length > 1 | |
? { display: 'flex', flexDirection: 'row', width: 326, gap: 2, paddingRight: 2 } | |
: {} | |
} | |
> | |
{participants.map((participant: any, index: number) => ( | |
<View | |
key={index} | |
style={{ display: 'flex', flexDirection: 'row', width: 106, gap: 4, paddingBottom: 4, paddingTop: 4 }} | |
> | |
<Text style={{ fontFamily: 'Inter', fontWeight: 'medium', fontSize: 9, color: '#222222' }}> | |
{participant.value.first} | |
</Text> | |
<Text style={{ fontFamily: 'Inter', fontWeight: 'normal', fontSize: 9, color: '#222222' }}> | |
{participant.value.second} | |
</Text> | |
</View> | |
))} | |
</View> | |
) : ( | |
<Text style={{ fontFamily: 'Inter', fontWeight: 'medium', fontSize: 9, color: '#222222' }}> | |
{typeof taskConductor === 'string' ? taskConductor : null} | |
</Text> | |
)} | |
</View> | |
); | |
}; | |
const staticStyles = StyleSheet.create({ | |
container: { | |
paddingTop: 2, | |
paddingBottom: 2, | |
display: 'flex', | |
flexDirection: 'row', | |
alignItems: 'center', | |
gap: 4, | |
}, | |
}); | |
const mapTaskConductorToParticipants = (part, obj) => { | |
if (part === 'Apply yourself to the field ministry' && typeof obj === 'object') { | |
const mappedArray = Object.entries(obj).map(([_, value]) => { | |
return { value }; | |
}); | |
return mappedArray; | |
} | |
return []; | |
}; | |
const participants = mapTaskConductorToParticipants(part, taskConductor); | |
return ( | |
<View style={staticStyles.container}> | |
<View | |
style={{ | |
display: 'flex', | |
flexDirection: 'row', | |
alignItems: 'center', | |
justifyContent: 'space-between', | |
gap: 4, | |
}} | |
> | |
<View | |
style={{ | |
display: 'flex', | |
flexDirection: 'row', | |
width: participants.length > 1 ? 188 : 304, | |
gap: 2, | |
flexWrap: 'wrap', | |
}} | |
> | |
<Text | |
style={{ | |
fontFamily: 'Inter', | |
fontWeight: 'normal', | |
fontSize: 9, | |
color: textColor === '#3B4CA3' ? '#222222' : textColor, | |
}} | |
> | |
{taskNumber} {taskTitle} | |
</Text> | |
<Text style={{ fontFamily: 'Inter', fontWeight: 'normal', fontSize: 9, color: '#AAAAAA' }}>{taskTime}</Text> | |
</View> | |
{participants.length > 0 ? null : ( | |
<Text style={{ fontFamily: 'Inter', fontWeight: 'light', fontSize: 9, color: '#757575' }}>Conductor:</Text> | |
)} | |
</View> | |
{participants.length > 0 ? ( | |
<View | |
style={ | |
participants.length > 1 | |
? { display: 'flex', flexDirection: 'row', width: 326, gap: 2, paddingRight: 2 } | |
: {} | |
} | |
> | |
{participants.map((participant: any, index: number) => ( | |
<View | |
key={index} | |
style={{ display: 'flex', flexDirection: 'row', width: 106, gap: 4, paddingBottom: 4, paddingTop: 4 }} | |
> | |
<Text style={{ fontFamily: 'Inter', fontWeight: 'medium', fontSize: 9, color: '#222222' }}> | |
{participant.value.first} | |
</Text> | |
<Text style={{ fontFamily: 'Inter', fontWeight: 'normal', fontSize: 9, color: '#222222' }}> | |
{participant.value.second} | |
</Text> | |
</View> | |
))} | |
</View> | |
) : ( | |
<Text style={{ fontFamily: 'Inter', fontWeight: 'medium', fontSize: 9, color: '#222222' }}> | |
{typeof taskConductor === 'string' ? taskConductor : null} | |
</Text> | |
)} | |
</View> | |
); | |
}; |
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.2.5 to 4.3.0. - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](actions/dependency-review-action@5bbc3ba...0659a74) --- updated-dependencies: - dependency-name: actions/dependency-review-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@mui/x-date-pickers](https://github.com/mui/mui-x/tree/HEAD/packages/x-date-pickers) from 7.2.0 to 7.3.1. - [Release notes](https://github.com/mui/mui-x/releases) - [Changelog](https://github.com/mui/mui-x/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui/mui-x/commits/v7.3.1/packages/x-date-pickers) --- updated-dependencies: - dependency-name: "@mui/x-date-pickers" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 18.3.0 to 18.3.1. - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v18.3.1/packages/react-dom) --- updated-dependencies: - dependency-name: react-dom dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [serve](https://github.com/vercel/serve) from 14.2.2 to 14.2.3. - [Release notes](https://github.com/vercel/serve/releases) - [Commits](vercel/serve@14.2.2...14.2.3) --- updated-dependencies: - dependency-name: serve dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [eslint-plugin-cypress](https://github.com/cypress-io/eslint-plugin-cypress) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/cypress-io/eslint-plugin-cypress/releases) - [Commits](cypress-io/eslint-plugin-cypress@v3.0.1...v3.0.2) --- updated-dependencies: - dependency-name: eslint-plugin-cypress dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@mui/x-tree-view](https://github.com/mui/mui-x/tree/HEAD/packages/x-tree-view) from 7.3.0 to 7.3.1. - [Release notes](https://github.com/mui/mui-x/releases) - [Changelog](https://github.com/mui/mui-x/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui/mui-x/commits/v7.3.1/packages/x-tree-view) --- updated-dependencies: - dependency-name: "@mui/x-tree-view" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
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.
Actionable comments posted: 8
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- src/v3/views/MidweekMeeting.tsx (1 hunks)
- src/v3/views/MidweekMeeting_PDF/MidweekMeetingPartsTitle.tsx (1 hunks)
- src/v3/views/MidweekMeeting_PDF/MidweekMeetingSong.tsx (1 hunks)
- src/v3/views/MidweekMeeting_PDF/MidweekMeetingTask.tsx (1 hunks)
- src/v3/views/MidweekMeeting_PDF/MidweekMeetingTime.tsx (1 hunks)
Additional Context Used
Biome (8)
src/v3/views/MidweekMeeting_PDF/MidweekMeetingPartsTitle.tsx (2)
4-5: All these imports are only used as types.
58-58: Avoid using the index of an array as key property in an element.
src/v3/views/MidweekMeeting_PDF/MidweekMeetingSong.tsx (1)
7-8: All these imports are only used as types.
src/v3/views/MidweekMeeting_PDF/MidweekMeetingTask.tsx (4)
41-45: This else clause can be omitted because previous branches break early.
43-45: This else clause can be omitted because previous branches break early.
6-7: All these imports are only used as types.
125-125: Avoid using the index of an array as key property in an element.
src/v3/views/MidweekMeeting_PDF/MidweekMeetingTime.tsx (1)
3-4: All these imports are only used as types.
Additional comments not posted (10)
src/v3/views/MidweekMeeting_PDF/MidweekMeetingTime.tsx (1)
52-52
: Export statement is correctly implemented.src/v3/views/MidweekMeeting_PDF/MidweekMeetingSong.tsx (1)
70-70
: Export statement is correctly implemented.src/v3/views/MidweekMeeting_PDF/MidweekMeetingPartsTitle.tsx (2)
34-73
: Skip generating a comment about defining styles outside the component as it has been previously addressed.
76-76
: Export statement is correctly implemented.src/v3/views/MidweekMeeting.tsx (4)
1-3
: Import statements are correctly implemented.
13-129
: Data structures for meeting details and tasks are well-defined and appropriate for the PDF generation.
131-140
: Component definition for generating the PDF document is correctly implemented.
142-142
: Export statement is correctly implemented.src/v3/views/MidweekMeeting_PDF/MidweekMeetingTask.tsx (2)
19-153
: Skip generating a comment about optimizing dynamic style creation and improving function naming as it has been previously addressed.
156-156
: Export statement is correctly implemented.
import InterRegular from '@assets/fonts/Inter-Regular.ttf'; | ||
import { MidweekMeetingTimeProps } from './midweekMeeting.types'; |
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.
Optimize imports used only as types.
- import InterRegular from '@assets/fonts/Inter-Regular.ttf';
- import { MidweekMeetingTimeProps } from './midweekMeeting.types';
+ import type { MidweekMeetingTimeProps } from './midweekMeeting.types';
Committable suggestion was skipped due low confidence.
const MidweekMeetingTime = ({ time, textColor }: MidweekMeetingTimeProps) => { | ||
const getBGColor = (color) => { | ||
switch (color) { | ||
case '#3B4CA3': | ||
return '#F2F5FF'; | ||
case '#2A6B77': | ||
return '#3C7F8B14'; | ||
case '#956711': | ||
return '#C2820014'; | ||
case '#942926': | ||
return '#B82B1014'; | ||
default: | ||
return null; | ||
} | ||
}; | ||
|
||
const style = StyleSheet.create({ | ||
container: { | ||
width: 32, | ||
paddingTop: 4, | ||
paddingBottom: 4, | ||
backgroundColor: getBGColor(textColor), | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
time: { | ||
fontFamily: 'Inter', | ||
fontSize: 8, | ||
fontWeight: 'normal', | ||
color: textColor, | ||
textAlign: 'center', | ||
}, | ||
}); | ||
|
||
return ( | ||
<View style={style.container}> | ||
<Text style={style.time}>{time}</Text> | ||
</View> | ||
); | ||
}; |
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.
Consider defining static styles outside the component to improve performance.
+ const staticStyles = StyleSheet.create({
+ container: {
+ width: 32,
+ paddingTop: 4,
+ paddingBottom: 4,
+ alignItems: 'center',
+ justifyContent: 'center',
+ },
+ time: {
+ fontFamily: 'Inter',
+ fontSize: 8,
+ fontWeight: 'normal',
+ textAlign: 'center',
+ },
+ });
const MidweekMeetingTime = ({ time, textColor }: MidweekMeetingTimeProps) => {
- const style = StyleSheet.create({
- container: {
- width: 32,
- paddingTop: 4,
- paddingBottom: 4,
- backgroundColor: getBGColor(textColor),
- alignItems: 'center',
- justifyContent: 'center',
- },
- time: {
- fontFamily: 'Inter',
- fontSize: 8,
- fontWeight: 'normal',
- color: textColor,
- textAlign: 'center',
- },
- });
+ const dynamicStyles = {
+ container: {
+ ...staticStyles.container,
+ backgroundColor: getBGColor(textColor),
+ },
+ time: {
+ ...staticStyles.time,
+ color: textColor,
+ },
+ };
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
const MidweekMeetingTime = ({ time, textColor }: MidweekMeetingTimeProps) => { | |
const getBGColor = (color) => { | |
switch (color) { | |
case '#3B4CA3': | |
return '#F2F5FF'; | |
case '#2A6B77': | |
return '#3C7F8B14'; | |
case '#956711': | |
return '#C2820014'; | |
case '#942926': | |
return '#B82B1014'; | |
default: | |
return null; | |
} | |
}; | |
const style = StyleSheet.create({ | |
container: { | |
width: 32, | |
paddingTop: 4, | |
paddingBottom: 4, | |
backgroundColor: getBGColor(textColor), | |
alignItems: 'center', | |
justifyContent: 'center', | |
}, | |
time: { | |
fontFamily: 'Inter', | |
fontSize: 8, | |
fontWeight: 'normal', | |
color: textColor, | |
textAlign: 'center', | |
}, | |
}); | |
return ( | |
<View style={style.container}> | |
<Text style={style.time}>{time}</Text> | |
</View> | |
); | |
}; | |
const staticStyles = StyleSheet.create({ | |
container: { | |
width: 32, | |
paddingTop: 4, | |
paddingBottom: 4, | |
alignItems: 'center', | |
justifyContent: 'center', | |
}, | |
time: { | |
fontFamily: 'Inter', | |
fontSize: 8, | |
fontWeight: 'normal', | |
textAlign: 'center', | |
}, | |
}); | |
const MidweekMeetingTime = ({ time, textColor }: MidweekMeetingTimeProps) => { | |
const getBGColor = (color) => { | |
switch (color) { | |
case '#3B4CA3': | |
return '#F2F5FF'; | |
case '#2A6B77': | |
return '#3C7F8B14'; | |
case '#956711': | |
return '#C2820014'; | |
case '#942926': | |
return '#B82B1014'; | |
default: | |
return null; | |
} | |
}; | |
const dynamicStyles = { | |
container: { | |
...staticStyles.container, | |
backgroundColor: getBGColor(textColor), | |
}, | |
time: { | |
...staticStyles.time, | |
color: textColor, | |
}, | |
}; | |
return ( | |
<View style={dynamicStyles.container}> | |
<Text style={dynamicStyles.time}>{time}</Text> | |
</View> | |
); | |
}; |
fontWeight: 'light', | ||
}, | ||
name: { | ||
color: '##222222', |
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.
Correct the typo in the color code.
- color: '##222222',
+ color: '#222222',
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
color: '##222222', | |
color: '#222222', |
import SongSvg from './Svg/SongSvg'; | ||
import { MidweekMeetingSongProps } from './midweekMeeting.types'; |
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.
Optimize imports used only as types.
- import SongSvg from './Svg/SongSvg';
- import { MidweekMeetingSongProps } from './midweekMeeting.types';
+ import type { MidweekMeetingSongProps } from './midweekMeeting.types';
Committable suggestion was skipped due low confidence.
import InterMedium from '@assets/fonts/Inter-Medium.ttf'; | ||
import { MeetingPartsTitleProps } from './midweekMeeting.types'; |
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.
Optimize imports used only as types.
- import InterSemiBold from '@assets/fonts/Inter-SemiBold.ttf';
- import InterMedium from '@assets/fonts/Inter-Medium.ttf';
- import { MeetingPartsTitleProps } from './midweekMeeting.types';
+ import type { MeetingPartsTitleProps } from './midweekMeeting.types';
Committable suggestion was skipped due low confidence.
> | ||
{keys.map((key, index) => ( | ||
<Text | ||
key={index} |
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.
Avoid using array indexes as keys in React elements.
- key={index}
+ key={key}
Committable suggestion was skipped due low confidence.
> | ||
{participants.map((participant: Participant, index) => ( | ||
<View | ||
key={index} |
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.
Avoid using array indexes as keys in React elements.
- key={index}
+ key={participant.first}
Committable suggestion was skipped due low confidence.
import InterLight from '@assets/fonts/Inter-Light.ttf'; | ||
import { MidweekMeetingTaskProps } from './midweekMeeting.types'; |
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.
Optimize imports used only as types.
- import InterRegular from '@assets/fonts/Inter-Regular.ttf';
- import InterSemiBold from '@assets/fonts/Inter-SemiBold.ttf';
- import InterMedium from '@assets/fonts/Inter-Medium.ttf';
- import InterLight from '@assets/fonts/Inter-Light.ttf';
- import { MidweekMeetingTaskProps } from './midweekMeeting.types';
+ import type { MidweekMeetingTaskProps } from './midweekMeeting.types';
Committable suggestion was skipped due low confidence.
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (27)
src/shared/locales/ceb-PH/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/ch-CHS/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/de-DE/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/en/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/es-ES/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/es-SSP/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/fr-FR/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/hu-HU/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/hy-AM/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/it-IT/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/ja-JP/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/mg-MG/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/mg-TND/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/mg-TNK/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/mg-TTM/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/mg-VZ/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/mn-MN/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/ne-NP/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/pl-PL/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/pt-BR/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/ro-RO/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/ru-RU/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/sv-SE/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/tl-PH/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/tr-TR/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/tw-TW/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
src/shared/locales/uk-UA/meetings.json
is excluded by!**/*.json
,!src/shared/locales/**
Files selected for processing (1)
- .github/workflows/dependency-review.yml (1 hunks)
Files skipped from review due to trivial changes (1)
- .github/workflows/dependency-review.yml
Quality Gate passedIssues Measures |
add MidweekMeeting pdf file