Closed popovaevgeniya closed 3 weeks ago
This pull request introduces several new components and modifications to existing ones within the risk management module. Key additions include the AddNewRiskForm
, MitigationSection
, and RiskSection
components, which facilitate user input for risk mitigation and assessment. The FileUpload
component is also introduced to handle document uploads related to risk mitigation. Additionally, styling updates and structural changes enhance the user interface, particularly through the use of a Popup
for adding new risks. Constants for file upload validation are centralized for improved management.
File Path | Change Summary |
---|---|
Clients/src/presentation/components/AddNewRiskForm/MitigationSection/index.tsx | Added MitigationSection component for managing risk mitigation details, including state and input fields. |
Clients/src/presentation/components/AddNewRiskForm/RisksSection/index.tsx | Added RiskSection component for risk assessment with state management and structured layout. |
Clients/src/presentation/components/AddNewRiskForm/index.tsx | Introduced AddNewRiskForm component utilizing Material-UI tabs for risk and mitigation sections. |
Clients/src/presentation/components/AddNewRiskForm/styles.css | Added CSS styles for #add-new-risk-popup element to improve layout and alignment. |
Clients/src/presentation/components/CreateProjectForm/index.tsx | Modified CreateProjectForm to include a margin-top style for better visual separation. |
Clients/src/presentation/components/Modals/ComplianceFeedback/ComplianceFeedback.tsx | Made activeSection optional in AuditorFeedbackProps and centralized file upload constants. |
Clients/src/presentation/components/Modals/FileUpload/index.tsx | Introduced FileUpload component for handling file uploads related to risk mitigation. |
Clients/src/presentation/components/Modals/constants.ts | Added constants for MAX_FILE_SIZE and ALLOWED_FILE_TYPES for file upload validation. |
Clients/src/presentation/components/Popup/index.tsx | Updated styles for Popup component to improve layout and padding. |
Clients/src/presentation/pages/ProjectView/RisksView/index.tsx | Replaced button for adding risks with a Popup component containing AddNewRiskForm . |
🐰 In the meadow where risks do play,
A new form blooms to save the day.
With sections for plans and levels to show,
Mitigation and risks, together they grow.
So hop along, let’s manage with cheer,
For every new risk, we hold dear! 🌼
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?
Looks good! Thanks.
Summary by CodeRabbit
Release Notes
New Features
AddNewRiskForm
with sections for managing risks and mitigation details.FileUpload
component for uploading mitigation evidence documents.RisksView
by integrating aPopup
for adding new risks.Improvements
Bug Fixes
ComplianceFeedback
.These updates enhance the risk management capabilities and improve the overall user interface.