-
Notifications
You must be signed in to change notification settings - Fork 61
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
fix(signature-collection): sign list without candidateid #16154
Conversation
WalkthroughThe changes involve modifications to the candidate selection logic in the Changes
Possibly related PRs
Suggested reviewers
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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16154 +/- ##
==========================================
+ Coverage 36.64% 36.66% +0.02%
==========================================
Files 6769 6766 -3
Lines 139464 139363 -101
Branches 39666 39622 -44
==========================================
- Hits 51100 51099 -1
+ Misses 88364 88264 -100
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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: 4
🧹 Outside diff range and nitpick comments (2)
libs/application/templates/signature-collection/parliamentary-list-signing/src/lib/messages.ts (1)
104-123
: LGTM! Consider adding descriptions for new messages.The new messages are well-structured and consistent with the existing pattern. They align with the PR objectives by addressing the signing process without requiring a candidate ID.
Consider adding meaningful descriptions to the
description
field for each new message. This can help provide context for translators and developers. For example:selectCandidate: { id: 'pls.application:selectCandidate', defaultMessage: 'Veldu frambjóðanda', description: 'Prompt for user to select a candidate', },libs/application/templates/signature-collection/parliamentary-list-signing/src/forms/Draft.ts (1)
36-36
: Update or remove testing comment before mergingThe comment
/* section used for testing purposes */
suggests that this section is intended for testing. If this section is meant to be included in the production code, consider updating or removing the comment to reflect its actual purpose, preventing potential confusion for other developers.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (5)
- libs/application/templates/signature-collection/parliamentary-list-signing/src/forms/Draft.ts (5 hunks)
- libs/application/templates/signature-collection/parliamentary-list-signing/src/forms/Prerequisites.ts (0 hunks)
- libs/application/templates/signature-collection/parliamentary-list-signing/src/lib/dataSchema.ts (0 hunks)
- libs/application/templates/signature-collection/parliamentary-list-signing/src/lib/messages.ts (1 hunks)
- libs/application/templates/signature-collection/parliamentary-list-signing/src/lib/signListTemplate.ts (1 hunks)
💤 Files not reviewed due to no reviewable changes (2)
- libs/application/templates/signature-collection/parliamentary-list-signing/src/forms/Prerequisites.ts
- libs/application/templates/signature-collection/parliamentary-list-signing/src/lib/dataSchema.ts
🧰 Additional context used
📓 Path-based instructions (3)
libs/application/templates/signature-collection/parliamentary-list-signing/src/forms/Draft.ts (1)
Pattern
libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/signature-collection/parliamentary-list-signing/src/lib/messages.ts (1)
Pattern
libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/signature-collection/parliamentary-list-signing/src/lib/signListTemplate.ts (1)
Pattern
libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
🔇 Additional comments not posted (2)
libs/application/templates/signature-collection/parliamentary-list-signing/src/lib/signListTemplate.ts (1)
Line range hint
23-158
: Approve template configuration and adherence to coding guidelinesThe
signListTemplate
configuration remains unchanged and continues to adhere to the coding guidelines:
- It uses TypeScript for defining props and exporting types, enhancing type safety.
- The component structure suggests reusability across different NextJS apps.
- The state machine configuration provides a clear and maintainable structure for the application flow.
These aspects contribute to the overall quality and maintainability of the code.
libs/application/templates/signature-collection/parliamentary-list-signing/src/forms/Draft.ts (1)
23-23
: Update to 'renderLastScreenBackButton' aligns with intended UI behaviorChanging
renderLastScreenBackButton
tofalse
ensures that the back button is not displayed on the last screen. This aligns with the intended user experience for the signing process, preventing users from navigating back after completing the signing.
...cation/templates/signature-collection/parliamentary-list-signing/src/lib/signListTemplate.ts
Show resolved
Hide resolved
libs/application/templates/signature-collection/parliamentary-list-signing/src/forms/Draft.ts
Show resolved
Hide resolved
libs/application/templates/signature-collection/parliamentary-list-signing/src/forms/Draft.ts
Show resolved
Hide resolved
libs/application/templates/signature-collection/parliamentary-list-signing/src/forms/Draft.ts
Show resolved
Hide resolved
Datadog ReportBranch report: ✅ 0 Failed, 24 Passed, 0 Skipped, 16.76s Total Time |
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
🧹 Outside diff range and nitpick comments (1)
libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx (1)
188-192
: LGTM: Improved skeleton layout.The modification to render separate
CollectorSkeleton
components in individual table cells better represents the actual data structure and improves the visual representation of the loading state.Consider adding
aria-busy="true"
to the table row or its parent container during the loading state to improve accessibility:- <T.Row> + <T.Row aria-busy="true"> <T.Data> <CollectorSkeleton /> </T.Data> <T.Data> <CollectorSkeleton /> </T.Data> </T.Row>
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (2)
- libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx (3 hunks)
- libs/service-portal/signature-collection/src/skeletons.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx (1)
Pattern
libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/service-portal/signature-collection/src/skeletons.tsx (1)
Pattern
libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
🔇 Additional comments not posted (4)
libs/service-portal/signature-collection/src/skeletons.tsx (1)
26-26
: Simplified CollectorSkeleton component: Verify intended designThe
CollectorSkeleton
component has been simplified to render a single skeleton loader instead of multiple ones. This change maintains the same appearance for a single item but removes the ability to display multiple loading placeholders.Pros:
- Simplified and potentially more performant component.
- Maintains the same visual appearance for a single skeleton loader.
Cons:
- Removes the ability to show multiple skeleton loaders, which might affect the user experience if multiple items were expected to load.
Please confirm that this simplification aligns with the intended design and user experience. If multiple items are expected to be loaded in this component, consider keeping the
repeat
property or adjusting the parent component to render multipleCollectorSkeleton
instances as needed.The changes adhere to the coding guidelines for the
libs
directory:
- The component remains reusable across different NextJS apps.
- It uses TypeScript (implicit through the
.tsx
extension).- The simplification may improve tree-shaking and bundling.
libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx (3)
43-43
: LGTM: Minor formatting improvement.The addition of a blank line after variable declarations improves code readability without affecting functionality.
91-91
: LGTM: UI spacing adjustment.The increase in top margin for the loading skeleton improves the visual spacing of the component.
Line range hint
1-240
: Overall assessment: Minor improvements to component structure and visual representation.The changes in this file are minor but positive:
- Improved code readability with added spacing.
- Better UI spacing for the loading skeleton.
- Enhanced representation of the collector skeletons in the table structure.
These modifications align with the coding guidelines for the
libs
directory, maintaining the component's reusability across different NextJS apps. The use of TypeScript for props and types remains consistent, and there are no apparent issues with tree-shaking or bundling practices.
* fix(signature-collection): sign list without candidateid * temp * tweak * chore: nx format:write update dirty files --------- Co-authored-by: andes-it <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Checklist:
Summary by CodeRabbit
New Features
Bug Fixes
Chores