feat: docs updated with the games catalogue for team managers#301
feat: docs updated with the games catalogue for team managers#301juliannoronha wants to merge 1 commit into
Conversation
📝 WalkthroughWalkthroughDocuments the ChangesGames catalog documentation
Estimated code review effort: 1 (Trivial) | ~3 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
repositories/d-sports-engage-native/integration-contracts.mdx (1)
27-28: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse active voice in the catalog description.
Rewrite the passive constructions so the documentation states who performs each action.
Proposed wording
- The catalog is admin-managed and team-selected server-side; the client must render only the games returned and must not assume a fixed set. - Responses are cacheable (`Cache-Control: public, max-age=60, stale-while-revalidate=300`); short-lived staleness after a team changes its selection is expected. + Admins manage the catalog, and the server selects each team's games; the client must render only the games returned and must not assume a fixed set. + The server returns cacheable responses (`Cache-Control: public, max-age=60, stale-while-revalidate=300`); clients should expect short-lived staleness after a team changes its selection.As per coding guidelines, documentation must use active voice and concise sentences.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@repositories/d-sports-engage-native/integration-contracts.mdx` around lines 27 - 28, Rewrite the catalog bullets in the integration-contract documentation using active voice: explicitly identify the administrator and server as the actors managing the catalog and selecting teams’ games, and state that clients render only the returned games without assuming a fixed set. Keep the cacheability statement concise and active while preserving its existing cache directives and staleness behavior.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@repositories/d-sports-engage-native/integration-contracts.mdx`:
- Line 29: Expand the `/api/games/catalog` documentation in
integration-contracts.mdx to specify machine-readable error codes, the complete
error response shape, and validation precedence when both teamId and teamSlug
are provided. Replace the current status-only statement while preserving the
documented 404 behavior for unknown teams and 400 behavior for missing
identifiers.
---
Nitpick comments:
In `@repositories/d-sports-engage-native/integration-contracts.mdx`:
- Around line 27-28: Rewrite the catalog bullets in the integration-contract
documentation using active voice: explicitly identify the administrator and
server as the actors managing the catalog and selecting teams’ games, and state
that clients render only the returned games without assuming a fixed set. Keep
the cacheability statement concise and active while preserving its existing
cache directives and staleness behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 297579c9-48ea-467f-a48d-4722e444df5d
📒 Files selected for processing (2)
api-reference/domains/route-coverage-matrix.mdxrepositories/d-sports-engage-native/integration-contracts.mdx
| - Each game entry carries `id`, `key`, `title`, `description`, `icon`, and `badge`; `key` is the stable slug the client maps to a playable game route (for example `daily-spin`). | ||
| - The catalog is admin-managed and team-selected server-side; the client must render only the games returned and must not assume a fixed set. | ||
| - Responses are cacheable (`Cache-Control: public, max-age=60, stale-while-revalidate=300`); short-lived staleness after a team changes its selection is expected. | ||
| - Unknown teams return `404`; a missing `teamId`/`teamSlug` returns `400`. |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
file='repositories/d-sports-engage-native/integration-contracts.mdx'
wc -l "$file"
nl -ba "$file" | sed -n '1,160p'
printf '\n--- nearby references ---\n'
rg -n "teamId|teamSlug|404|400|error code|error shape|error contract" repositories/d-sports-engage-native -g '*.mdx' -g '*.md' -g '*.ts' -g '*.js'Repository: D-Sports-Ecosystem/docs
Length of output: 266
🏁 Script executed:
#!/bin/bash
set -euo pipefail
file='repositories/d-sports-engage-native/integration-contracts.mdx'
printf '--- file contents ---\n'
cat -n "$file"
printf '\n--- related references ---\n'
rg -n "teamId|teamSlug|404|400|error code|error shape|error contract|status code|error response" repositories/d-sports-engage-native -g '*.mdx' -g '*.md' -g '*.ts' -g '*.js'Repository: D-Sports-Ecosystem/docs
Length of output: 252
🏁 Script executed:
#!/bin/bash
set -euo pipefail
file='repositories/d-sports-engage-native/integration-contracts.mdx'
echo '--- file contents ---'
cat -n "$file"
echo
echo '--- related references ---'
rg -n "teamId|teamSlug|404|400|error code|error shape|error contract|status code|error response" repositories/d-sports-engage-native -g '*.mdx' -g '*.md' -g '*.ts' -g '*.js'Repository: D-Sports-Ecosystem/docs
Length of output: 3678
Document the full /api/games/catalog error contract.
Add the machine-readable error codes, response shape, and precedence when both teamId and teamSlug are supplied so clients don’t have to infer behavior from status codes alone.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@repositories/d-sports-engage-native/integration-contracts.mdx` at line 29,
Expand the `/api/games/catalog` documentation in integration-contracts.mdx to
specify machine-readable error codes, the complete error response shape, and
validation precedence when both teamId and teamSlug are provided. Replace the
current status-only statement while preserving the documented 404 behavior for
unknown teams and 400 behavior for missing identifiers.
There was a problem hiding this comment.
@juliannoronha please implement this suggestion from coderabbit :) thank you
Summary by CodeRabbit