Commit graph

17 commits

Author SHA1 Message Date
Paweł Orzech
ca7d0dfe84
fix: Update Torn.com item market URLs to new format. 2026-01-17 22:32:42 +00:00
Paweł Orzech
b443ef3eeb
housekeeping 2026-01-17 21:59:39 +00:00
Paweł Orzech
4b4f1c15f7
feat: Improve API data fetching reliability with cache control, enhanced logging, and error handling, and update version to 1.2.2. 2026-01-17 21:58:12 +00:00
Paweł Orzech
c21057146d
refactor: Enhance API error handling with logging, introduce minimum loading time, update app version to 1.2.1, and ignore .DS_Store. 2026-01-17 21:34:47 +00:00
Paweł Orzech
1747bb110a
Improve refresh button hit area in StatusView
Added a fixed frame and content shape to the refresh button's image to make it easier to interact with. This enhances the usability of the refresh action in the StatusView.
2026-01-17 21:27:28 +00:00
Paweł Orzech
b298404791
Update README.md 2026-01-17 21:26:07 +00:00
Paweł Orzech
7814568b60
Update app.png 2026-01-17 21:23:55 +00:00
Paweł Orzech
10a441e557
Add automatic update checker and UI integration
Introduces an UpdateManager to check for new releases on GitHub and integrates update notifications into the app's state and SettingsView. Updates Info.plist to version 1.2, adds MacTorn-v1.2.zip, archives v1.0 zip, and revises README to document the new update checker and other improvements.
2026-01-17 21:17:57 +00:00
Paweł Orzech
e75131aa67
Add new views and models for money, attacks, faction, properties, and watchlist
Introduces MoneyView, AttacksView, FactionView, PropertiesView, and WatchlistView with corresponding models and state in AppState. Updates ContentView to use a tabbed interface for navigation between new sections. Extends TornModels.swift with new data structures for money, battle stats, attacks, faction, properties, and watchlist items. Adds logic in AppState for fetching, parsing, and managing new data, including watchlist price fetching. Updates project file to include new views.
2026-01-17 21:10:57 +00:00
Paweł Orzech
7f947b635c
Add app screenshot to README
Added app.png and updated README.md to include a screenshot of the MacTorn app for better visual context.
2026-01-17 19:57:24 +00:00
Paweł Orzech
4813da8c7f
Make Torn models more robust to missing API data
Updated TornModels.swift to make many properties optional, improving resilience to missing or incomplete API responses. Adjusted ChainView and StatusView to handle optional values safely. Refactored SettingsView for a cleaner layout and removed notification rules UI. Updated README to reflect notification changes and clarify features.
2026-01-17 19:53:28 +00:00
Paweł Orzech
53a234afcd
Add notification rules, status badges, and chain support
Introduces customizable notification rules with sound options and a UI for managing them in SettingsView. Adds support for displaying chain status, hospital/jail badges, unread messages, and recent events in StatusView. Makes the refresh interval configurable. Updates README with new features and installation instructions. Updates Xcode project to include new components and utilities.
2026-01-17 19:43:07 +00:00
Paweł Orzech
01b0b9a436
Add status, chain, events, and sound features
Introduces new models for status, chain, events, and messages in TornModels.swift, along with notification rules and sound options. Adds a SoundManager utility for playing notification sounds. Implements new SwiftUI components: ChainView, EventsView, and StatusBadgesView for displaying chain progress, recent events, and status badges. Updates app icon assets and Contents.json for proper macOS icon support.
2026-01-17 19:36:55 +00:00
Paweł Orzech
974556b24c
Add player info and support links to UI
Extended TornResponse to include player name and ID, and updated API selections to fetch basic info. StatusView now displays the player's name and ID if available. SettingsView adds a 'Tip Me' section for developer support and a GitHub source link.
2026-01-17 19:29:13 +00:00
Paweł Orzech
802fdfa1a3
Refactor TornResponse model and remove shortcuts editor
Updated TornResponse to use separate bar properties for energy, nerve, life, and happy, with a computed Bars property for internal use. Made Bar properties optional where appropriate and removed Codable conformance from Bars. Removed the Shortcuts Editor and related views from SettingsView. Adjusted StatusView to use fixedSize for better layout handling.
2026-01-17 18:05:37 +00:00
Paweł Orzech
455f9f3916
Add launch at login, shortcuts, and UI improvements
Introduces LaunchAtLoginManager and ShortcutsManager for launch at login and customizable quick links. Updates SettingsView with toggles and a shortcuts editor, enhances ContentView and StatusView with improved layout, travel status, and quick links grid. ProgressBarView now visually highlights full bars and improves appearance. Adds travel notifications and updates the README with new features and setup instructions.
2026-01-17 18:00:47 +00:00
Paweł Orzech
0a0f109fa1
Initial commit 2026-01-17 17:57:45 +00:00