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

rewrite with svelte kit #33

Open
wants to merge 55 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
439eff6
add svelte
Steven-Harris Dec 4, 2024
b8586a4
svelte updates
Steven-Harris Dec 14, 2024
7e3d8fd
add vitest
Steven-Harris Dec 14, 2024
4732d0e
port over ui modules
Steven-Harris Dec 15, 2024
e56dbba
updates
Steven-Harris Dec 18, 2024
c1354ab
auth works
Steven-Harris Dec 20, 2024
6688b17
initial layout copy
Steven-Harris Dec 21, 2024
75a158a
add tabs
Steven-Harris Dec 22, 2024
976f9d7
move isSignedIn logic
Steven-Harris Dec 22, 2024
5518030
revert signedIn change
Steven-Harris Dec 22, 2024
d0126b9
split out reviews fetch
Steven-Harris Dec 22, 2024
0bb855b
support multiple pr filters
Steven-Harris Dec 22, 2024
ae85543
move containers
Steven-Harris Dec 22, 2024
1682afb
format
Steven-Harris Dec 22, 2024
f61a79c
cache site data
Steven-Harris Dec 22, 2024
93fdbc3
move jobs into workflowRun
Steven-Harris Dec 26, 2024
8b86ac6
use barrels
Steven-Harris Dec 26, 2024
6c45d7d
add edit
Steven-Harris Dec 26, 2024
8c2e759
config components reusable
Steven-Harris Dec 26, 2024
d83d29f
add two-way binding
Steven-Harris Dec 27, 2024
510d3c2
sortable progress
Steven-Harris Dec 30, 2024
eff1c3d
move config files
Steven-Harris Dec 30, 2024
aca773d
update tsconfig
Steven-Harris Dec 30, 2024
4480927
add svelte kit
Steven-Harris Jan 5, 2025
ab0cd73
add pwa back
Steven-Harris Jan 11, 2025
872c9e0
add config editing
Steven-Harris Jan 16, 2025
19fc767
add config filter style
Steven-Harris Jan 18, 2025
76eda1b
updating filter styling
Steven-Harris Jan 18, 2025
115d0a7
refresh work
Steven-Harris Jan 18, 2025
97f0be9
add config save
Steven-Harris Jan 22, 2025
1f48db9
fix tabs
Steven-Harris Jan 22, 2025
12335f6
refinement
Steven-Harris Jan 28, 2025
9f4f075
troubleshooting sortable
Steven-Harris Jan 30, 2025
7bb3e23
use sortable function
Steven-Harris Jan 30, 2025
5e8bd11
implement draggable
Steven-Harris Jan 31, 2025
6f3db05
reorganizing folder structure
Steven-Harris Jan 31, 2025
883a9b1
remove log out
Steven-Harris Jan 31, 2025
0fb202f
update firebase config
Steven-Harris Feb 1, 2025
91cfffc
output to dist
Steven-Harris Feb 1, 2025
d8b0e42
update gh config
Steven-Harris Feb 1, 2025
37b8425
update packages
Steven-Harris Feb 1, 2025
4a39370
reorganize
Steven-Harris Feb 1, 2025
1b512ea
Merge branch 'main' into svelte-kit
Steven-Harris Feb 1, 2025
d96902b
update lock
Steven-Harris Feb 1, 2025
f517624
fix action
Steven-Harris Feb 1, 2025
7771b1c
use tailwind 4
Steven-Harris Feb 2, 2025
e42605c
update time since update
Steven-Harris Feb 2, 2025
1fcc2f8
catch errors better
Steven-Harris Feb 2, 2025
34d574c
add rate limit modal
Steven-Harris Feb 2, 2025
a11dfa8
update color
Steven-Harris Feb 2, 2025
15ae690
keep jobs from refreshing
Steven-Harris Feb 4, 2025
0298476
update rate limit prompt
Steven-Harris Feb 4, 2025
ed88b63
add random delay
Steven-Harris Feb 4, 2025
bea8b3a
long delay
Steven-Harris Feb 4, 2025
a3932aa
fix refresh issues
Steven-Harris Feb 9, 2025
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
3 changes: 1 addition & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: 🔍 Pull Request

on:
pull_request:
branches:
Expand Down Expand Up @@ -44,4 +43,4 @@ jobs:
projectId: githelm
target: preview
channelId: ${{ github.head_ref }}
expires: 7d
expires: 7d
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ pnpm-debug.log*
# Vite build output
dist/

# Svelte build output
.svelte-kit/

# Firebase
.firebase/

Expand All @@ -33,4 +36,5 @@ dist/
.DS_Store

# Windows files
Thumbs.d
Thumbs.d
/old
101 changes: 99 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,100 @@
# githelm
# GitHelm

GitHelm is a web application designed to monitor GitHub pull requests and actions across multiple repositories. The application provides a user-friendly interface to authenticate with GitHub, configure repositories and actions to monitor, and view the status of pull requests and actions in real-time.

<a href="https://www.buymeacoffee.com/githelm" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 40px !important;width: 150px !important;" ></a>

## Using the Site
### Features

- **Monitor Pull Requests**: Configure and monitor pull requests across multiple repositories.
- **Monitor Actions**: Configure and monitor GitHub actions across multiple repositories.
- **Filtering**: Add filters to pull requests and actions to narrow down the results.
- **Real-time Updates**: Automatically refresh the content every 60 seconds to provide real-time updates.
- **Progressive Web App (PWA)**: Install the application as a PWA for offline access.

#### Authentication

1. **Login**:
- Click the "Login with GitHub" button.
- Authenticate with your GitHub account.
- Authorize any organization you wish to monitor.

2. **Logout**:
- Click the "Logout" button to sign out of the application.

#### Setting Up Repositories

1. **Add a Repository**:
- Navigate to the "Pull Requests" or "Actions" section (or tabs if you're on mobile).
- Click the "Edit" button to enter the configuration mode.
- Enter the organization and repository name.
- Add any filters (labels for pull requests or workflow names for actions).
- Click the "Add" button to add the repository to the configuration.

2. **Save Configuration**:
- Click the "Save" button to save the configuration.
- The repositories and actions will be monitored based on the configuration.

#### Adding Filters

1. **Add a Filter**:
- In the configuration mode, enter the filter (label for pull requests or workflow name for actions).
- Click the "Add Filter" button to add the filter.

2. **Remove a Filter**:
- Click the "x" button next to the filter to remove it.

### Viewing Pull Requests and Actions

1. **Pull Requests**:
- Navigate to the "Pull Requests" tab to view the list of monitored pull requests.
- The pull requests will be displayed with their titles and statuses.

2. **Actions**:
- Navigate to the "Actions" tab to view the list of monitored actions.
- The actions will be displayed with their names and statuses.

### Real-time Updates

- The application will automatically refresh the content every 60 seconds to provide real-time updates.
- You can also manually refresh the content by clicking the "Refresh" button next to time timer located in the footer.

### Progressive Web App (PWA)

- You can install the application as a PWA for offline access.
- Follow the browser prompts to install the application on your device

## Development
### Requirements

- Node.js (v18 or higher)
- pnpm (v9 or higher)
- GitHub account

### Development Setup

1. **Install Dependencies**:

```sh
pnpm install
```

2. **Run the Development Server**:

```sh
pnpm run dev
```

3. **Build the Application**:

```sh
pnpm run build
```

4. **Preview the Production Build**:

```sh
pnpm run serve
```

<a href="https://www.buymeacoffee.com/githelm" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
159 changes: 0 additions & 159 deletions index.html

This file was deleted.

41 changes: 21 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,50 @@
{
"name": "githelm",
"version": "1.0.0",
"description": "",
"main": "src/main.js",
"private": true,
"type": "module",
"packageManager": "[email protected]",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"test": "vitest",
"build": "vite build",
"serve": "vite preview",
"generate-pwa-icons": "pwa-assets-generator"
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Steven-Harris/githelm.git"
},
"author": "",
"license": "ISC",
"author": "steven-harris",
"bugs": {
"url": "https://github.com/Steven-Harris/githelm/issues"
},
"homepage": "https://githelm.com",
"resolutions": {
"sharp": "0.32.6",
"sharp-ico": "0.1.5"
},
"dependencies": {
"firebase": "^11.2.0",
"sortablejs": "^1.15.6"
"tailwindcss": "^4.0.2"
},
"devDependencies": {
"@types/node": "^22.13.0",
"@types/sortablejs": "^1.15.8",
"@sveltejs/adapter-static": "^3.0.8",
"@sveltejs/kit": "^2.16.1",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"@tailwindcss/vite": "^4.0.3",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/svelte": "^5.2.6",
"@tsconfig/svelte": "5.0.4",
"@vite-pwa/assets-generator": "^0.2.6",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"cssnano": "^7.0.6",
"firebase-tools": "^13.29.3",
"postcss": "^8.5.1",
"tailwindcss": "^3.4.17",
"@vite-pwa/sveltekit": "^0.6.7",
"sharp": "0.32.6",
"sharp-ico": "0.1.5",
"svelte": "^5.19.6",
"svelte-check": "^4.1.4",
"svelte-preprocess": "^6.0.3",
"tslib": "2.8.1",
"typescript": "^5.7.3",
"vite": "^6.0.11",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-pwa": "^0.21.1",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^2.1.8",
"workbox-window": "^7.3.0"
}
}
Loading
Loading