Commit graph

2264 commits

Author SHA1 Message Date
04ed182cef First draft of auto-modeling
Run `rails items:auto_model`! We'll set this up on a cron if we continue to be satisfied with the results.
2026-01-20 18:37:17 -08:00
fff8079a63 Remove temporary files used in previous glitch-fixing commit
This reverts commit 08a64d4987.
2026-01-19 11:15:33 -08:00
08a64d4987 Remove glitch from items resolved by the new renderer fix
I'll revert this commit in a sec, these are just temporary files I used to audit our assets with the `DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN` glitch, and remove it from the ones I've decided seem functional now.

This commit is intended as a historical record of what we changed in the database and how and why.

```
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | A Grey Day Background | Item 39708 | Asset 39694 | http://impress.openneo.net/swf-assets/39694?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | A Haunting Path Background | Item 78585 | Asset 468669 | http://impress.openneo.net/swf-assets/468669?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Autumnal Scenescape | Item 80632 | Asset 497773 | http://impress.openneo.net/swf-assets/497773?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Beautiful Butterfly Foreground | Item 83714 | Asset 558774 | http://impress.openneo.net/swf-assets/558774?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Food Fight Shower | Item 57781 | Asset 139542 | http://impress.openneo.net/swf-assets/139542?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Glowing Light Sky Background | Item 54176 | Asset 112686 | http://impress.openneo.net/swf-assets/112686?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | MiniMME11-S1: Approaching Eventide Skirt | Item 65801 | Asset 225267 | http://impress.openneo.net/swf-assets/225267?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | MiniMME11-S1: Approaching Eventide Skirt | Item 65801 | Asset 225277 | http://impress.openneo.net/swf-assets/225277?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | MiniMME11-S1: Approaching Eventide Skirt | Item 65801 | Asset 225805 | http://impress.openneo.net/swf-assets/225805?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Mutant Containment Suit | Item 81643 | Asset 520525 | http://impress.openneo.net/swf-assets/520525?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Negg Fountain Background | Item 82391 | Asset 537342 | http://impress.openneo.net/swf-assets/537342?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Rainbow Fountain Background | Item 36747 | Asset 27886 | http://impress.openneo.net/swf-assets/27886?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Written Word Shower | Item 51134 | Asset 94213 | http://impress.openneo.net/swf-assets/94213?playing=true
["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Starry Glowstone Path Background | Item 74542 | Asset 390340 | http://impress.openneo.net/swf-assets/390340?playing=true
```
2026-01-19 11:14:22 -08:00
dd2f6be79f Fix HTML5 rendering differences in us vs Neopets
I pulled the source map for the Neopets renderer, and had Claude compare it to ours. It noticed the key issue responsible for a high number of unsolved rendering issues: we weren't setting up the `MotionGuidePlugin`, which I've never heard of before. Whoops!

In addition to this, we made some other minor fixes for consistency:
- Use whatever Stage object the library exports (will sometimes be StageGL)
- Resize the stage rather than the clip (shouldn't matter?)
- Send a callback to the library when done (I'm not aware of any anims that use this but some may!)

The specific item I was debugging was "Food Fight Shower", and it works now! But I also know we've had a solid handful of similar inexplicable wild rendering bugs, which I imagine this solves as well.

We might want to consider auditing our Known Glitches on SWF assets to see how many of them can be removed, now that this is resolved.
2026-01-19 11:00:59 -08:00
6aff39dfed Always show rack-mini-profiler in development 2026-01-17 22:16:33 -08:00
5f342ae0ee Upgrade rack-mini-profiler 2026-01-17 22:16:33 -08:00
e9235d0b40 Upgrade to rspec-rails 8.0.2 2026-01-17 22:16:33 -08:00
790f8a3016 Upgrade to haml 7.2 2026-01-17 22:16:33 -08:00
d0c8c9d9c0 Upgrade from dotenv-rails to dotenv 3.2
dotenv-rails is no longer required, the Rails autoloading is included in basic dotenv now
2026-01-17 22:16:31 -08:00
359f368d80 Upgrade to sanitize 7.0
No specific motivation here, no awareness of security issues; this is just an important gem to be unusually on top of, to prevent XSS attacks.

We were previously on 6.1.3, the previous release, and the only changes were Ruby compatibility and additionally supported CSS properties (which we don't use). But this just keeps us more easily plugged into potentially important fixes down the line.
2026-01-17 21:57:45 -08:00
8a34fe76a2 Oops, add vendor/cache for all platforms
Locally, I also ran `bundle config set --local cache_all_platforms true` to ensure this happens automatically going forward.
2026-01-17 21:50:10 -08:00
91fba090fa Remove solargraph
This is a Ruby LSP that I no longer use, because I'm on RubyMine full-time.

My immediate motivation for this change is that solargraph's eventual dependency on the `parser` gem triggers warnings on all Rails commands, hinting that it doesn't support the *exact* Ruby version we use.

This could potentially be resolved by upgrading Solargraph or some of its dependencies, but since I'm not using it anyway, may as well just remove!
2026-01-17 21:39:45 -08:00
38956030ed bundle update
Just a general update for bugfixes etc!
2026-01-17 21:34:56 -08:00
56bb87f54f Update omniauth-rails_csrf_protection to 2.0.1
This resolves a deprecation warning for its usage of `ActiveSupport::Configurable`.
2026-01-17 21:32:53 -08:00
59d1f5bae8 Remove now-deprecated has_rdoc config in RocketAMF gemspec
This was causing a deprecation warning. Fixed!
2026-01-17 21:21:42 -08:00
dcbdf17e56 OutfitImageRenderer: Handle different layer sizes
Example: http://localhost:3000/outfits/new.png?species=18&color=40&pose=HAPPY_MASC&objects%5B%5D=78994

Before this change, the cape renders too big. Now, it renders correctly.
2026-01-17 21:20:25 -08:00
c241dc33b0 Remove successfully-run item encoding repair script 2026-01-04 19:23:43 -08:00
83281591b3 Fix inconsistent item string encoding
We discovered a previous string encoding bug fix that was causing crashes for some items, was casuing *other* items to get reencoded incorrectly.

In this change, we make the reencoding conditional, only if parsing as UTF-8 is failing.

We also include a temporary repair script, to run in production then delete—but held here in git history for posterity.
2026-01-04 19:20:31 -08:00
7430e12655 Extend rails pets:load to look up arbitrary pets & items 2026-01-04 18:38:01 -08:00
a9c9f94dde Fix PB item handling for Christmas Varwolf
It says "This item is part of a deluxe paint brush set.", with a period instead of exclamation mark.

There are also a couple cases where the paint brush item additionally has an "inspired by" credit after the first sentence. Rather than get picky about the pattern, we expand the `pb?` method to just check for the sentence as a substring, like the DB filter logic for `Item.is_pb` already does.
2026-01-04 14:22:35 -08:00
4e00f5d1af Add basic item JSON response (with trade values + counts) 2026-01-04 13:55:33 -08:00
aa45ea17b3 Add image comparison tests for OutfitImageRenderer 2026-01-04 13:31:01 -08:00
55fa50c22a Add basic image generation route /outfits/new.png 2026-01-03 11:44:43 -08:00
f823bac717 Add alt style support to Outfit#visible_layers 2026-01-03 11:05:23 -08:00
cf80f96410 Add tests for Outfit#visible_layers 2026-01-03 10:57:58 -08:00
23e951edcd Add Lebron links when there is no known trade value
because the new site has useful trade info anyway!
2025-12-27 19:24:09 -08:00
aac3e5a5a9 Update Lebron links to new Stylisher site 2025-12-27 19:09:38 -08:00
18a7e8fd9e Lock gem versions for all relevant platforms
We run DTI on a few different architectures in practice, and the `vendor/cache` directory can be a bit confusing to manage when switching dev machines.

In this change, we add all our common dev machine platforms to the Gemfile.lock, so precompiled gems for all of them are cached, granting us resilience against the possibility of Rubygems going down, and speeding up deploys & installation.
2025-12-26 21:21:35 -08:00
9c4a0cd7a3 Remove unused react-rails gem
The connection_pool gem changed their API, which caused a breakage in our react-rails gem.

It turns out though, we're not actually using react-rails anymore. It's primarily for React server-side rendering, which we don't do. Our React code is bundled as normal Javascript via our usual asset pipeline.

So, to resolve the gem incompatibility, we remove react-rails altogether. Neat!
2025-12-26 20:58:14 -08:00
63f8768cc3 bundle update 2025-12-26 20:42:18 -08:00
efd92f6367 Upgrade to Rails 8.1 2025-11-11 12:38:25 -08:00
b257de85f2 Allow more flexible development DB config 2025-11-11 12:20:25 -08:00
4e2c99d4dd docs: add warnings about Impress 2020 database dependencies
Added prominent warnings in multiple locations to prevent accidental
database migrations that would break Impress 2020:

README.md:
- Added critical warning in "OpenNeo ID Database" section
- Highlighted that Impress 2020 directly accesses both databases
- Added warning in "Deployment" section about schema compatibility
- Linked to detailed documentation

docs/impress-2020-dependencies.md:
- Clarified both databases are directly accessed by Impress 2020
- Added new "Database Consolidation Blocker" section
- Documented that consolidation migration is ready but blocked
- Provided options to unblock (retire I2020 or coordinated deployment)

This ensures future developers (including future me!) are aware of this
critical dependency before proposing database schema changes.

Related: feature/consolidate-auth-database branch contains a ready-to-go
database consolidation, but it's blocked on Impress 2020 retirement.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-02 07:10:54 +00:00
629090a88c docs: clarify Impress 2020 database dependencies
Added critical information about database consolidation blocker:

- Impress 2020 directly accesses BOTH openneo_impress and openneo_id databases
- Any database consolidation must wait until Impress 2020 is retired
- Database migration is ready on feature/consolidate-auth-database branch
  but is blocked on this dependency

This ensures we don't accidentally deploy the database consolidation
before addressing the Impress 2020 dependency, which would break
authentication for users accessing the site through Impress 2020.

Updated sections:
- Deployment Architecture: Clarified both databases are accessed by I2020
- After Full Migration: Noted database consolidation is ready but blocked
- Added new "Database Consolidation Blocker" section with details

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-02 07:09:11 +00:00
77872311e6 Add support summary UI to alt styles page 2025-11-02 06:12:36 +00:00
c78c0cb237 Oops, only preload alt style manifests we actually need 2025-11-02 06:10:42 +00:00
59da1fa04d Add more importing to cron
We're gonna try saving a neologin cookie in the environment variables, and see how long-lived it is.
2025-11-02 06:00:50 +00:00
3dca3fe05a Add logging for alt style changes
There's something fishy going on with alt style IDs perhaps being reused? I want logs to be able to potentially track this down later on…
2025-11-02 04:18:33 +00:00
ec8d0fdbdc Set up deployment inside devcontainer 2025-11-02 04:02:06 +00:00
3d86231e29 Oops, re-enable setting as default upon deploy 2025-10-31 03:34:02 +00:00
3582229b47 Update NC Mall scraping for new redesign
First actual feature I'm letting Claude run! We worked the exploration of the updated API together, then it ran with the implementation.

I left this hanging for a long time.... good to finally have it updated!
2025-10-30 12:43:14 +00:00
b1f06029f8 Moderize RocketAMF C types to fix build error
I'm not sure if this is a Mac-only problem or what, but we were getting incompatible-function-pointer errors when trying to build the RocketAMF C extensions. This fixes that! (Maybe it's like, Mac-only but as of Ruby 3.4 in specific? We're running RocketAMF in production on Ruby 3.4 right now without this. Shrug.)
2025-10-30 02:45:56 +00:00
d90e0549ca Update devcontainer
The Ruby version got out of date at some point… here, I use `bin/rails devcontainer` as the newer, simpler base.
2025-10-30 02:16:54 +00:00
d72d358135 Add high-level documentation
I'm starting to learn how AI agent stuff works, and a lot of what I'm finding is that rushing them into feature development sets you up for disaster, but that having strong collaboration conversations with helpful context works wonders.

So, I'm starting by creating that context: I had a little "here's the codebase" walkthrough conversation with Claude Code, and it generated these docs as output—which came out solid from the jump, with a few tweaks from me for improved nuance.

My hope is that this can serve both as an improved starting point for human collaborators _and_ if I let future Claude instances play around in here. That's a big theme of what I've found with AI tools so far: don't try to get clever, don't expect the world, just give them the same support you'd give people—and then everybody wins 🤞
2025-10-30 07:31:36 +11:00
1bfacf0340 Upgrade protocol-rack gem, remove workaround
Previously, having this gem at the latest version was causing problems when booting the app: https://github.com/socketry/protocol-rack/issues/20

This is no longer the case. Goodbye, workaround!
2025-07-26 09:58:24 -07:00
e0b2f6654f Remove reference to unused parallel gem
It *is* still used by rubocop, so this doesn't actually remove it from our install set. But it does clean up the Gemfile a bit!
2025-07-26 09:56:49 -07:00
d75b30ee7b Upgrade async gems
Just because I'm poking at archiving again, I'm noticing failures when trying to run the `rails swf_assets:manifests:load` job, something to do with an "unacquired resource" with the connection.

Maybe this is a bug that an update will fix? May as well try!
2025-07-26 09:55:26 -07:00
ba873e9e55 Upgrade to Ruby 3.4.5, Rails 8.0.2
Also improved the upgrade process a tiny bit, with some Ansible config simplifications.
2025-07-23 20:39:27 -07:00
234c866e28 Add links to ~lebron petpage 2025-06-27 17:32:16 -07:00
8eebc96b00 Remove now-unused HTTParty dependency
Oh nice, we removed the last call site! Goodbye!
2025-06-27 15:32:54 -07:00