Commit Graph
26 Commits
Author SHA1 Message Date
NeilClack 312f5e2a90 Rename rhemawave to radiantwave throughout
build-prod.yml / build (push) Failing after 2s
build-dev.yml / build (push) Failing after 2s
2026-08-08 01:20:11 -05:00
NeilClack 91711eef93 Replace AudioFile with AudioTrack, fix download+orphan+MD5 sync, always play original audio fallback
AudioTrack table replaces AudioFile (Filename, Name, AssignedFrequency,
MD5, Selected, Order) — fixes relative-path bug in scrollerPage.go that
caused "file not found" for single-track selection.

Download goroutine now:
  - Accepts *gorm.DB and updates AudioTrack.MD5 after each download.
  - Treats checksums.md5 as source of truth: removes local files and DB
    records not in the manifest (orphans).
  - Strips "./" prefix from manifest filenames (GNU md5sum format).

AudioOptions.go seeds 14 AudioTrack records matching server checksums.md5.
List background quad width matches the widest item (+ padding), centered.

scrollerPage.go switchAudioForFrequency falls back to original/selected
audio when a frequency has no matching track or file.  playOriginalAudio
is a no-op on repeat calls to avoid 5-second audio restart loop.

Fixes progress display: passes Max=0 during downloads so Home page shows
"x / X Files Downloaded" text instead of bogus "100.0%" percentage.

Downstream audio switching (DynamicAudio) verifies an AudioTrack exists
for the frequency before assigning it to a stream — frequencies without
a track (e.g. 528 Hz) gracefully use original audio instead.
2026-07-29 16:19:15 -05:00
NeilClack 6dda462884 Add audio selection 2026-07-29 14:46:11 -05:00
NeilClack f29d1d1af5 Bump version to 07112026-1710; move completed items to release section 2026-07-11 17:10:59 -05:00
NeilClack a93e475899 Fix double-close panic on DownloadDone channel
When transitioning from DOWNLOADING_ASSETS to READY, checkState()
re-navigates to HOME. The new Home page sees the already-closed
MessageChannel and tries to close DownloadDone again, causing a
panic that restarts the process.

Guard the close with a downloadDone bool field on Home.
2026-07-11 16:36:15 -05:00
NeilClack 3f8144a708 Gate READY on download completion; move audio to ~/.radiantwave/audio
State machine now uses DOWNLOADING_ASSETS before READY. Downloads closing
the DownloadDone channel signals checkState() to proceed. Download failure
sets downloadFailed flag which prevents READY. Audio files moved from
~/.local/share/rhemawave/audio to ~/.radiantwave/audio/.

Regression tests in application_test.go (linux build-tagged due to
network package D-Bus init). Version 0.6.
2026-07-11 13:43:05 -05:00
NeilClack bb132ceeaf fix: resolve 4 critical audio mixer bugs (v0.5)
- SwitchDevice volume silently zeroed: Init uses cfg.SavedVolume,
  SwitchDevice restores saved volume after reopening device
- SwitchDevice not persisted to database: caller saves SelectedAudioDevice
- Device restore passes invalid 'system default' to SDL: now passes ''
- Stop() no-op when audio toggled off: removed AudioEnabled guard

Regression tests added for all 4 bugs. CI now runs go test before build.
2026-07-11 11:39:58 -05:00
NeilClack 141613f571 Update version string to indicate audio-bug-fixes 2026-07-11 09:01:05 -05:00
NeilClack f00cb9efb6 Fix download progress and prevent re-downloading existing audio. 2026-06-27 13:59:22 -05:00
NeilClack ca18000c8e Update version string for validation 2026-06-27 01:47:06 -05:00
NeilClack 2735af5fbb refactor: remove cached AppConfig pointer and read configuration directly from DB
Replace in-memory atomic AppConfig caching with direct DB queries via db.GetConfig
across application and page layers. This simplifies state management and ensures
all components always operate on the latest persisted configuration.

Key changes:
- Remove Application.Config atomic cache and refreshCache mechanism
- Eliminate PageCtx.CfgPtr and pass DB handle instead
- Replace all cfg reads with db.GetConfig(app.DB)
- Update mixer, audio, UI pages, and initialization paths accordingly
- Explicitly set AppConfig table name to avoid GORM pluralization issues
- Reduce DB connection pooling (SetMaxIdleConns(1))
- Standardize application font to SpaceMonoNerdFont-Regular
- Lower default audio volume (1.0 → 0.2)
- Add Unicode checkmark glyph to font map

Behavioral impact:
- Configuration is no longer cached in memory
- Every config access now hits the DB (more consistent, slightly more overhead)
2026-06-26 22:51:32 -05:00
NeilClack 4dd78b5ade Update version number for visual validation 2026-06-26 18:07:12 -05:00
NeilClack f8e75194e8 Update version hash for visual verification 2026-06-24 23:20:57 -05:00
NeilClack cc2887d2a0 Update version text and add more download logs 2026-06-24 14:57:42 -05:00
NeilClack 4cd24375cd Add audio features
- Downloads all audio files in the background
- Tracks overall progress of audio downloads, keeping "position" when
  returning
- Scroller dynamically switches between audio tracks based on the
  solfeggio frequency of the currently playing proclamations
- Removed audio tracks list from Audio Options page
- Honestly a whole host of other stuff I forgot to mention
2026-06-19 00:13:25 -05:00
NeilClack ac86864c72 Add downloading message to home screen.
Download files in the background and keep track of progress.
2026-06-18 22:43:47 -05:00
NeilClack 2af1aae885 Audio files download on application start. Home screen shows status message 2026-06-18 21:52:29 -05:00
NeilClack 7ecb90b63b Downloads are working and the goroutine is reporting updates appropriately. 2026-06-18 21:28:16 -05:00
NeilClack ddab8e446c Update version for visual preference during beta phase 2026-06-03 11:21:28 -05:00
NeilClack f7ef42c84a Rename application to Radiant Wave 2026-05-26 14:12:27 -05:00
NeilClack 0197f6cba8 Cleanup version by removing the 'v' 2026-04-23 17:30:33 -05:00
NeilClack 89b3a3b6d5 Shorten version
Customer's don't care about these updates, just minor/major, so why confuse them?
2026-04-23 17:30:33 -05:00
NeilClack 05a7098886 Remove devices list and device vector length check 2026-04-23 17:26:22 -05:00
NeilClack 12a20b336f Remove display counts 2026-03-30 09:20:45 -05:00
NeilClack 331a8255fd Set version to 1.0.0 statically 2026-03-30 00:10:21 -05:00
NeilClack 17c088cc2f Update Database
Database is more usable now.
All pages have been updated to use the database, and share an application configuration.
Page Stack has been removed, no more pages hanging around in memory. Replaced with a 'Router' which uses an Enum to determine which page should be displayed, destroys the old page and initializes the new page all in one go. No more push, pop, rollback, etc. No more holding instances of pages.
Logger has been updated with proper timestamps and sorting now works as expected."
2026-03-23 15:02:07 -05:00