Skip to content

feat: polish modals - #2106

Merged
AlexAndBear merged 7 commits into
mainfrom
issues/2053
Mar 10, 2026
Merged

AlexAndBear merged 7 commits into
mainfrom
issues/2053

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Mar 9, 2026 •

Copy link
Copy Markdown
Member

Description

image

Related Issue

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear requested a review from Copilot March 9, 2026 10:40
@AlexAndBear AlexAndBear added the Type:Maintenance E.g. technical debt, packaging, etc. label Mar 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 polishes the modal UI by moving the cancel action from a text button in the modal footer to an icon-only "×" close button in the modal header. It also updates modal border-radius styling and introduces new optional fields to the Modal type.

Changes:

  • The cancel button in OcModal is relocated from the footer action bar to the header, as a raw icon (close) button controlled by the new hideCancelButton prop
  • Custom modal components (CreateLinkModal, DatePickerModal, AppTokenModal) have their own inline cancel buttons removed, delegating to the header's X button
  • New fields hideHeader, hideFooter, and size are added to the Modal store type, and hideCancelButton is wired through ModalWrapper.vue

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/design-system/src/components/OcModal/OcModal.vue Moves cancel button to header, adds hideCancelButton prop, updates border radius styling
packages/design-system/src/components/OcModal/OcModal.spec.ts Updates cancel button selector to .oc-modal-title-actions-cancel
packages/design-system/src/components/OcModal/__snapshots__/OcModal.spec.ts.snap Regenerated snapshots reflecting header cancel button and style changes
packages/web-pkg/src/composables/piniaStores/modals.ts Adds hideCancelButton, hideHeader, hideFooter, and size to Modal type
packages/web-runtime/src/components/ModalWrapper.vue Binds the new hideCancelButton prop
packages/web-pkg/src/helpers/resource/conflictHandling/conflictDialog.ts Sets hideCancelButton: true to hide X button in conflict resolution dialogs
packages/web-pkg/src/components/AppTemplates/AppWrapper.vue Sets hideCancelButton: true for the unsaved changes modal
packages/web-pkg/src/components/CreateLinkModal.vue Removes inline cancel button
packages/web-pkg/src/components/Modals/DatePickerModal.vue Removes inline cancel button
packages/web-runtime/src/components/Modals/AppTokenModal.vue Removes inline cancel button
packages/design-system/docs/components/OcModal/slot.vue Removes inline cancel button from doc example
tests/e2e/support/objects/app-files/link/actions.ts Updates cancel button selector — but uses wrong class name

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AlexAndBear
AlexAndBear marked this pull request as ready for review March 9, 2026 12:42

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In the design mock, the rounded corners of the modals match the rounded corners of the overall content container. We should either increase the rounded corners of the content area, or decrease those of the modal (I think I prefer the latter? but don't know 🤷 )

The upload overlay is still missing from the story.

@AlexAndBear
AlexAndBear requested a review from JammingBen March 10, 2026 10:59

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Love it!

@AlexAndBear

Copy link
Copy Markdown
Member Author

Love it!

Love you 😼

@AlexAndBear
AlexAndBear merged commit 1f08391 into main Mar 10, 2026
1 check passed
@AlexAndBear
AlexAndBear deleted the issues/2053 branch March 10, 2026 12:23
openclouders pushed a commit that referenced this pull request Mar 10, 2026
* feat: polish modals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[design-system] Redesign modals

3 participants