Skip to content
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

Branches UI #446

Merged
merged 1 commit into from Nov 4, 2022
Merged

Branches UI #446

merged 1 commit into from Nov 4, 2022

Conversation

OlegMoshkovich
Copy link
Member

@OlegMoshkovich OlegMoshkovich commented Oct 21, 2022

  • Add logic to fetch branches from Github.
  • Add Branch UI drop down containing the list of branches.

-- Tests are missing

@netlify
Copy link

netlify bot commented Oct 21, 2022

Deploy Preview for bldrs-share ready!

Name Link
🔨 Latest commit 3cef2c8
🔍 Latest deploy log https://app.netlify.com/sites/bldrs-share/deploys/63653e0b55f4c000083ef98f
😎 Deploy Preview https://deploy-preview-446--bldrs-share.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@OlegMoshkovich
Copy link
Member Author

@oo-bldrs when you have a chance, can you please take a look at the logic of the BranchControl component, and suggest the way to test it?

@OlegMoshkovich OlegMoshkovich marked this pull request as ready for review October 27, 2022 16:47
@OlegMoshkovich OlegMoshkovich changed the title WIP: Branches UI Branches UI Oct 27, 2022
@oo-bldrs
Copy link
Contributor

"Versions" is a bit of an ambiguous term.

In a Git repository, you can refer to a "version" through branches or tags. In the context of Git, a version would refer to a tag that generally starts with v (e.g. v0.0.1, v1.0, v2.0.1), and I imagine folks would expect that label to correspond with a list of versions.

Maybe it's best to change the label to Git branch or another term that is less overloaded.

}
branchesData.data.map((branch) => {
modelPath.branch = branch.name
const versionPath = `/share/v/gh/${modelPath.org}/${modelPath.repo}/${modelPath.branch}${modelPath.filepath}`
Copy link
Contributor

Choose a reason for hiding this comment

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

Between this invocation and the logic in <ShareRoutes>, it makes sense to create a utility function for building a URL to a GitHub-hosted model -- this logic should no be duplicated in multiple places.

Copy link
Member Author

Choose a reason for hiding this comment

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

@oo-bldrs In the share routes, there is extractOrgPrefixedPath function, but I am not seeing where we are using ModelPath object to navigate.
Can you please point me to the function you have in mind that makes sense to include in the utility?

Copy link
Member

@pablo-mayrgundter pablo-mayrgundter left a comment

Choose a reason for hiding this comment

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

Heya, I'm seeing a lot of merge deltas.. does this need to be rebased or smth?

Also, do you have a link that shows the branches?

@pablo-mayrgundter
Copy link
Member

getProperties: jest.fn(),
}
constructorMock.mockImplementation(() => impl)
export {constructorMock as IfcViewerAPI}
Copy link
Member Author

Choose a reason for hiding this comment

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

@pablo-mayrgundter not sure why this file is the part of the PR.

@OlegMoshkovich OlegMoshkovich merged commit 05c9e91 into bldrs-ai:main Nov 4, 2022
mkeshavarzi added a commit to mkeshavarzi/Share that referenced this pull request Nov 4, 2022
mkeshavarzi added a commit to mkeshavarzi/Share that referenced this pull request Nov 4, 2022
mkeshavarzi added a commit to mkeshavarzi/Share that referenced this pull request Nov 4, 2022
@OlegMoshkovich OlegMoshkovich deleted the Branch_UI branch March 29, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

None yet

3 participants