Skip to content

Move document_or_parent_icon into SearchResultComponent - #1716

Open
jcoyne wants to merge 1 commit into
mainfrom
search-result-icon-component
Open

jcoyne wants to merge 1 commit into
mainfrom
search-result-icon-component

Conversation

@jcoyne

@jcoyne jcoyne commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

ArclightHelper#document_or_parent_icon is only used by Arclight::SearchResultComponent, so this moves its logic into the component as #icon_name. The helper is deprecated and kept for downstream apps that may call it.

#1701 renamed this helper to document_level_icon. That name hasn't been released yet, so this PR removes it rather than deprecating a second name. The document_or_parent_icon deprecation now points to the component method.

The icon cases are now tested in a new component spec. The rendered markup is unchanged.

Deprecate ArclightHelper#document_or_parent_icon in favor of
Arclight::SearchResultComponent#icon_name.
@jcoyne
jcoyne force-pushed the search-result-icon-component branch from c5a4ba6 to 7c87d6f Compare December 3, 2026 03:25
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.

1 participant