Skip to content

Separate hotspot management from tray implementation#10

Merged
AghastyGD merged 3 commits into
mainfrom
refactor/application-layer
Jun 5, 2026
Merged

Separate hotspot management from tray implementation#10
AghastyGD merged 3 commits into
mainfrom
refactor/application-layer

Conversation

@AghastyGD

Copy link
Copy Markdown
Owner

Summary

This PR moves hotspot management out of the tray module and into a dedicated application layer.

Previously, the tray was responsible for both UI interactions and hotspot operations. This made the tray module responsible for concerns that were not directly related to the user interface.

What's included

  • Introduce a dedicated application-level hotspot module.
  • Move hotspot start, stop, and status operations into the new module.
  • Centralize hotspot configuration loading.
  • Update the tray to delegate hotspot actions to the application layer.
  • Remove duplicated hotspot logic from the tray implementation.

Notes

This is primarily a refactoring PR focused on separation of concerns.

The tray is now responsible for user interaction, while hotspot management lives in a reusable application layer. This should make future integrations easier and keep the tray implementation focused on UI-related responsibilities.

AghastyGD added 3 commits June 5, 2026 09:29
- Add src/application/hotspot.rs with start(), stop(), is_active()
- Hotspot logic (device discovery, settings loading, logging) moved out of tray
- Tray callbacks now delegate to application layer
- SettingsService consumed in application layer, not in tray
- system_hostname() fallback lives in application layer
- tray/mod.rs reduced to pure UI concerns
@AghastyGD AghastyGD self-assigned this Jun 5, 2026
@AghastyGD AghastyGD added the enhancement New feature or request label Jun 5, 2026
@AghastyGD
AghastyGD merged commit ebe5a43 into main Jun 5, 2026
1 check passed
@AghastyGD
AghastyGD deleted the refactor/application-layer branch June 6, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant