Skip to content

feat(config): add configurable application start page#34

Merged
flexiondotorg merged 2 commits intomainfrom
url-log
Mar 24, 2026
Merged

feat(config): add configurable application start page#34
flexiondotorg merged 2 commits intomainfrom
url-log

Conversation

@flexiondotorg
Copy link
Copy Markdown
Member

Summary

Users can now select which page (Home, New, Radio, or All Playlists) the Apple Music app opens to via a tray menu submenu with radio selection. The feature includes complete localisation and config persistence.

Changes

  • Add start page configuration option to settings module with fallback to Home
  • Implement tray submenu with radio-selected options for each start page
  • Extend internationalisation with localisable labels for each page choice
  • Update main entry point to construct URLs based on selected start page
  • Log navigation events for URL tracking and debugging

Testing

  • Verify start page selection persists across application restarts
  • Confirm each radio option correctly navigates to the selected page
  • Test localisation keys appear correctly in each language
  • Validate URL construction for Home, New, Radio, and All Playlists pages
  • Ensure default behaviour (Home page) works when config is absent

Related Issues

Implements configurable application start page feature request.

- Add did-start-navigation listener to capture initial navigation events
- Expand did-navigate handler to log navigation URLs for debugging
- Preserve existing navigation handling whilst improving observability

Signed-off-by: Martin Wimpress <code@wimpress.io>
- Add startPage config property supporting 'home', 'new', 'radio',
  'all-playlists'
- Implement getStartPage() and setStartPage() in config module
- Add comprehensive i18n strings for start page labels and options
- Update main.ts to build URLs based on selected start page
- Add tray menu with radio button selection for start page preference

Signed-off-by: Martin Wimpress <code@wimpress.io>
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 4 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/config.ts">

<violation number="1" location="src/config.ts:101">
P2: Default start page fallback is incorrect: it returns `new` instead of `home` when no config exists.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@flexiondotorg flexiondotorg merged commit 8f4d0fa into main Mar 24, 2026
11 checks passed
@flexiondotorg flexiondotorg deleted the url-log branch March 24, 2026 00:51
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.

1 participant