Skip to content

Conversation

@anwarulislam
Copy link
Contributor

@anwarulislam anwarulislam commented Jan 11, 2026

Description

This pull request introduces a major enhancement to the Tuya Smart extension by adding support for managing and pinning individual switches in the root device search. It also improves device filtering options, updates UI components to handle switches, and adds a contributor. The most important changes are grouped below:

Switch Management and Pinning:

  • Added extraction and display of individual switches in the root device list, allowing users to pin and unpin switches independently of devices. This includes new UI components (SwitchListItem, SwitchPinAction) and logic for handling pinned switches using the pinnedSwitches state. [1] [2] [3] [4] [5] [6] [7]

Filtering Improvements:

  • Enhanced device filtering by adding "On" and "Off" options to the filter dropdown, enabling users to search for switches by their current state. The search placeholder and filtering logic were updated accordingly. [1] [2]

UI and Component Updates:

  • Updated the device and switch list UI to display pinned/unpinned switches and devices in separate sections, and improved switch metadata presentation. Also, changed the device list icon for clarity. [1] [2]

Documentation and Metadata:

  • Updated CHANGELOG.md to document the new switch management enhancement.
  • Added a new contributor to package.json.

Screencast

CleanShot 2026-01-12 at 03 04 18@2x

Checklist

- Reformat conditional expressions and template literals for improved readability.
- Implement switch pinning, add \'On\'/\'Off\' device filters, and enhance switch list item UI.
- feat: Introduce switch management with on/off filtering and pinning capabilities in the device list.
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: tuya-smart Issues related to the tuya-smart extension platform: macOS labels Jan 11, 2026
@raycastbot
Copy link
Collaborator

Thank you for your contribution! 🎉

🔔 @AndresMorelos you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

📋 Quick checkout commands
BRANCH="ext/tuya-smart"
FORK_URL="https://github.com/anwarulislam/raycast-extensions.git"
EXTENSION_NAME="tuya-smart"
REPO_NAME="raycast-extensions"

git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run dev

Due to our current reduced availability, the initial review may take up to 10-15 business days.

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

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: tuya-smart Issues related to the tuya-smart extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants