Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: test test-stress test-unit test-e2e test-e2e-sequential test-file deps lint dev test-repo dev-repo setup-gh demo
.PHONY: test test-stress test-unit test-e2e test-e2e-sequential test-file deps lint dev test-repo dev-repo setup-gh demo demo-basics demo-advanced demo-forge

# Run plugin in development mode
dev:
Expand Down Expand Up @@ -79,10 +79,20 @@ format:
echo "stylua not installed"; \
fi

# Record demo and generate all output formats (cast, v2 cast, gif)
# Record all demos (basics, advanced, forge)
demo:
./scripts/record-demo.sh

# Record individual demos
demo-basics:
./scripts/record-demo.sh basics

demo-advanced:
./scripts/record-demo.sh advanced

demo-forge:
./scripts/record-demo.sh forge

# Clean test artifacts
clean:
rm -rf .tests/
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ A performance-focused, magit-inspired git interface for Neovim.

<p align="center">
<a href="https://actionshrimp.com/gitlad.nvim/#demo">
<img src="https://github.com/actionshrimp/gitlad.nvim/raw/main/docs/demo-preview.gif" alt="gitlad.nvim demo">
<img src="https://github.com/actionshrimp/gitlad.nvim/raw/main/docs/demo-basics-preview.gif" alt="gitlad.nvim demo">
</a>
<br>
<em><a href="https://actionshrimp.com/gitlad.nvim/#demo">Interactive demo</a></em>
<em><a href="https://actionshrimp.com/gitlad.nvim/#demo">Interactive demos</a> — core workflow, advanced diff, and GitHub integration</em>
</p>

## Installation
Expand Down
204 changes: 204 additions & 0 deletions docs/demo-advanced-v2.cast

Large diffs are not rendered by default.

204 changes: 204 additions & 0 deletions docs/demo-advanced.cast

Large diffs are not rendered by default.

Binary file added docs/demo-basics-preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
661 changes: 278 additions & 383 deletions docs/demo-v2.cast → docs/demo-basics-v2.cast

Large diffs are not rendered by default.

437 changes: 166 additions & 271 deletions docs/demo.cast → docs/demo-basics.cast

Large diffs are not rendered by default.

234 changes: 234 additions & 0 deletions docs/demo-forge-v2.cast

Large diffs are not rendered by default.

234 changes: 234 additions & 0 deletions docs/demo-forge.cast

Large diffs are not rendered by default.

Binary file removed docs/demo-preview.gif
Binary file not shown.
26 changes: 22 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,17 @@ <h1>gitlad<span class="nvim">.nvim</span></h1>

<section id="demo" style="padding: 40px 0 0;">
<div class="container" style="max-width: 960px;">
<div id="demo-player" style="border-radius: 8px; overflow: hidden; border: 1px solid var(--border);"></div>
<h2 style="margin-bottom: 6px;">Core workflow</h2>
<p class="muted" style="margin-bottom: 16px;">Status view, staging, commit, branch, log, and git command history.</p>
<div id="demo-basics" style="border-radius: 8px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 48px;"></div>

<h2 style="margin-bottom: 6px;">Advanced diff</h2>
<p class="muted" style="margin-bottom: 16px;">Native side-by-side diff viewer, 3-way staging, and merge conflict resolution.</p>
<div id="demo-advanced" style="border-radius: 8px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 48px;"></div>

<h2 style="margin-bottom: 6px;">GitHub integration</h2>
<p class="muted" style="margin-bottom: 16px;">PR list, detail view, inline review comments, and thread navigation.</p>
<div id="demo-forge" style="border-radius: 8px; overflow: hidden; border: 1px solid var(--border);"></div>
</div>
</section>

Expand Down Expand Up @@ -479,16 +489,24 @@ <h2>Feedback welcome</h2>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/asciinema-player@3.9.0/dist/bundle/asciinema-player.css" />
<script src="https://unpkg.com/asciinema-player@3.9.0/dist/bundle/asciinema-player.min.js"></script>
<script>
AsciinemaPlayer.create('demo-v2.cast', document.getElementById('demo-player'), {
var playerOpts = {
cols: 130,
rows: 42,
fit: 'width',
autoPlay: true,
loop: true,
speed: 1,
idleTimeLimit: 3,
theme: 'dracula',
});
};

AsciinemaPlayer.create('demo-basics-v2.cast', document.getElementById('demo-basics'),
Object.assign({}, playerOpts, { autoPlay: true }));

AsciinemaPlayer.create('demo-advanced-v2.cast', document.getElementById('demo-advanced'),
Object.assign({}, playerOpts, { autoPlay: false }));

AsciinemaPlayer.create('demo-forge-v2.cast', document.getElementById('demo-forge'),
Object.assign({}, playerOpts, { autoPlay: false }));
</script>

</body>
Expand Down
2 changes: 1 addition & 1 deletion lua/gitlad/forge/github/graphql.lua
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ local function parse_checks_summary(commits_node, include_details)
end

local rollup = commit_node.commit.statusCheckRollup
if not rollup then
if not rollup or rollup == vim.NIL then
return nil
end

Expand Down
Loading