Skip to content

Restructure assets into assets/ and consolidate docs - #2

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/restructure-assets-docs-fa65
Jul 1, 2026
Merged

Restructure assets into assets/ and consolidate docs#2
cursor[bot] merged 1 commit into
mainfrom
cursor/restructure-assets-docs-fa65

Conversation

@adamsimms

Copy link
Copy Markdown
Owner

Summary

Reorganizes the flat site root into a conventional layout and cleans up redundant files.

  • Static assets moved to assets/css/, assets/js/, and assets/images/
  • NOTICE merged into LICENSE (Attributions section)
  • wave.php / wave2.php removed; legacy URLs still redirect via .htaccess
  • og-image.png / og-image.svg removed; Open Graph image meta tags dropped for now (Twitter uses summary card)
  • Docs updated: README project structure, CHANGELOG unreleased section
  • Deploy smoke tests extended to verify asset URLs and legacy redirect

Layout after merge

index.php, call-api.php, health.php   # PHP endpoints at root
lib/                                  # shared PHP
assets/css/, assets/js/, assets/images/
cache/, tests/, .htaccess, robots.txt, sitemap.xml

Test plan

  • No stale references to old root-level asset paths
  • CI: PHP lint + PHPUnit on PR
  • Post-deploy: assets/css/waves.css, assets/js/waves.js, assets/images/favicon.svg return 200
  • Legacy /wave.php and /wave2.php still redirect
Open in Web Open in Cursor 

- Move CSS, JS, and images under assets/ (css/, js/, images/)
- Remove wave.php and wave2.php; keep legacy redirects in .htaccess
- Merge NOTICE into LICENSE attributions section
- Remove og-image assets and og:image meta tags
- Update README, CHANGELOG, and deploy smoke tests for new paths

Co-authored-by: Adam Simms <hello@adamsimms.xyz>
Copilot AI review requested due to automatic review settings July 1, 2026 10:59
@cursor
cursor Bot merged commit 2789e6e into main Jul 1, 2026
3 checks passed
@cursor
cursor Bot deleted the cursor/restructure-assets-docs-fa65 branch July 1, 2026 11:02

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

Reorganizes the site into a more conventional layout by moving static files under assets/, removing legacy root-level entry points and social preview images, and updating documentation/deploy checks to match the new structure.

Changes:

  • Move CSS/JS/images into assets/ and update index.php to reference new asset paths.
  • Consolidate attributions by merging NOTICE into LICENSE, and remove legacy PHP redirect endpoints.
  • Update docs/changelog and extend deploy smoke tests to validate new asset URLs and legacy redirects.

Reviewed changes

Copilot reviewed 10 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
wave.php Removed legacy PHP redirect entry point.
wave2.php Removed legacy PHP redirect entry point.
README.md Updated URL/docs and documented new project layout.
og-image.svg Removed Open Graph preview asset.
NOTICE Removed standalone attribution notice (moved into LICENSE).
LICENSE Added “Attributions” section consolidating prior NOTICE content.
lib/layout.php Introduced ASSETS_URL constant for asset path construction.
index.php Updated favicon/CSS/JS paths; dropped OG/Twitter image tags and switched Twitter card type.
CHANGELOG.md Updated unreleased notes to reflect asset restructure and removals.
assets/js/shared.js Added shared WebGL/math/helpers and constants under assets/.
assets/js/simulation.js Added simulator implementation under assets/.
assets/js/waves.js Added bootstrap/orbit/render loop script under assets/.
assets/js/station-poll.js Added polling/readout + simulator retuning logic under assets/.
assets/css/waves.css Added styles under assets/.
assets/images/favicon.svg Added favicon under assets/images/.
.htaccess Documented legacy redirects for removed wave.php/wave2.php.
.github/workflows/deploy.yml Extended production smoke tests to validate asset URLs and legacy redirect behavior.

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

Comment thread README.md
Comment on lines +57 to +62
| Layer | Location | Rationale |
|-------|----------|-----------|
| PHP endpoints | Site root | DreamHost serves `index.php` and JSON APIs directly |
| Shared PHP | `lib/` | Reusable server logic, no public URLs |
| CSS / JS / images | `assets/` | Cacheable static files, clear separation |
| Tests | `tests/` | Not deployed; excluded from rsync implicitly by size |
Comment on lines +132 to +133
code="$(curl -fsS -o /dev/null -w '%{http_code}' "${base}/wave.php")"
test "${code}" = "301" -o "${code}" = "200"
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