Skip to content

[IMP] web: add ID to search input in CommandPalette - #110381

Closed
thjo-odoo wants to merge 0 commit into
odoo:masterfrom
odoo-dev:master-knowledge-manage_visibility-thjo
Closed

[IMP] web: add ID to search input in CommandPalette#110381
thjo-odoo wants to merge 0 commit into
odoo:masterfrom
odoo-dev:master-knowledge-manage_visibility-thjo

Conversation

@thjo-odoo

@thjo-odoo thjo-odoo commented Jan 19, 2023

Copy link
Copy Markdown
Contributor

This commit adds an ID to the input inside the CommandPalette template. It is needed because we are adding inside Knowledge via this PR, odoo/enterprise#34018, an icon near the input of the CommandPalette.

This is done in order to keep this inheritance in time and ensure that it will likely never be removed.

task-2900465


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@robodoo

robodoo commented Jan 19, 2023

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@thjo-odoo
thjo-odoo marked this pull request as ready for review January 19, 2023 10:22
@C3POdoo
C3POdoo requested review from a team, FrancoisGe and Polymorphe57 and removed request for a team January 19, 2023 10:23
@thjo-odoo
thjo-odoo force-pushed the master-knowledge-manage_visibility-thjo branch from bd78302 to 5746db3 Compare January 19, 2023 10:26
@C3POdoo C3POdoo added the RD research & development, internal work label Jan 19, 2023
@thjo-odoo
thjo-odoo force-pushed the master-knowledge-manage_visibility-thjo branch 2 times, most recently from ad73ab3 to 8b77e71 Compare February 10, 2023 10:42
<div class="o_command_palette_search input-group mb-2 px-4 py-3 border-bottom">
<span t-if="state.namespace !== 'default'" class="o_namespace d-flex align-items-center me-1" t-out="state.namespace"/>
<input class="form-control border-0 p-0" type="text" data-allow-hotkeys="true" t-att-value="state.searchValue" t-ref="autofocus" t-att-placeholder="state.placeholder" t-on-input="onSearchInput" t-on-keydown="onKeyDown"/>
<input id="command_palette_input" class="form-control border-0 p-0" type="text" data-allow-hotkeys="true" t-att-value="state.searchValue" t-ref="autofocus" t-att-placeholder="state.placeholder" t-on-input="onSearchInput" t-on-keydown="onKeyDown"/>

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.

I'm not sure this is necessary, your xpath in knowledge could be something like:

<xpath expr="//div[hasclass('o_command_palette_search')]/input" position="after">

@thjo-odoo
thjo-odoo force-pushed the master-knowledge-manage_visibility-thjo branch 4 times, most recently from 2b797f5 to 072da1c Compare February 15, 2023 07:05
@thjo-odoo thjo-odoo closed this Feb 15, 2023
@thjo-odoo
thjo-odoo force-pushed the master-knowledge-manage_visibility-thjo branch from 072da1c to f03dd28 Compare February 15, 2023 12:35
@thjo-odoo
thjo-odoo deleted the master-knowledge-manage_visibility-thjo branch February 15, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants