Skip to content

Improve UI - #24

Merged
MathieuSoysal merged 17 commits into
masterfrom
improve_ui
Aug 19, 2026
Merged

Improve UI#24
MathieuSoysal merged 17 commits into
masterfrom
improve_ui

Conversation

@MathieuSoysal

Copy link
Copy Markdown
Owner

This pull request introduces comprehensive project documentation for the Mars Lander simulator and makes some minor JavaScript and CSS changes to align with new standards and improve maintainability. The most significant addition is a detailed Copilot instructions file that covers architecture, tech stack, UX, accessibility, and design system guidelines.

Key changes:

Documentation & Project Standards

  • Added a new .github/copilot-instructions.md file containing an extensive project summary, tech stack details, architecture and contribution rules, UX guidelines, accessibility requirements, user research, and implementation priorities for Copilot suggestions. This document serves as a single source of truth for development and onboarding, emphasizing pedagogy, clarity, and accessibility.

Frontend JavaScript

  • Updated the import path for the WASM module in web/js/wasm-interface.js to remove the version query parameter, simplifying the import statement.
  • Changed the export of predefinedMaps in wasm-interface.js to use an explicit export statement, making it available for import elsewhere in the codebase.

Styling / Design Tokens

  • Removed the entire contents of css/critical.css, including all CSS custom properties (design tokens), global layout, and critical UI styles. This suggests a migration or consolidation of critical CSS elsewhere, possibly to align with the new documentation or design system.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR overhauls the Mars Lander simulator’s frontend UI to better align with a new “mission control” layout and accessibility-focused standards, and adds a comprehensive Copilot guidance document for contributors.

Changes:

  • Reworked the main HTML structure (sidebar onboarding + controls, main viewer, playback bar, loader, error banner) and rewrote the CSS into a smaller token-driven stylesheet.
  • Refactored JS to use ES-module exports for WASM integration and simplified UI controller state/playback/tooltip logic.
  • Added .github/copilot-instructions.md with detailed architecture, UX, accessibility, and contribution guidelines.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
web/styles.css Replaced large legacy styles with tokenized, accessibility-oriented layout + component styles.
web/index.html Restructured page into sidebar + main viewer, added onboarding content, playback controls, loader, and error banner.
web/js/wasm-interface.js Simplified WASM init and exposed predefinedMaps + runMarsLanderSimulation as module exports.
web/js/ui-controller.js Major rewrite: new playback model, tooltips, onboarding collapse, sidebar toggle, and run flow.
.github/copilot-instructions.md Added comprehensive Copilot/project guidance and conventions.
css/critical.css Removed critical CSS file.
.gitignore Ignored .vscode.
package-lock.json Lockfile metadata updates (peer flags).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web/js/wasm-interface.js
Comment thread web/index.html Outdated
Comment thread web/js/ui-controller.js
Comment thread web/js/ui-controller.js Outdated
Comment thread web/index.html
Comment thread .github/copilot-instructions.md Outdated
Comment thread web/styles.css
MathieuSoysal and others added 2 commits May 28, 2026 22:02
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@solvictor solvictor left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 27, 2026

Copy link
Copy Markdown

Deploying mars-lander with  Cloudflare Pages  Cloudflare Pages

Latest commit: 737f04c
Status: ✅  Deploy successful!
Preview URL: https://c216acfe.mars-lander.pages.dev
Branch Preview URL: https://improve-ui.mars-lander.pages.dev

View logs

@MathieuSoysal
MathieuSoysal merged commit 651c8d1 into master Aug 19, 2026
2 checks passed
@MathieuSoysal
MathieuSoysal deleted the improve_ui branch August 19, 2026 14:25
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.

3 participants