Skip to content

Feat/git backend 4534 #4688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nafisa404
Copy link

Summary

Introduced Git backend integration for Music Blocks (Issue #4534).

This PR includes:

  • /commit endpoint using FastAPI + GitPython
  • /log endpoint to return commit history
  • HTML frontend widget to commit and view project history

Files Added

  • git-backend/main.py: FastAPI backend
  • git-backend/requirements.txt: Backend dependencies
  • activity/git-widget.html: Frontend UI

🔗 Related Issue

Fixes #4534

Mentors to Review

@walterbender @pikurasa @sum2it

Copy link

✅ All Jest tests passed! This PR is ready to merge.

@walterbender
Copy link
Member

I am not quite sure what I am looking at here. (I presume that the tempo commit is unrelated.) How does MB interact with your widget?

@nafisa404
Copy link
Author

Thank you for the feedback, @walterbender!

You're right — the Tempo UI fix and AI-related commits were unintentionally included in this PR. I’ll split them into separate pull requests for clarity.

Regarding this PR (Git backend for #4534):

This introduces a FastAPI backend that accepts .json project files exported from Music Blocks.

The widget (git-widget.html) is designed as a prototype UI for interacting with the Git backend.

The intended future integration is to allow Music Blocks to:

Auto-export or trigger a download of the project state

Send it via fetch() to /commit along with a user-supplied message

Query commit history using /log to show a project timeline or fork graph

I'm happy to add a usage flow or link the exported JSON to Music Blocks directly in a follow-up PR, if that’s preferred.

I’ll clean up the commit history now and rebase this branch so this PR focuses only on the Git backend implementation for #4534.

@nafisa404 nafisa404 force-pushed the feat/git-backend-4534 branch from 6bb28e2 to 3f5b962 Compare May 12, 2025 16:41
Copy link

✅ All Jest tests passed! This PR is ready to merge.

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.

[DMP 2025]: Git backend for Turtle Blocks and Music Blocks
2 participants