hypertrons / hypertrons-crx

A browser extension for insights into GitHub projects and developers.
https://crx.hypertrons.io
Apache License 2.0
342 stars 98 forks source link

[Feature] Replace HyperCRX networks component with OSGraph networks #834

Open frank-zsy opened 1 month ago

frank-zsy commented 1 month ago

Description

Currently, we have 4 networks (2 for repos and 2 for developers) in HyperCRX, but since OpenDigger no longer maintains a graph database infra, the data of the 4 networks are not updated for months.

After OSGraph 2.0 launched, we could use OSGraph networks to replace the old components.

OSGraph has 6 types of network (3 for repos and 3 for developers), so we could just put them into HyperCRX and replace the old ones. OSGraph provides sharing URL to access the networks, so I think we just need to embed them with iframe.

frank-zsy commented 1 month ago

In development stage, we could just use the network URL of microsoft/vscode repo and tison to test. The networks are:

In the future, the sharing URL of OSGraph will update to something like https://osgraph.com/github/microsoft/vscode/xxgraph then we can replace the URL with current repo name and developer login.

wangyantong2000 commented 1 month ago
image

Is it possible for the style to look like this in the future

frank-zsy commented 1 month ago

@HalloMelon Could you provide the detailed title and description of the networks which will be used in this feature according to the information in https://github.com/TuGraph-family/OSGraph readme? We will need both Chinese and English version.

HalloMelon commented 1 month ago

Yeah, let me do it~

wangyantong2000 commented 1 month ago

Currently, HyperCRX has 4 networks. In the future, will we embed all 6 networks from OSGraph into HyperCRX, or will we only embed 4 of them?

HalloMelon commented 1 month ago

English Version

中文介绍

frank-zsy commented 1 month ago

I think we will embed all 6 networks in OSGraph if it is not too much trouble.

wangyantong2000 commented 2 weeks ago

The last time OSGraph personnel raised the following questions:

  1. Caves height issue
  2. Refreshing the page graph will result in a scaling process
  3. Click on the percetor, refresh, and the tab activates insights
  4. The OSGraph link in the upper right corner of the graph only leads to the homepage and cannot directly reach the corresponding canvas of the project.
  5. All repositories and accounts have these 6 graphs.

https://github.com/user-attachments/assets/9c77b2c3-ffa8-4950-9f65-f64e5d4f3ccd

https://github.com/user-attachments/assets/28601c07-6004-4cff-97c9-9c149364eac5

Several issues have been resolved at present. As shown above. And for questions 1 and 2, regarding height and refresh scaling, I think it is due to issues with the OSGraph webpage itself. As shown in the video below.

https://github.com/user-attachments/assets/8680db51-2556-4eb3-918f-e445bf52f815

frank-zsy commented 2 weeks ago

It looks really good already~