Skip to content

Conversation

@nibrobb
Copy link
Owner

@nibrobb nibrobb commented Feb 28, 2025

No description provided.

@nibrobb nibrobb linked an issue Feb 28, 2025 that may be closed by this pull request
nibrobb added 27 commits March 4, 2025 11:12
* Add more colors to choose from
* Streamline the flow from button press to api call
* Add todo items for the reverse status to color flow
* They now keep their state using a `RwSignal` and a .class="selected"
 * Default location varies from system to system
  On linux at least you will find store at
  $HOME/.config/${bundlename}/store.json
  Where bundlename is the identifier specified in `tauri.conf.json`
include_str! is not cross-platform
* Add feature 'tracing' and utilize feature 'slack_sync' more
* Hide shit begind cfg( ... ) attributes
* Update Leptos
* TODO: Do not block main thread while user is authorizing Slack app
* Move .cargo/config.toml to common location
* Add documentation
* Fix async polling issue
@nibrobb nibrobb marked this pull request as ready for review November 25, 2025 22:09
@nibrobb nibrobb requested a review from Copilot November 25, 2025 22:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Slack integration to the Luxafor-ui application, enabling users to synchronize their Luxafor device status with their Slack presence. The integration includes OAuth authentication flow, token storage, and automatic profile updates when changing light colors.

Key changes:

  • Added Slack API integration with OAuth authentication and status synchronization
  • Implemented visual feedback for selected color buttons with new CSS styling
  • Updated dependencies and configuration files to support the new Slack integration feature

Reviewed changes

Copilot reviewed 16 out of 19 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src-tauri/src/slack_api.rs New module implementing Slack OAuth flow, token management, and profile updates
src-tauri/src/lib.rs Integrated Slack functionality into main app logic with color-to-profile mapping
src/app.rs Added selected state tracking for color buttons using Leptos signals
styles.css Added styling for selected button state and refined button animations
src-tauri/Cargo.toml Added Slack-related dependencies with optional feature flags
src-tauri/tauri.conf.json Adjusted window dimensions and fixed app identifier format
.github/workflows/tauri-build.yml Updated CI workflow with macOS support and improved toolchain setup
README.md Added documentation for Slack integration feature
.env.template Template for required Slack API environment variables
.cargo/config.toml Configuration for Slack session URL

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* Use cargo-binstall github action 

* Pass -y (--no-confirm) flag to cargo-binstall

* Pass GITHUB_TOKEN to resolve GitHub API rate limiting
* Add timeout to Slack Authentication

* Mark `tokio` as an optional dependency
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.

Slack integration

2 participants