Fantaasta Desktop [patched] May 2026

use rusqlite::Connection, Result; pub struct Database conn: Connection,

Use GitHub Actions to build for all platforms on tag push: fantaasta desktop

export async function runDraftSim(leagueId: number) return await invoke('simulate_draft', leagueId ); pub struct Database conn: Connection

export const useLeagueStore = create<LeagueState>((set) => ( currentLeague: null, players: [], isLoading: false, setLeague: (league) => set( currentLeague: league ), refreshPlayers: async (sport) => set( isLoading: true ); const players = await fetchPlayers(sport); set( players, isLoading: false ); , )); // components/DraftSimulator/DraftSimulator.tsx import useState from 'react'; import runDraftSim from '../../services/playerService'; export function DraftSimulator( leagueId : leagueId: number ) const [results, setResults] = useState(null); export const useLeagueStore = create&lt

return ( <div className="p-4 border rounded-lg shadow"> <h2 className="text-xl font-bold">Draft Simulator</h2> <button onClick=handleSimulate className="mt-2 px-4 py-2 bg-blue-500 text-white rounded"> Simulate Draft </button> results && <pre>JSON.stringify(results, null, 2)</pre> </div> );