Closed popovaevgeniya closed 3 weeks ago
This pull request introduces several new components and modifications within the risk management section of the application. Key additions include the MitigationSection
, RiskSection
, and AddNewRiskForm
components, which facilitate the entry and management of risk-related information. Additionally, a FileUpload
component is added for document uploads, while constants for file types and sizes are centralized in a new constants.ts
file. The RisksView
component is updated to utilize a popup for adding risks instead of a button, enhancing the user interaction model.
File Path | Change Summary |
---|---|
Clients/src/presentation/components/AddNewRiskForm/MitigationSection/index.tsx | Added MitigationSection component for managing risk mitigation details. |
Clients/src/presentation/components/AddNewRiskForm/RisksSection/index.tsx | Added RiskSection component for adding risk-related information. |
Clients/src/presentation/components/AddNewRiskForm/index.tsx | Added AddNewRiskForm component with tabbed navigation for risks and mitigations. |
Clients/src/presentation/components/AddNewRiskForm/styles.css | Introduced CSS styles for the #add-new-risk-popup element. |
Clients/src/presentation/components/CreateProjectForm/index.tsx | Modified CreateProjectForm to add margin-top for improved layout. |
Clients/src/presentation/components/Modals/ComplianceFeedback/ComplianceFeedback.tsx | Updated activeSection prop to optional; externalized constants for file types and sizes. |
Clients/src/presentation/components/Modals/FileUpload/index.tsx | Added FileUpload component for handling file uploads related to mitigation evidence. |
Clients/src/presentation/components/Modals/constants.ts | Introduced constants for MAX_FILE_SIZE and ALLOWED_FILE_TYPES . |
Clients/src/presentation/components/Popup/index.tsx | Modified styles for popup content and action buttons for better layout. |
Clients/src/presentation/components/RiskLevel/constants.ts | Added RISK_LABELS , Likelihood , and Severity enums for risk categorization. |
Clients/src/presentation/components/RiskLevel/index.tsx | Added RiskLevel component to assess and display risk levels based on likelihood and severity. |
Clients/src/presentation/mocks/projects/project-add-new-risk-tab2.data.ts | Exported RiskLikelihood and RiskSeverity enums; updated RiskSeverity member definition. |
Clients/src/presentation/pages/ProjectView/RisksView/index.tsx | Replaced button with Popup for adding new risks, altering user interaction model. |
🐰 In a world of risks, we hop and play,
New forms and uploads brighten the day.
With mitigation plans and levels to see,
We manage our worries, oh so carefree!
So let’s gather our data, both brave and bold,
For in this risk garden, new stories unfold! 🌼
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, thank you!
@gorkem-bwl What do you think about the looks of it?
Looks great, no issues.
Summary by CodeRabbit
Release Notes
New Features
AddNewRiskForm
with tabbed navigation for adding risks and mitigations.RiskSection
andMitigationSection
components for inputting risk details and mitigation strategies.FileUpload
component for uploading mitigation evidence documents.RiskLevel
component to visualize and calculate risk levels based on user input.Bug Fixes
ComplianceFeedback
component with optional props.Style