Skip to content

Revert "[dev] [Marfuen] mariano/comp-190-unable-to-edit-policy-name-or-description-after-creating"#841

Merged
Marfuen merged 1 commit into
mainfrom
revert-839-mariano/comp-190-unable-to-edit-policy-name-or-description-after-creating
Jun 8, 2025
Merged

Revert "[dev] [Marfuen] mariano/comp-190-unable-to-edit-policy-name-or-description-after-creating"#841
Marfuen merged 1 commit into
mainfrom
revert-839-mariano/comp-190-unable-to-edit-policy-name-or-description-after-creating

Conversation

@Marfuen
Copy link
Copy Markdown
Contributor

@Marfuen Marfuen commented Jun 8, 2025

Reverts #839

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2025 4:31pm
comp-framework-editor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2025 4:31pm
comp-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2025 4:31pm
comp-trust ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2025 4:31pm

Copilot AI review requested due to automatic review settings June 8, 2025 16:29
@linear
Copy link
Copy Markdown

linear Bot commented Jun 8, 2025

@Marfuen Marfuen merged commit a55af99 into main Jun 8, 2025
5 of 8 checks passed
@Marfuen Marfuen deleted the revert-839-mariano/comp-190-unable-to-edit-policy-name-or-description-after-creating branch June 8, 2025 16:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reverts the changes introduced in PR #839, restoring the previous implementation of the policy editing and approval UI components. Key changes include reintroducing the removed components (UpdatePolicyOverview, PolicyOverviewHeader, SubmitApprovalDialog, etc.), reverting modifications in policy pages and dialogs, and restoring the original actions and schemas used for policy updates.

Reviewed Changes

Copilot reviewed 35 out of 35 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
UpdatePolicyOverview.tsx Reverts removal of the update policy overview component.
PolicyOverviewHeader.tsx Reverts removal of the policy header component.
SubmitApprovalDialog.tsx Reverts modifications in the submit approval dialog formatting and imports.
PolicyPage.tsx Reverts changes to the PolicyPage structure and props handling.
PolicyOverviewSheet.tsx Reintroduces the policy overview sheet component.
PolicyStatusAlerts.tsx Reverts removal of the policy status alerts component.
PolicyPendingApprovalAlert.tsx Reverts removal of the pending approval alert component.
PolicyOverview.tsx Reverts re-implementation of the policy overview component.
PolicyDeleteDialog.tsx Reverts changes in the policy delete dialog component.
PolicyControlMappings.tsx Reverts modifications in control mapping actions and formatting.
PolicyControlMappingModal.tsx Reverts updates in the control mapping modal implementation.
PolicyControlMappingConfirmDeleteModal.tsx Reverts updates in the control mapping delete modal.
PolicyArchiveSheet.tsx Reverts changes in the archive/restore sheet UI.
PolicyActionDialog.tsx Reverts changes in the policy action dialog component.
Dialogs/PolicyActionDialogs.tsx Reverts the composite policy action dialogs implementation.
Dialogs/PolicyActionDialog.tsx Reverts the duplicate policy action dialog implementation.
actions/schema.ts Reverts schema updates for policy overview, removing changes to name/description.
update-policy-overview-action.ts Reverts changes including the type assertion for the new field.
update-policy-form-action.ts Reverts removal of ‘name’ and ‘description’ fields from the update action.
Comments suppressed due to low confidence (1)

apps/app/src/actions/schema.ts:285

  • Verify that removing the 'name' and 'description' fields from updatePolicyFormSchema is intentional and aligns with the backend data handling expectations.
    name: z.string(),

Comment on lines +58 to +61
? ({
isRequiredToSign:
isRequiredToSign === "required",
} as any)
Copy link

Copilot AI Jun 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider refining the type assertion instead of using 'as any' so that the updated types are properly enforced without bypassing TypeScript checks.

Suggested change
? ({
isRequiredToSign:
isRequiredToSign === "required",
} as any)
? {
isRequiredToSign:
isRequiredToSign === "required",
}

Copilot uses AI. Check for mistakes.
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.36.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants