Skip to content

feat: add long press mixin#545

Merged
che-effe merged 9 commits into
developfrom
LUI-60/LongPress
Oct 23, 2024
Merged

feat: add long press mixin#545
che-effe merged 9 commits into
developfrom
LUI-60/LongPress

Conversation

@che-effe

Copy link
Copy Markdown
Contributor

Description

Creates a Long Press handler mixin that can work with any key. Component with this mixin has to set a threshold in ms to define long press length and also have a signal listers for longPressHit signal.
Handler method supplied will be called when long press threshold is reached and will recieve the key value that was pressed.
Client can then execute as they wish on any long pressed key they desire.

References

LUI-60

Testing

View withLongPress story in storybook and make sure the component works as described above.

Checklist

  • all commented code has been removed
  • any new console issues have been resolved
  • code linter and formatter has been run
  • test coverage meets repo requirements
  • PR name matches the expected semantic-commit syntax

@CLAassistant

CLAassistant commented Oct 21, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@che-effe
che-effe marked this pull request as draft October 21, 2024 18:45

@ImCoolNowRight ImCoolNowRight 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.

Just a few thoughts on the mixin portion. I know the rest is still WIP.

Comment thread packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js Outdated
Comment thread packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js Outdated
Comment thread packages/@lightningjs/ui-components/src/mixins/withLongPress/withLongPress.mdx Outdated
@che-effe
che-effe marked this pull request as ready for review October 22, 2024 21:09
@che-effe che-effe changed the title L UI 60/long press feat: add long press mixin Oct 22, 2024
Comment thread packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js Outdated
Comment thread packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js Outdated
Comment thread packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js Outdated
Comment thread packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js Outdated

@ctoddy ctoddy 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.

l
g
t
m
😤

@che-effe
che-effe merged commit 11d2368 into develop Oct 23, 2024
@che-effe
che-effe deleted the LUI-60/LongPress branch October 23, 2024 20:28
svc-lightning-ui-components pushed a commit that referenced this pull request Oct 23, 2024
# [@lightningjs/ui-components-v2.24.0](https://github.com/rdkcentral/Lightning-UI-Components/compare/@lightningjs/ui-components-v2.23.3...@lightningjs/ui-components-v2.24.0) (2024-10-23)

### Bug Fixes

* move type export up ([#547](#547)) ([55e8d4c](55e8d4c))
* **ScrollWrapper:** bubble focus events and remove signals ([#546](#546)) ([ceec205](ceec205))

### Features

* add long press mixin ([#545](#545)) ([11d2368](11d2368))
@svc-lightning-ui-components

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version @lightningjs/ui-components-v2.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

svc-lightning-ui-components pushed a commit that referenced this pull request Oct 23, 2024
# [@lightningjs/ui-components-test-utils-v1.6.0](https://github.com/rdkcentral/Lightning-UI-Components/compare/@lightningjs/ui-components-test-utils-v1.5.0...@lightningjs/ui-components-test-utils-v1.6.0) (2024-10-23)

### Bug Fixes

* move type export up ([#547](#547)) ([55e8d4c](55e8d4c))

### Features

* add long press mixin ([#545](#545)) ([11d2368](11d2368))
@svc-lightning-ui-components

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version @lightningjs/ui-components-test-utils-v1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants