Skip to content

Goals - #102

Merged
cbrinicombe13 merged 9 commits into
mainfrom
goals
Nov 24, 2026
Merged

Goals#102
cbrinicombe13 merged 9 commits into
mainfrom
goals

Conversation

@jasontlouro

@jasontlouro jasontlouro commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Documents goals from trophyso/app#759: a user's deadlines, plans and metric targets, which agentic messaging uses to remind users before a goal is due, encourage them when they miss one and celebrate the ones they complete.

It also brings the Spanish docs up to date and removes Lingo.dev. The translate-on-main workflow has failed on every push since the CEP merge (Lingo's daily token limit), so es/** on main is missing the agentic messaging pages and the CEP rewrite, and the translation validation fails on every PR. From now on, each PR updates English and Spanish together.

New pages

  • data-sources/goals.mdx (Data sources → Goals):
    • goal attributes;
    • the three completion types (manual, none, metric);
    • steps;
    • status;
    • how to create, update, delete and retrieve goals, with examples in cURL and every SDK language the other snippets use (Node, Python, PHP, Java, Go, C# and Ruby);
    • how agents use goals;
    • FAQs.
  • Four endpoint pages under Application API → Users, all tier 2, the gateway's default:
    • Get a user's goals;
    • Create a goal for a user;
    • Update a goal for a user;
    • Delete a user's goal.

SDK examples

  • dueAt is a string in every SDK, following trophyso/app#775, which drops format: date-time from the goal request schemas.
  • The Node, Python and Go examples match app#775's code samples. Java and C# were checked against SDKs generated before app#775, so their dueAt setters should be rechecked once the SDKs are regenerated.
  • PHP follows the existing snippets. trophy-php was last generated in September 2025, so like rewards, its goal methods don't exist yet.

Changed

  • openapi/application.json and openapi/admin.json: regenerated from the app's fern/openapi/*.yml on deadlines, plus app#775's dueAt change applied by hand until it's deployed and npm run openapi:pull can pick it up.
  • agentic-messaging/overview.mdx: "What agents learn from" lists goals.
  • Icons: goals use Phosphor's target and objectives use crosshair (scripts/sync-phosphor-icons.mjs, phosphor-icons.css, icons/phosphor/).
  • scripts/sync-heading-anchors.mjs: keeps explicit {#…} anchors on English headings instead of re-deriving them from the title. Without this the check fails on main, and running the script rewrites about 40 English anchors kept for deep links, like #achievement-emails on the milestones pages.

Spanish

  • New: the 7 agentic messaging pages, the goals page and the 4 goal endpoint pages.
  • Updated from English: 34 existing pages, mostly from the CEP rewrite (introduction, quickstart, billing, milestones, brand kit, emails, push notifications, data sources and more), plus fixes for older Lingo output, like "Rewarding streaks" sections that had become a second "Obtener soporte".
  • docs.json: the Spanish navigation gets the agentic messaging group and the goal pages.

Removing Lingo.dev

  • Deleted i18n.json, i18n.lock, lingo/, .env.example, the translate-on-main workflow and the Lingo-only scripts (generate-translations, translate-docs-json, validate-glossary-csv) and npm scripts.
  • i18n/glossary.md replaces lingo/brand-voice.md and lingo/glossary.csv: voice, terms that stay in English, and the Spanish terms the pages actually use. It's in .mintignore, so it isn't published.
  • The remaining check scripts read locales from docs.json navigation.languages (scripts/locales.mjs) instead of i18n.json.
  • validate-translations.yml becomes validate-docs.yml: the same checks without the Lingo steps, on every PR (the old path filter missed features/, data-sources/, agentic-messaging/ and others).
  • New npm run check runs all of them locally.
  • CLAUDE.md, the Cursor localization rule and README.md now say English and Spanish ship together in the same PR, using the glossary.

Checks

  • npm run check passes: translation parity, link, path, fragment, anchor and OpenAPI title checks, mint validate and mint broken-links --check-anchors --check-snippets.

Deployment

  • Merge after trophyso/app#759 and trophyso/app#775 are deployed, so the endpoints and the string dueAt are live when the docs are.
  • Close chore(i18n): update translations from main #97 (stale auto-translations, conflicts with main) once this merges.
  • Delete the LINGO_API_KEY and LINGO_ENGINE_ID repo secrets, and the ci/i18n/auto-translations branch.

🤖 Generated with Claude Code

@mintlify

mintlify Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
trophy 🟢 Ready View Preview Nov 24, 2026, 10:14 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

jasontlouro and others added 4 commits November 24, 2026 08:59
…d headings keep their deep links.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ite and Spanish navigation, with a rebuilt Lingo lockfile.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…h a hand-kept glossary and the same checks in CI.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cbrinicombe13
cbrinicombe13 merged commit 524ba52 into main Nov 24, 2026
6 checks passed
@cbrinicombe13
cbrinicombe13 deleted the goals branch November 24, 2026 10:19
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