refactor to astro app #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Commit
79831f8pushed:.cursoras a submodule (with additional unstaged changes present).Refs #1
Commit 501e064 pushed:
Purpose: Implements PWA support and refactors the main page for the Astro app, aligning with the migration and refactor described in issue #1.
This commit references and advances this issue. See commit for full details.
Refactor complete: migrated to full Astro component architecture.
Summary of changes:
NewGame,GameList,GameDetail,GameHistory,Modals,FullscreenToggle.MainLayout.astrofor global structure and meta tags..astrofiles.index.astroto use the new layout and components.index.jsandindex.cssfiles.Impact:
Commit: 4816e39c
This fully resolves the migration and refactor described in this issue. 🎉
Commit
de07d6epushedSummary:
index.astrointo modular Astro components for each screen and modal.src/styles/index.css.src/scripts/index.jsandpublic/scripts/index.js.Impact:
This commit references this issue (Refs #1) and is directly related to the refactor request.
Commit 8384d08 migrates the UI from Astro/vanilla JS to a modular Preact component architecture, removing all legacy code and aligning the project with modern best practices.
Summary of changes:
.astrocomponents with.jsxPreact components and added corresponding CSS modules.index.astroto use the newAppPreact component; removed legacy script and Astro imports..astrocomponent files and main JS logic (src/scripts/index.js,public/scripts/index.js).astro.config.mjsfor Preact integration.package.jsonandpackage-lock.jsonto include@astrojs/preactandpreact.tsconfig.jsonfor Preact JSX support.index.cssto keep only global resets and utility styles.This commit addresses and references this issue. If further modularization or cleanup is needed, please specify.
Commit b44b013 refactors the filter bar and button styling for the game list view.
Summary of changes:
App.jsxtoGameList.jsxfor better separation of concerns and modularity.GameList.jsxto acceptfilterandsetFilterprops, rendering and controlling the filter bar internally..new-game-buttonstyles to the global stylesheet (index.css) for consistent styling of the "Neues Spiel" button.GameList.module.cssand are only used in the game list.This improves UI consistency and code maintainability. If further UI or logic changes are needed, please specify.
Commit incoming: Refactored the New Game screen for modern, card-like, dark-themed UI. Removed select dropdowns for previous players, now only datalist+input for player names. Updated paddings, backgrounds, borders, and font sizes for a visually consistent, modern look. See commit details for exact changes.
Commit
c845b0cpushed:This addresses the UI/UX requirements for the new game screen. Refs #1.
UI/UX improvement: New Game screen now supports:
This makes repeated game entry much faster and more user-friendly. See commit for details. Commit incoming.
Commit
d81c375pushed:Refs #1.
Commit 7cb79f5 fixes the following:
This resolves the modal and game screen styling issues. Please review and close if resolved.
Fixes #1
Refactor completed and committed in
209df5d9f2.src/componentsfor Astro, Preact, and general best practices (arrow functions, JSDoc, accessibility, key usage, memoization, etc.)src/pages/index.astroto use semantic HTML and remove layout elementssrc/styles/index.cssfor deduplication and global-only rulesThis brings the codebase in line with modern best practices and improves maintainability, accessibility, and clarity.
View commit on Gitea
Fixes #1
Refactor completed and committed in
d1379985f3.This ensures DRY, maintainable, and consistent styling across the app.
View commit on Gitea
Refs #1
Commit
429d479pushed:GameDetail.jsx.ValidationModal.module.cssto finalize style consolidation.This commit resolves all outstanding tasks for the refactor and adds the requested feature enhancement. Closing the issue.