Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

docs: add SearchWidget registration key to the Storefront plugin reference - #2682

Open
Daniel Kirkland (d-kirkland) wants to merge 1 commit into
mainfrom
docs/search-widget-registration-key
Open

Daniel Kirkland (d-kirkland) wants to merge 1 commit into
mainfrom
docs/search-widget-registration-key

Conversation

@d-kirkland

Copy link
Copy Markdown
Contributor

Summary

  • Adds a short section to the Storefront plugin reference. It explains that the PluginManager uses registration keys, not the class names listed in the table.
  • Shows that SearchWidgetPlugin is registered in the core main.js under the key SearchWidget, loaded async, and attached to [data-search-widget].
  • Names the template and block that set the attribute, how options are passed, and the default delay and minimum characters.
  • Gives an async PluginManager.override('SearchWidget', ...) example for plugin developers and links to the override guide.

Related links

Checklist

  • I reviewed affected links, code samples, and cross-references, including PageRef references where relevant. (Names and values were checked against the source at the tag linked above.)
  • I added or updated redirects in .gitbook.yaml if pages were moved, renamed, or deleted. (N/A, no page moved.)
  • I updated .wordlist.txt (and sorted it) if spellcheck flags new legitimate terms. (Check needed if CI Spellcheck flags a word.)
  • Any required dependent changes in downstream modules have already been merged and published. (N/A)
  • This pull request is ready for review.

Notes

  • This PR was fully AI generated (Claude Code) and requires human review. It has not been merged, approved or reviewed by the AI session. Please verify the claims and the changed text against the source before merging.
  • Type: documentation gap, an addition to an existing page. The gap was found by testing the Shopware developer-docs chatbot with AI-generated questions. It was not reported by developers.
  • Codebase files this text was checked against (tag v6.7.15.1): docs/guides/plugins/plugins/storefront/javascript/override-existing-javascript.md L116-L116; src/Storefront/Resources/app/storefront/src/main.js L55-L55; src/Storefront/Resources/app/storefront/src/plugin-system/plugin.manager.js L871-L873; src/Storefront/Resources/app/storefront/src/plugin-system/plugin.manager.js L875-L880; src/Storefront/Resources/app/storefront/src/plugin/header/search-widget.plugin.js L11-L11; src/Storefront/Resources/app/storefront/src/plugin/header/search-widget.plugin.js L26-L27; src/Storefront/Resources/views/storefront/layout/header/search.html.twig L1-L1; src/Storefront/Resources/views/storefront/layout/header/search.html.twig L11-L11; src/Storefront/Resources/views/storefront/layout/header/search.html.twig L7-L10.
  • How it was written and checked: drafted by an AI model from the platform source with every statement mapped to a quoted source line, each quote re-checked mechanically, every sentence re-checked by a second AI model against the source. Please check the cited lines yourself before merging.
  • Deliberately not covered because the source does not settle it: Registration keys and selectors of the other plugins in the table, which were not checked one by one; Events the search widget emits, or how the suggest route works; What happens if an override uses a key that was never registered.
  • No other open pull request changes these pages (checked against all open pull requests on 2026-11-02, including the merge test).
  • Scope: main (Shopware 6.7) only.

🤖 Generated with Claude Code

@d-kirkland Daniel Kirkland (d-kirkland) added Undocumented Feature Feature which is not documented yet and is considered for documentation Improvement PR created to append/modify info in the existing article Guide Guides section of dev docs labels Nov 2, 2026
@shopware-dev-docs-connector

shopware-dev-docs-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Completed with success.
Repository: shopware/docs
Commit: 2c18a95
Preview: https://developer-documentation-nfyb7xj6c-shopware-frontends.vercel.app
Workflow run: #6064

@shopware-dev-docs-connector

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Running.
Repository: shopware/docs
Commit: 6483bcf
Preview: Waiting for workflow logs.

1 similar comment
@shopware-dev-docs-connector

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Running.
Repository: shopware/docs
Commit: 6483bcf
Preview: Waiting for workflow logs.

@d-kirkland

Copy link
Copy Markdown
Contributor Author

Agent 00-Docs (an AI agent, posting from the PR author's account). This PR adds a section to the Storefront plugin reference that gives the registration key of SearchWidgetPlugin (SearchWidget), its selector and how to override it with that key.

How it was checked: the text was drafted from the Shopware platform source at tag v6.7.15.1 with every statement mapped to a quoted source line, and the quotes were re-checked mechanically. A second AI model then checked every sentence against the source, and a third AI check that saw only the final text found the supporting source line for each statement itself. Where those checks found a statement broader than the source allows, the text was narrowed and checked again. The docs lint (rumdl) and the style rules pass, and no other open pull request changes these pages.

A person still needs to confirm the content. Please say if a statement is wrong or if this belongs on a different page.

@Isengo1989

Copy link
Copy Markdown
Contributor

Tobias Berge (@tobiasberge), could you please take a look to see if the addition makes sense?

…rence

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Isengo1989
Micha Hobert (Isengo1989) force-pushed the docs/search-widget-registration-key branch from 6483bcf to 2c18a95 Compare November 16, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feedback-required Guide Guides section of dev docs Improvement PR created to append/modify info in the existing article Undocumented Feature Feature which is not documented yet and is considered for documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants