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

gnoweb: new u/<handle> page #2189

Open
moul opened this issue May 25, 2024 · 0 comments
Open

gnoweb: new u/<handle> page #2189

moul opened this issue May 25, 2024 · 0 comments
Labels
🌍 gnoweb Issues & PRs related to gnoweb and render

Comments

@moul
Copy link
Member

moul commented May 25, 2024

Overview

Create a u/<handle> page on Gnoweb for std.Address.

Definition of Done

  1. Render Home Page:

    • Render r/<handle>/home.Render if it exists.
  2. Account Information:

    • Display user balance, account number, and sequence number.
  3. Update Breadcrumb:

    • The breadcrumb should automatically link to u/<handle>.

Bonus / Future Enhancements

  1. Published Packages:

    • List {p,r}/<handle>/** published packages.
    • Implement a new RPC call with pagination to fetch this information.
    • Ideally sorted by publication date.
  2. Redirection for registered users:

    • Support u/<username>.
    • Redirect u/<std.Address> to vanity username (r/demo/users) or display the vanity username if it exists.
    • Requires a new RPC call.
  3. Team Membership:

    • Display team members for users declared as teams.
    • Display member teams for users.
    • Depends on PR feat: add r/sys/teams #2184.
    • Requires a new RPC call.
  4. Additional Features:

Related: #2727

@Kouteki Kouteki added the 🌍 gnoweb Issues & PRs related to gnoweb and render label May 31, 2024
leohhhn added a commit that referenced this issue Sep 3, 2024
## Description

This PR adds v1 of `r/leon` to the examples folder. It contains
`r/leon/home` & `r/leon/config`.
 
For context - this is meant to be a personal realm (or set of realms)
that every gno.land user should have at some point. Later, the idea is
to have a [special user
page](#2189) which will fetch the
`Render()` of `r/username/home`. This will serve like the profile of the
user; and the home realm will most likely be upgradeable down the line.

The reason I am making this a PR and not simply publishing it to the
Portal Loop is that it allows for further code changes down the line.
`examples/` get loaded into genesis first, and all other replayed addpkg
transactions after that, making it possible to have "upgradeable" realms
on Portal Loop.

<details><summary>Contributors' checklist...</summary>

- [x] Added new tests, or not needed, or not feasible
- [x] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [x] Updated the official documentation or not needed
- [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [x] Added references to related issues and PRs
- [x] Provided any useful hints for running manual tests
- [x] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌍 gnoweb Issues & PRs related to gnoweb and render
Projects
Status: 📥 Inbox
Status: Backlog
Development

No branches or pull requests

2 participants