Repository navigation
Conversation
Copy the frontend structure (public assets, src components, types, context, hooks, utils, queries) as the base for a frontend-only variant. Backend wiring is still present and gets replaced next. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Generate a lightweight exercises.json index plus one JSON file per exercise (code, description, hint, antiCheat) from info.toml, the .cairo sources, and app/api/anti-cheat.json. Add a localStorage progress util and app-lite package/env scaffolding. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
useGetExercises reads the generated index and overlays local completions; useGetExercise/useGetHint dynamic-import the per-exercise JSON; useMarkExerciseDone writes localStorage; useMatchUserToGitHubAccount is a no-op; useGetGraduates is empty. GitHub token/user-data queries now call GitHub's endpoints directly instead of the backend proxy, and the unused useCompileCairo hook is removed. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Workspace edits now open the main repo (no fork), the edit dialog no longer requires a fork, and progress is stored locally. Check pages show local progress only for the logged-in user (or an empty state), and student evaluation is a no-op with an explanatory note. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Add axios and @types/linkify-it deps, type the exercise index mode and optional path/disabled fields, fix implicit-any callbacks, add a Jest transformIgnorePatterns for ESM starknet packages, polyfill TextEncoder for tests, and replace the broken default App test with a router-wrapped smoke test. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Add homepage base URL, gh-pages devDependency, predeploy/deploy scripts (deploying the build to the app-lite/ subpath on the gh-pages branch), and a .nojekyll marker so the JS chunks deploy without Jekyll processing. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Use process.env.PUBLIC_URL for all runtime asset references (logo, wallet icons, modal image) so they resolve under the gh-pages subpath. Remove the graduates/student-progress/evaluation routes, the header Assessment menu, the Check/Evaluate pages, and the unused graduates query and type — these features need the backend database. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Publish the build to the gh-pages branch of origin (shramee/starklings) at the repo root instead of an app-lite subpath. Co-Authored-By: CommandCodeBot <noreply@commandcode.ai>
… wasm Swap the remote runner API for the cairo-runner wasm package so compile/test works offline with zero network calls. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Display compilation errors in a monospace pre block across both apps and reword the error message now that compilation happens locally. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
…nner Add a wasm integration test suite (node --test) for the cairo-runner package and jest unit tests for compileCairoCode's logic with the runner mocked. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
…ript Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
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.
Summary
Adds ./app-lite, a React frontend-only version of the Starklings web app with no
backend (no Express API, Postgres, or scarb runner). All visual/UI features of
app/client are preserved — Home, Workspace (Monaco editor, hints, compile/test,
sidebar progress, edit dialog), FinalScreen, GitHub OAuth login, Starknet wallet
drawer (braavos/argent), About, and the Basecamp modal — with progress persisted in
localStorage only.
What changed
info.toml, the 55 .cairo sources, and app/api/anti-cheat.json, emitting a lightweight
src/data/exercises.json index plus one per-exercise JSON file, loaded on demand as
separate chunks.
progress merges into the GitHub identity on login.
routes, the header Assessment menu, and related queries/types — these need the
database.
(root of the gh-pages branch on origin), with PUBLIC_URL-prefixed asset paths and
.nojekyll.
Files
plus swept-in .commandcode/taste/ files.
Verification
bundle).
TextEncoder polyfill for the starknet ESM deps).
How to run / deploy
cd app-lite
npm install
npm start # http://localhost:4000
npm run deploy # publishes to shramee.github.io/starklings