Skip to content

feat:connect frontend with actual backend endpoints + delete:unused f… - #153

Open
kazuhidelee wants to merge 7 commits into
gittuf:mainfrom
kazuhidelee:tonylee/connecting_backend_with_updated_frontend
Open

feat:connect frontend with actual backend endpoints + delete:unused f…#153
kazuhidelee wants to merge 7 commits into
gittuf:mainfrom
kazuhidelee:tonylee/connecting_backend_with_updated_frontend

Conversation

@kazuhidelee

Copy link
Copy Markdown

…iles from previous frontend version

Description

This is a draft for now

  • Enabling frontend to use actual data from backend api to generate the visualizer
  • Deleted all the unused files and states from previous version of the visualizer
    For testing:
  • start frontend in the frontend folder using: npm run dev
  • start backend in the backend folder using: go run cmd/server/main.go
  • use github.com/gittuf/gittuf to test the visualizer (can also use the local path to your local gittuf repo) or any other repo that contains gittuf metadata
    (for now settings page is frontend only, and the graph is using both root.json +targets.json)

AI Usage

  • I did not use generative AI at all in making the content of this pull
    request.
  • I did use generative AI in some form in making the content of this
    pull request. I have described my use of AI below.

Contributor Checklist

  • I have manually reviewed all content submitted to gittuf in this pull
    request.
  • I fully understand the content I am submitting.
  • The changes introduced are documented and have tests included if
    applicable.
  • My changes do not infringe on copyright/trademarks/etc.
  • All commits in this pull request include a DCO
    Signoff
    .
  • By submitting this pull request, I agree to follow the gittuf Code of
    Conduct
    .

…iles from previous frontend version

Signed-off-by: Tony Lee <tonyklee@umich.edu>
@kazuhidelee
kazuhidelee force-pushed the tonylee/connecting_backend_with_updated_frontend branch from bdb21da to 3ce0518 Compare July 21, 2026 02:58
kazuhidelee and others added 4 commits July 20, 2026 22:59
Signed-off-by: Tony Lee <tonyklee@umich.edu>
Signed-off-by: Tony Lee <tonyklee@umich.edu>
Signed-off-by: Tony Lee <tonyklee@umich.edu>
@kazuhidelee
kazuhidelee force-pushed the tonylee/connecting_backend_with_updated_frontend branch from 1d8220e to b3431d2 Compare August 12, 2026 23:19
@kazuhidelee
kazuhidelee marked this pull request as ready for review August 14, 2026 20:43

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This implementation of policy methods looks a bit worse than the previous one? Is it possible to either use gittuf to extract the needed data or use less arbitrary interfaces?

remoteRepoCache.paths[url] = tempDir
remoteRepoCache.Unlock()

// ponytail: cached remote repos live for the backend process lifetime; add TTL cleanup only if temp dirs pile up.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should define what behavior to use here, is there a threshold for cleaning up temp dirs?

}

ref, err := repo.Reference(refName, true)
ref, err := getPolicyRef(repo, "refs/remotes/origin/gittuf/policy", "refs/gittuf/policy")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there a reason we can't just use the regular ref (refs/gittuf/policy) here and have Git fetch that for us?

@patzielinski

Copy link
Copy Markdown
Collaborator

Please also clean up the merge commits on the branch, thanks!

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.

3 participants