Merged
Conversation
Owner
Author
|
/glimpse |
🧐 UI Demo PreviewChanges detected in: What changed: The documentation and setup experience for GitGlimpse has been significantly simplified, removing the dual-workflow 📱 Can't see the preview? Open it directly Demo script (auto-generated)import type { Page } from '@playwright/test';
export async function demo(page: Page): Promise<void> {
await page.goto('http://localhost:3000', { waitUntil: 'networkidle' });
await page.waitForLoadState('networkidle');
await page.waitForTimeout(1500);
// Scroll to top to show the example PR comment screenshot
await page.evaluate(() => window.scrollTo({ top: 0, behavior: 'smooth' }));
await page.waitForTimeout(1500);
// Look for the example comment image or heading at the top of README
const exampleImage = page.locator('img[alt*="Example PR comment"]').first();
if (await exampleImage.isVisible()) {
await exampleImage.scrollIntoViewIfNeeded();
await page.waitForTimeout(2000);
}
// Scroll down to find Quick Start / GitHub Action section
const quickStartHeading = page.getByRole('heading', { name: /quick start/i }).first();
if (await quickStartHeading.isVisible()) {
await quickStartHeading.scrollIntoViewIfNeeded();
await page.waitForTimeout(1500);
} else {
await page.evaluate(() => window.scrollBy({ top: 400, behavior: 'smooth' }));
await page.waitForTimeout(1500);
}
// Scroll to highlight the simplified single workflow file section
const githubActionHeading = page.getByRole('heading', { name: /github action/i }).first();
if (await githubActionHeading.isVisible()) {
await githubActionHeading.scrollIntoViewIfNeeded();
await page.waitForTimeout(1500);
} else {
await page.evaluate(() => window.scrollBy({ top: 400, behavior: 'smooth' }));
await page.waitForTimeout(1500);
}
// Scroll through the workflow YAML snippet to show fewer steps/permissions
await page.evaluate(() => window.scrollBy({ top: 350, behavior: 'smooth' }));
await page.waitForTimeout(2000);
// Continue scrolling to show the config file section
await page.evaluate(() => window.scrollBy({ top: 350, behavior: 'smooth' }));
await page.waitForTimeout(1500);
// Look for config file code block or heading
const configHeading = page.getByText(/git-glimpse\.config\.ts/i).first();
if (await configHeading.isVisible()) {
await configHeading.scrollIntoViewIfNeeded();
await page.waitForTimeout(2000);
} else {
await page.evaluate(() => window.scrollBy({ top: 350, behavior: 'smooth' }));
await page.waitForTimeout(2000);
}
// Scroll a bit more to show the full config snippet with recording/llm options
await page.evaluate(() => window.scrollBy({ top: 300, behavior: 'smooth' }));
await page.waitForTimeout(2000);
// Scroll back to top to end the demo
await page.evaluate(() => window.scrollTo({ top: 0, behavior: 'smooth' }));
await page.waitForTimeout(1500);
}Generated by git-glimpse |
Owner
Author
|
/glimpse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.