How thanakorn-tata/testannouncement works
Announcement is a desktop energy-saving announcement utility with separate Windows and macOS implementations. Its principal workflow checks campaign dates and invocation mode, then shows either a tracked farewell popup or a toast notification. The Windows entry point also registers a Start Menu shortcut and dispatches to dedicated popup and toast components; the macOS script performs its own date/message selection and notification dispatch. The README provides no capability detail, so the macOS workflow is based on its sampled source; relationships not visible there are omitted.
Main entry points: Program.cs Windows dispatcher · main.py macOS dispatcher · MainPopupForm.cs Farewell popup · MessageRepository.cs Message repository
Components 13
Windows app
- Windows dispatcher
Program.cs - Campaign tracking
Program.cs - Shell shortcut
Services/ShortcutService.cs - Farewell popup
UI/MainPopupForm.cs - Windows toast
Services/ToastService.cs
macOS app
- macOS dispatcher
macos/main.py - macOS campaign logic
macos/main.py - macOS popup
macos/main.py - macOS notification
macos/main.py - macOS notification service
Messages and settings
- Toast settings
Configuration/AppSettingsManager.cs - Message repository
Repositories/MessageRepository.cs
Other components
- User or scheduler
Connections 13
- User or scheduler → Windows dispatcher: launches
Program.cs - Windows dispatcher → Toast settings: reads settings
Program.cs - Windows dispatcher → Campaign tracking: checks campaign
Program.cs - Windows dispatcher → Shell shortcut: ensures shortcut
Program.cs - Windows dispatcher → Farewell popup: opens popup
Program.cs - Windows dispatcher → Message repository: reads toast text
Program.cs - Windows dispatcher → Windows toast: shows toast
Program.cs - Farewell popup → Message repository: renders message
UI/MainPopupForm.cs - User or scheduler → macOS dispatcher: launches
macos/main.py - macOS dispatcher → macOS campaign logic: checks dates
macos/main.py - macOS dispatcher → macOS popup: opens popup
macos/main.py - macOS dispatcher → macOS notification: shows notification
macos/main.py - macOS notification → macOS notification service: invokes osascript
macos/main.py