Introduce comments to clarify context of component usage

This commit is contained in:
Caleb Owens 2024-05-28 10:09:37 +02:00
parent f9ca7374e8
commit 1645073d92
4 changed files with 13 additions and 0 deletions

View File

@ -1,4 +1,5 @@
<script lang="ts">
// This is always displayed in the context of not having a cooresponding vbranch or remote
import Button from '$lib/components/Button.svelte';
import Link from '$lib/components/Link.svelte';
import Tag from '$lib/components/Tag.svelte';

View File

@ -1,4 +1,9 @@
<script lang="ts">
// This page is displayed when:
// - A pr is found
// - And it does NOT have a cooresponding vbranch
// - And it does NOT have a cooresponding remote
// It may also display details about a cooresponding pr if they exist
import FullviewLoading from '$lib/components/FullviewLoading.svelte';
import PullRequestPreview from '$lib/components/PullRequestPreview.svelte';
import { GitHubService } from '$lib/github/service';

View File

@ -1,4 +1,8 @@
<script lang="ts">
// This page is displayed when:
// - A remote branch is found
// - And it does NOT have a cooresponding vbranch
// It may also display details about a cooresponding pr if they exist
import FullviewLoading from '$lib/components/FullviewLoading.svelte';
import RemoteBranchPreview from '$lib/components/RemoteBranchPreview.svelte';
import { GitHubService } from '$lib/github/service';

View File

@ -1,4 +1,7 @@
<script lang="ts">
// This page is displayed when:
// - A vbranch is found
// It may also display details about a cooresponding remote and/or pr if they exist
import BranchLane from '$lib/components//BranchLane.svelte';
import Button from '$lib/components/Button.svelte';
import FullviewLoading from '$lib/components/FullviewLoading.svelte';