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

[misc/gnoview] context & next steps for the gno package viewer #477

Open
zivkovicmilos opened this issue Jan 24, 2023 · 2 comments
Open
Labels
📖 documentation Improvements or additions to documentation

Comments

@zivkovicmilos
Copy link
Member

zivkovicmilos commented Jan 24, 2023

Description

Previously, gno used to utilize a package / realm viewer called gnoview that relied on the logos browser.
gnoview has since been deprecated and removed with this PR.

gnoview was initially introduced in commit 38f8e81.

This issue aims to start a discussion about implementing a similar package viewer to gnoview.

Example realm:

// gno.land/r/main
package main

var root Node

type Node interface{}
type Key interface{}
type Value interface{}

type InnerNode struct {
	Key   Key
	Left  Node `gno:owned`
	Right Node `gno:owned`
}

type LeafNode struct {
	Key   Key
	Value Value
}

func init() {
	root = InnerNode{
		Key: "old",
	}
}

func main() {
	println("gno.land initializing...")
	node1 := LeafNode{
		Key:   "left",
		Value: "left value",
	}
	node2 := LeafNode{
		Key:   "right",
		Value: "right value",
	}
	root = InnerNode{
		Key:   "new",
		Left:  node1,
		Right: node2,
	}
	println("gno.land ready!")
}

View of this realm using gnoview, that outlines the different types (structs, methods, interfaces) present in the realm:
Screenshot 2023-01-24 at 15 18 25


Current state: not a priority.

This issue can be used to discuss the idea and share links to related resources.

@moul moul added the 📖 documentation Improvements or additions to documentation label Jan 25, 2023
@moul moul changed the title GNO Package Viewer [misc/gnoview] context & next steps for the gno package viewer Jan 25, 2023
@moul moul removed the help wanted label Jan 25, 2023
@moul
Copy link
Member

moul commented Feb 2, 2023

Next step: to create a CLI alternative. Within gnodev?

@zivkovicmilos
Copy link
Member Author

Next step: to create a CLI alternative. Within gnodev?

What kind of information should the alternative display about the package? The same info logos used to?

@moul moul moved this to 🔵 Not Needed for Launch in 🚀 The Launch [DEPRECATED] Sep 5, 2023
@moul moul added this to the 💡Someday/Maybe milestone Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Improvements or additions to documentation
Projects
Status: 🔵 Not Needed for Launch
Development

No branches or pull requests

2 participants