Skip to content

Instantly share code, notes, and snippets.

@vilmibm
Last active February 7, 2022 21:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vilmibm/d2e4779ae90089cca6aa12d8aa553362 to your computer and use it in GitHub Desktop.
Save vilmibm/d2e4779ae90089cca6aa12d8aa553362 to your computer and use it in GitHub Desktop.
Mockups for gh home/status/etc project
good morning, vilmibm last sync: 10m 2022/02/02 17:02 |
|
Mentions | Review Requests | Assignments |
cli/cli #4519 | cli/cli #1241 | cli/cli #1241 |
cli/cli #5113 | vilmibm/testing #123 | cli/go-gh #312 |
someone/an-extension #3 | cli/cli.github.com #145 | github/github #14121 |
github/github #14102 | vilmibm/screensaver #2 | cli/go-gh #300 |
|
New Issues & PRs |
cli/cli #5159 gh home |
cli/cli #5150 `gh` as Docker credential helper |
vilmibm/gh-screensaver #123 broken behavior in the plan9 operating system |
cli/go-gh #10 fix the thing that was broken |
|
Automation Heath _\/_ | _\/_ |
cli/cli Test xx✓✓✓ /o\\ \ / //o\ |
cli/cli Lint x✓✓✓✓ | .---. | |
vilmibm/gh-screensaver Build x✓✓✓✓ _|____ -- / \ -- ____|__ |
cli/cli.github.com Build xxx✓✓ `~^~^~^~^~^~^~^~^~^~^~^~` |
jgs |
---------------------------------------------------------------------------------
Flags
- `--org` limit to an org
- `--refresh` force a refresh, otherwise refreshes if 30m stale
Notes:
- Other ideas for widgets:
- security alerts
- new discussions
- discussion responses
- releases
- gray for greeting, time
- dynamic color for last sync value -- green for under 10m, yellow for 10-20m stale, red otherwise
- bold for section headers
- purple for line delimiters
- Automation health
- checks + actions
- I'd love for this to be customizable
- honestly i don't think this feature is worth much if it isn't
- issue label priorities: ie, `bug` or `p1` or whatever should be highly visible
- customizable sections (toggle a set list on/off)
- all the way version:
- label it
- make a query with `gh`
- set how many things should be shown
- re-use go templating support?
- i find this exciting even though it will be a fair bit of work
- i'm imagining widget sizes:
- full width
- 1/3
- 1/2
- next steps:
- mock up smaller window examples
- hack on a prototype for making this be user customizable with dynamic widgets
Between Mislav's observation that we might want to start with standalone commands that can render what might be shown in a "widget" and @brianlovin 's pointing out of the mobile Shortcut features, I took a wild stab at what this kind of flow could look like in the CLI:
```bash
gh shortcut list
cli-triage
personal-stuff
cli-auto
gh sc cli-auto
Check
cli/cli Test xx✓✓✓
cli/go-gh Test x✓✓✓✓
cli/cli Lint ✓✓✓✓✓
gh shortcut create
? Create which kind of shortcut?
Issues and/or Pull Request list
> Repository Activity
Org activity
Notifications
Discussions
A summary of automation health
<enter>
? Include which repositories?
[x] cli/cli
[x] cli/go-gh
[ ] vilmibm/testing
[ ] vilmibm/tildemush
... (scroll for more)
<enter>
? What should be included?
[ ] new issues
[ ] closed issues
[x] new pull requests
[x] merged pull requests
[x] comments on pull requests
[ ] comments on issues
<enter>
? Columns to show?
[x] Repo
[x] Reason
[x] Number
[x] Type
[x] Subject
<enter>
Preview:
Repo Reason Number Type Subject
cli/cli closed 413 issue Foo the bar
cli/go-gh created 20 pull request Quux needs baz
cli/cli comment 4102 issue That reminds me, ...
cli/go-gh comment 12 issue It is broken when i...
? Is this cool? [Yn]
<enter>
? Name: cli-repo-activity
<enter>
✓ Saved shortcut cli-repo-activity
gh sc cli-repo-activity
Repo Reason Number Type Subject
cli/cli closed 413 issue Foo the bar
cli/go-gh created 20 pull request Quux needs baz
cli/cli comment 4102 issue That reminds me, ...
cli/go-gh comment 12 issue It is broken when i...
```
`gh sc` is a shortcut for invoking a shortcut by name; `gh shortcut` provides CRUD for shortcuts.
questions:
- is this leaning to heavily on survey interaction?
- is this a useful on-ramp to creating a dashboard-like experience?
- does this satisfy both human needs ("what do i want to work on?") as well as machine needs?
- is this redundant with, say, `gh alias` + `gh api`? is it worth a whole new namespace?
@juxtin
Copy link

juxtin commented Feb 3, 2022

<3 this is so nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment