Skip to content

Remove icon from element + alert + button#226

Merged
Hopsaheysa merged 1 commit intodevelopfrom
issues/225-icon-element
Nov 4, 2025
Merged

Remove icon from element + alert + button#226
Hopsaheysa merged 1 commit intodevelopfrom
issues/225-icon-element

Conversation

@Hopsaheysa
Copy link
Member

#225

icon String removed from Element + Alert + Button

  • kept in ListItem

  • docs + mig. guide were correct

@Hopsaheysa Hopsaheysa requested a review from Copilot November 4, 2025 13:45
Copy link

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 refactors the PreApprovalElement class hierarchy by removing the icon property from the base class and its subclasses (PreApprovalElementButton and PreApprovalElementAlert), while retaining it only in PreApprovalElementListItem where it is actually used and serialized.

Key changes:

  • Removed the icon parameter from PreApprovalElement base class constructor
  • Removed the icon parameter from PreApprovalElementButton and PreApprovalElementAlert subclasses
  • Made the icon property a proper field in PreApprovalElementListItem with @SerializedName annotation

Reviewed Changes

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

File Description
PreApprovalElement.kt Removed unused icon field from base class and subclasses where it wasn't needed; made it a proper serialized field only in PreApprovalElementListItem
PreApprovalElementTypeAdapter.kt Updated constructor calls to remove the icon parameter for PreApprovalElementAlert, PreApprovalElementButton, and PreApprovalElement

@Hopsaheysa Hopsaheysa requested a review from kober32 November 4, 2025 13:49
@Hopsaheysa Hopsaheysa merged commit c944789 into develop Nov 4, 2025
10 checks passed
@Hopsaheysa Hopsaheysa deleted the issues/225-icon-element branch November 4, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants