Skip to content

feat(app): add weekly report exports - #309

Merged
JSONbored merged 8 commits into
JSONbored:mainfrom
bitloi:feat/issue-251-weekly-report-export
Jun 2, 2026
Merged

feat(app): add weekly report exports#309
JSONbored merged 8 commits into
JSONbored:mainfrom
bitloi:feat/issue-251-weekly-report-export

Conversation

@bitloi

@bitloi bitloi commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add copy-ready Markdown export support for weekly value reports while preserving the default JSON response.
  • Add operator dashboard controls to copy the weekly report as Markdown or JSON.
  • Document the new API format option in OpenAPI and cover sanitizer/report export behavior with focused tests.

Closes #251.

Scope

  • This PR is focused and does not mix unrelated backend, UI, MCP, docs, dependency, and deploy changes.
  • This follows CONTRIBUTING.md and does not reintroduce GitHub Pages, VitePress, site/, or CNAME.
  • I linked an issue, or this is small enough that the summary explains why an issue is not needed.

Validation

  • git diff --check
  • npm run actionlint
  • npm run typecheck
  • npm run test:coverage locally; global coverage stays at or above 97% for lines, statements, functions, and branches (aim for 98%+ branch coverage locally so small CI variance does not fail near the threshold)
  • npm run test:workers
  • npm run build:mcp
  • npm run test:mcp-pack
  • npm run ui:openapi:check
  • npm run ui:lint
  • npm run ui:typecheck
  • npm run ui:build
  • npm audit --audit-level=moderate
  • New or changed behavior has unit/integration tests for new branches, fallback paths, and sanitizer boundaries

If any required check was skipped, explain why:

  • None. npm run test:ci passed locally.

Safety

  • No secrets, wallet details, hotkeys, coldkeys, user PATs, private keys, raw trust scores, private rankings, or private maintainer evidence are exposed.
  • Public GitHub text stays sanitized, low-noise, and does not imply compensation guarantees or optimization tactics.
  • Auth, cookie, CORS, GitHub App, Cloudflare, or session changes include negative-path tests.
  • API/OpenAPI/MCP behavior is updated and tested where needed.
  • UI changes use live API data or real empty/error/loading states, not production mock/demo fallbacks.
  • Visible UI changes include screenshots or a short recording.
  • Public docs/changelogs are updated where needed; changelogs are only edited for release-prep PRs.

Notes

  • npm run test:ci passed with coverage summary: statements 99%, branches 97.02%, functions 98.19%, lines 99.59%.
  • API contract updated for GET /v1/app/analytics/weekly-value-report?format=markdown with text/markdown response support.
  • Screenshot evidence for the operator export controls:

Screenshots

Operator weekly report export controls

Operator weekly report export controls

@JSONbored JSONbored left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bitloi thanks for the PR, can you please fix merge conflicts?

Also, moving forward, screenshots should be added to the original PR description as small thumbnails with a caption above or below each one, please, so i can quickly preview them.

Thanks 👍🏻

@bitloi
bitloi requested a review from JSONbored June 2, 2026 19:48

@JSONbored JSONbored left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bitloi

A few notes:

  • The Markdown/JSON export path is useful and matches #251: operators and maintainers can now copy a weekly value report instead of only inspecting dashboard state.
  • The API keeps operator-only detail behind the operator variant, and the Markdown formatter redacts the right classes of unsafe terms.
  • Screenshot evidence is now attached in the PR body, which satisfies the visible UI review requirement (although it's in SVG format and when clicked, appears as a broken image, so next time please use jpg/png only).

No code changes requested.

@dosubot dosubot Bot added the lgtm label Jun 2, 2026
@JSONbored
JSONbored merged commit 368e88c into JSONbored:main Jun 2, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in gittensory - v1 roadmap Jun 2, 2026
@JSONbored JSONbored added gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier. and removed feature gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier. labels Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

feat(app): add weekly value report export for operators and maintainers

2 participants