Commit Graph
85 Commits
Author SHA1 Message Date
mr.zero a15f0ce24b Point the engine Explore action at the git repository
The engine pages' repo metadata (new in the wiki pages API) drives the
Explore button and card title links, with the wiki page as fallback. The
never-deployed /engines/:slug detail page and its store/api plumbing are
gone, and the engines RSS feed links to the repos too.
2026-08-05 07:36:58 +02:00
mr.zero f2c07c83c5 Serve engine-tagged wiki pages on a new /engines section
Frontend: /engines index + /engines/:slug detail routes, nav menu item and
en/hu translations. Engine pages are few, so the index uses an emphasized
poster-style design (dark slate, emerald accents, numbered full-width cards
with content preview) instead of the blog/howtos layouts. Slugs are the last
wiki path segment, since engine pages live scattered in the wiki tree.

API: /api/rss/engines feed linking to the site's engine pages, and a
WikiService#pages alias for #index — RssService called the alias-less name,
so the blog and howtos feeds were raising NoMethodError.
2026-08-05 07:29:07 +02:00
mr.zeroandClaude Fable 5 d2b4b67e44 Phase 5: ship the catalog ActiveAdmin resources from the engine
- the 7 catalog admin files (softwares, releases, external_links,
  platform_links, images, files page, downloads) move to the engine's
  app/admin; the host ActiveAdmin instance loads them via
  ActiveAdmin.application.load_paths (single admin, URLs unchanged)
- engine initializers: Zeitwerk ignore for app/admin (production eager load)
  and load_paths + watchable_dirs registration, guarded by defined?(ActiveAdmin)
  so the admin-less dummy app boots
- images admin reads image owners from WarpEngine.config.image_owners; the
  host registers the Member owner in config/initializers/warp_engine.rb;
  the interim ImageUsage registry is gone
- fix: SoftwareImage.distinct.pluck clashed with its order(:position)
  default scope on MySQL (unscope(:order)) — introduced in phase 0, caught
  by the first authenticated /admin/images smoke test
- files page: download links use the public /file/ URL instead of the raw
  container path; the picker's stored path comes from config

Verified: both suites green, zeitwerk:check (production) clean, JSON
baselines intact, authenticated admin smoke test on every page incl.
the 3-level nested software form and Files picker mode.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-04 19:18:28 +02:00
mr.zeroandClaude Fable 5 b79a73d62d Phase 4: move catalog controllers and routes into WarpEngine
- update, files and the 6 /api catalog controllers now live in the engine on
  a new WarpEngine::ApiController base (same rescue/mime behavior as host)
- engine routes serve /update, /file/*path, /api/software*, /api/builds*,
  /api/image/:id, /api/download at unchanged public paths via the root mount;
  host routes keep only TTG endpoints (events, members, wiki, rss, swagger)
- /update secret comes from WarpEngine.config.update_secret and an
  unconfigured secret now rejects every request (previously an empty
  UPDATE_SECRET env accepted empty secrets)
- apipie-rails is an engine dependency (DSL in engine controllers); dummy app
  configures apipie with validation off, mirroring the host
- engine request specs: catalog controller specs moved from host plus new
  /update auth contract spec

Verified: engine suite 53 green, host suite 6 green, /api/software and
/api/builds byte-identical to baselines, /update 401/400 behavior intact,
admin and TTG endpoints OK.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-04 19:09:11 +02:00
mr.zeroandClaude Fable 5 0dc3cebc14 Phase 3: move service layer, serializers and DTOs into WarpEngine + dummy-app test suite
- all catalog services (update/software/highlighted/builds/file/file-manager/
  download/image + SoftwareResponseBuilder), the SoftwareUpdater platform
  services and their concerns, Blueprinter serializers (incl. TimestampFields)
  and the 4 DTOs now live in the engine under WarpEngine::
- constantize dispatch strings use absolute names
  (WarpEngine::SoftwareUpdater::<Platform>Service)
- container paths read from WarpEngine.config everywhere (FileService,
  DownloadService, FileManagerService, ArchiveExtraction, ReleaseSerializer
  path rewriting); FileManagerService base path is now lazy
- engine requires blueprinter itself; gemspec declares blueprinter + rubyzip
- engine test suite: spec/dummy app (mysql warp_engine_test, catalog-only
  schema), rails_helper with engine-local factories; catalog model/service
  specs and factories moved from the host
- host suite keeps TTG specs and loads catalog factories from the engine

Verified: engine suite 40 green, host suite 14 green, /api/software and
/api/builds byte-identical to baselines, admin OK.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-04 19:03:58 +02:00
mr.zeroandClaude Fable 5 92f10197c1 Phase 2: move the 8 catalog models into the WarpEngine engine
- Software, Release, ReleaseAsset, ExternalLink, PlatformLink, Image,
  SoftwareImage, Download now live in the engine under WarpEngine::, on top
  of WarpEngine::ApplicationRecord; table names unchanged (empty prefix)
- each model runs an ActiveSupport load hook (:warp_engine_<model>) as a
  host extension point
- WarpEngine::Image reads its upload path from WarpEngine.config
- host references fully qualified (services, serializers, admin, specs);
  admin registrations renamed with as: so /admin URLs and route helpers are
  byte-identical; factories pinned to the namespaced classes
- Member#image now class_name: "WarpEngine::Image"

Verified: full suite green, /api/software and /api/builds byte-identical to
the phase-0 baselines, admin routes unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-04 18:51:12 +02:00
mr.zeroandClaude Fable 5 bf921c589d Phase 0: in-place decoupling before WarpEngine extraction
- FileService/DownloadService: lazy container-path resolution instead of
  class-load-time realpath (boot no longer requires /softwares to exist)
- downloadCount/totalDownloads: single grouped query passed as Blueprinter
  option instead of per-release association counts (fixes N+1)
- admin Images: Member coupling replaced with ImageUsage owner registry
  (precursor of the WarpEngine.config.image_owners hook)
- Image: UPLOAD_PATH constant replaced with call-time upload_path accessor
- proper test environment (config/environments/test.rb, softwares_test DB,
  hosts.clear) — suite previously ran against the development DB
- spec fixes: case-insensitive uniqueness matchers (MySQL ai_ci collation),
  DB-cascade has_many expectations, PlatformLink::SUPPORTED_PLATFORMS
- JSON baselines of /api/software and /api/builds for post-extraction diffing

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-04 18:39:20 +02:00
mr.zero 724e5bc748 refact round 2026-08-04 15:45:13 +02:00
mr.zero 46c51bb317 platform links 2026-08-04 10:49:02 +02:00
mr.zero 77f269d9e0 build concerns, build matrix 2026-08-04 08:37:49 +02:00
mr.zeroandClaude Fable 5 da37e39774 Make docs optional in the tic80 updater
Older-style tic80 pipelines (bombexpert, mranderson) do not upload a
docs zip; the unconditional extraction raised and aborted the whole
update, so the new binary assets never got registered. Extract and
register docs only when the zip/dir exists. Covered by new
Tic80Service specs (optional docs + binary slug pickup).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-03 23:46:50 +02:00
mr.zero 242c808add web payable and asset view 2026-08-02 22:54:37 +02:00
mr.zero c630278e42 release assets 2026-08-02 18:26:29 +02:00
mr.zero 9db8ff189c update concerns 2026-08-02 12:58:31 +02:00
mr.zeroandClaude Fable 5 4cc05ee586 Support repo metadata field as Repository external link
All software updater services now read an optional repo field from the
game metadata and upsert it as a "Repository" external link, keyed by
(software_id, label) so re-deploys update the existing link instead of
creating duplicates.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-02 11:18:13 +02:00
mr.zero a275b5e72a add bevy and phaser engine support 2026-07-31 18:36:12 +02:00
mr.zero e37e3760ac godot support 2026-07-31 16:33:51 +02:00
mr.zero 60b3948522 menu emojis 2026-07-29 09:53:48 +02:00
mr.zero 31e7fad4a0 go to site fix 2 2026-07-29 09:48:53 +02:00
mr.zero 9219dd08bc howtos rss 2026-07-29 09:42:42 +02:00
mr.zero 8ca87407b4 domain fix 2026-07-29 08:23:18 +02:00
mr.zero 922ceed996 links 2026-07-29 08:20:58 +02:00
mr.zero b8e3c64868 more tweaks 2026-07-29 08:10:59 +02:00
mr.zero b1da8c9a84 linter fixes 2026-07-28 14:50:24 +02:00
mr.zero 1513a451ae tweaks 2026-07-28 14:29:09 +02:00
mr.zero 98e2fc6b2a add rss gem fix 2026-07-28 13:58:59 +02:00
mr.zero 608f1b5931 swagger api docs fix 2026-07-28 13:14:20 +02:00
mr.zero 397f828315 swagger api docs 2026-07-28 13:10:13 +02:00
mr.zero ae9f376b9c api docs 2026-07-28 13:04:12 +02:00
mr.zero 2c91579889 allow empty value for admin_user password 2026-07-28 12:44:17 +02:00
mr.zero 833607627f more emojis into index pages fix 2 2026-07-28 12:41:52 +02:00
mr.zero b4c74da786 more emojis into index pages fix 2026-07-28 12:40:57 +02:00
mr.zero fd381534cb more emojis into index pages 2026-07-28 12:39:47 +02:00
mr.zero 07014ba5b0 files emojis 2026-07-28 12:36:55 +02:00
mr.zero d882988122 cross links 2026-07-28 11:25:19 +02:00
mr.zero 3f2b0374aa stats menu fix 2026-07-28 11:19:56 +02:00
mr.zero 8e218adea5 more stat tweaks 2026-07-28 11:17:09 +02:00
mr.zero 85dfe67d2f member-user connection, download stats menu label 2026-07-28 11:11:56 +02:00
mr.zero fe6b27ed6e stats 2026-07-28 11:08:41 +02:00
mr.zero 6ea7a8ae69 downloads endpoint route fix 2026-07-28 10:55:30 +02:00
mr.zero 4afa440b12 rss feed and download stats 2026-07-28 10:42:39 +02:00
mr.zero 4af9a958bb wiki_service fix, HowtosIndexPage fix 2026-07-27 21:34:09 +02:00
mr.zero 43e6c7e00b admin tweaks 2026-07-27 12:20:34 +02:00
mr.zero 1a6abc95f5 thumb fix 3 2026-07-27 12:01:24 +02:00
mr.zero 4400c87ec3 thumb fix 2 2026-07-27 11:42:47 +02:00
mr.zero 7adbf326a1 thumb fix 2026-07-27 11:38:23 +02:00
mr.zero 6d09dd9778 edit refact 2026-07-27 11:34:02 +02:00
mr.zero e37f6175fc image tumb in sw edit 2026-07-27 11:28:34 +02:00
mr.zero 2071bedde8 admin index fix 2 2026-07-27 11:07:01 +02:00
mr.zero 3f2abe1eaf admin index fix 2026-07-27 11:01:30 +02:00