Open
Conversation
Implements the Telegram Mini App (issue storacha#96) with: - React frontend (src/miniapp/) with Dashboard, BackupList, CreateBackup, Leaderboard, Tasks, and supporting components using Telegram WebApp API - Gamification routes (src/server/routes/gamification.ts) with leaderboard, points tracking, and social task completion endpoints - Encrypted chat backup to Storacha decentralized storage - Points system (1 pt/KB uploaded), leaderboard, and social tasks - Humanode BotBasher integration for bot prevention - SQLite database for user/backup/points metadata Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…mponents - BackupPreview: shows IPFS CID, encryption info, and HTML download button - PointsDashboard: tabbed view with overview, history and social tasks Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove non-existent grammy-types dependency (types bundled in grammy) - Fix TS2742 inferred type errors on express app/router declarations - Add skipLibCheck and lib options to tsconfig.server.json - Add vitest.config.ts for server-side test discovery - Add 9 passing tests for encrypt/decrypt and points calculation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- auth.test.ts: 13 tests covering validateTelegramWebAppData (valid requests, tampered hashes, wrong bot token, expired auth_date, boundary conditions, missing hash, malformed input) - db.test.ts: 23 tests covering all db.ts exports using an in-memory mock of better-sqlite3 (works without native binaries): getOrCreateUser, getUserByTelegramId, updateUserStoracha, createBackup, getUserBackups, updateBackup, deleteBackup, addPoints, getLeaderboard All 45 tests pass (9 existing storacha.test.ts + 13 auth + 23 db) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #96
Submitted by automated bounty agent