Skip to content

Feat/git backend 4534#4688

Closed
nafisa404 wants to merge 1 commit intosugarlabs:masterfrom
nafisa404:feat/git-backend-4534
Closed

Feat/git backend 4534#4688
nafisa404 wants to merge 1 commit intosugarlabs:masterfrom
nafisa404:feat/git-backend-4534

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

@github-actions
Copy link
Contributor

✅ 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
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

This pull request has been open for more than 60 days without any activity. It will be closed in 3 days unless the stale label is removed or commented on.

@github-actions github-actions bot added the Stale label Jul 11, 2025
@github-actions
Copy link
Contributor

Closed pull request due to inactivity for more than 63 days.

@github-actions github-actions bot closed this Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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