Skip to content

feat(api): isolated user map space with ownership and quotas (#24) - #349

Open
Aduersarius wants to merge 1 commit into
Bitcoindefi:mainfrom
Aduersarius:feat/user-map-space-quotas-24
Open

feat(api): isolated user map space with ownership and quotas (#24)#349
Aduersarius wants to merge 1 commit into
Bitcoindefi:mainfrom
Aduersarius:feat/user-map-space-quotas-24

Conversation

@Aduersarius

Copy link
Copy Markdown

Closes #24.

Summary

  • Reserves user map IDs 600–999 (gap after local static 500–599, before challenges 2000+).
  • Adds user_maps table with ownership, statuses (draft|proposed|published|archived), density counters, and asset byte tracking.
  • Enforces per-account quotas (maps/NPCs/objects/assets), owner-only edits (403), draft visibility isolation, and v1 economy isolation (no combat/exp/gold; bans valuables; blocks official-world portals).
  • Documents the range in frontend/utils/gameLoader.ts (USER_MAP_ID_MIN/MAX, isUserCreatedMapId).
  • Unit + integration tests for range, economy policy, ownership, quotas, and draft visibility.

Differentiation vs #60

Verification

  • Tests: api/src/tests/user-maps.unit.test.ts, api/src/tests/user-maps.integration.test.ts (integration no-ops without DB).
  • Local install/tsc blocked in agent session; CI should cover compile/test.

…defi#24)

Reserve map IDs 600-999, persist user_maps with draft/proposed/published
states, account quotas, owner-only edits, and economy isolation defaults.
@gitar-bot

gitar-bot Bot commented Sep 6, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

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.

Etapa 5: espacio aislado de mapas de usuario con propiedad y cuotas

1 participant