diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..9f2e589 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,6 @@ +# Default owners for everything +* @MrAlders0nHelp + +# Specific files/directories +/docs/ @MrAlders0nHelp +*. js @MrAlders0nHelp \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..a6859b3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,54 @@ +name: Bug Report +description: Report a bug or issue +title: "[Bug]: " +labels: ["bug", "triage"] +assignees: + - MrAlders0n +body: + - type: textarea + id: what-happened + attributes: + label: What happened? + description: Describe the bug in a few sentences + placeholder: Tell us what went wrong + validations: + required: true + + - type: textarea + id: steps + attributes: + label: How to reproduce + description: Quick steps to reproduce the issue + placeholder: | + 1. Go to... + 2. Click... + 3. See error + validations: + required: true + + - type: textarea + id: expected + attributes: + label: What should happen instead? + placeholder: Describe what you expected + validations: + required: true + + - type: dropdown + id: severity + attributes: + label: How bad is it? + options: + - "Critical - Can't use it" + - "High - Major problem" + - "Medium - Annoying but workable" + - "Low - Minor issue" + validations: + required: true + + - type: textarea + id: extra + attributes: + label: Anything else? + description: Screenshots, device info, browser, etc. + placeholder: Add screenshots or extra details here \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..170059c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: false +contact_links: + - name: 💬 Questions & Discussion + url: https://github.com/MrAlders0n/MeshCore-GOME-WarDriver/discussions + about: Ask questions about the MeshCore coverage map + - name: 🔒 Security Issue + url: https://github.com/MrAlders0n/MeshCore-GOME-WarDriver/security/advisories/new + about: Report security vulnerabilities privately \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.yml new file mode 100644 index 0000000..b147071 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation.yml @@ -0,0 +1,45 @@ +name: Documentation Issue +description: Report docs that are wrong, missing, or confusing +title: "[Docs]: " +labels: ["documentation", "triage"] +assignees: + - MrAlders0n +body: + - type: dropdown + id: doc-type + attributes: + label: What's the issue? + options: + - Missing documentation + - Wrong or outdated info + - Confusing or unclear + - Typo or grammar + - Need example code + - Other + validations: + required: true + + - type: input + id: location + attributes: + label: Where? + description: File path or URL + placeholder: e.g., README.md or https://... + validations: + required: true + + - type: textarea + id: problem + attributes: + label: What's wrong? + placeholder: Describe the issue + validations: + required: true + + - type: textarea + id: fix + attributes: + label: What should it say? + placeholder: Your suggested fix or content + validations: + required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..ff6e337 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,43 @@ +name: Feature Request +description: Suggest a new feature +title: "[Feature]: " +labels: ["enhancement", "triage"] +assignees: + - MrAlders0n +body: + - type: textarea + id: feature + attributes: + label: What feature do you want? + description: Describe the feature you'd like to see + placeholder: I want to be able to... + validations: + required: true + + - type: textarea + id: why + attributes: + label: Why do you need it? + description: What problem would this solve? + placeholder: This would help me... + validations: + required: true + + - type: dropdown + id: priority + attributes: + label: How important is this? + options: + - "Critical - Really need this" + - "High - Would help a lot" + - "Medium - Nice to have" + - "Low - Just an idea" + validations: + required: true + + - type: textarea + id: extra + attributes: + label: Anything else? + description: Add screenshots, mockups, or examples + placeholder: Any additional details \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..3d47a9c --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,22 @@ +## Description + + +## Type of Change +- [ ] Bug fix +- [ ] New feature +- [ ] Breaking change +- [ ] Documentation update + +## Related Issues + + +## Checklist +- [ ] I have tested these changes +- [ ] I have updated the documentation +- [ ] My code follows the project's style guidelines +- [ ] All tests pass +- [ ] I have added tests for new features + +## Screenshots (if applicable) + +## Additional Notes \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1bc3556..d7e372b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,38 +1,75 @@ name: Deploy to GitHub Pages -on: +on: push: - branches: + branches: - main + - dev workflow_dispatch: -permissions: +permissions: contents: read - pages: write + pages: write id-token: write concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + group: "pages" + cancel-in-progress: true + +jobs: + build-and-deploy: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout main branch + uses: actions/checkout@v4 + with: + ref: main + path: main-content + + - name: Checkout dev branch uses: actions/checkout@v4 + with: + ref: dev + path: dev-content - - name: Setup Pages + - name: Get latest release version + id: get_release + run: | + RELEASE_TAG=$(curl -s https://api.github.com/repos/MrAlders0n/MeshCore-GOME-WarDriver/releases/latest | jq -r '.tag_name') + echo "version=$RELEASE_TAG" >> $GITHUB_OUTPUT + + - name: Setup Pages uses: actions/configure-pages@v4 + - name: Prepare combined deployment + env: + RELEASE_VERSION: ${{ steps.get_release. outputs.version }} + run: | + mkdir -p _site + cp -r main-content/* _site/ 2>/dev/null || true + + # Inject version into main branch + sed -i 's|MeshCore Wardrive|MeshCore Wardrive '"${RELEASE_VERSION}"'|' _site/index.html + + mkdir -p _site/dev + cp -r dev-content/* _site/dev/ 2>/dev/null || true + + # Inject dev badge with date + DEV_DATE=$(date -u +"%Y-%m-%d %H:%M UTC") + sed -i 's|MeshCore Wardrive|MeshCore Wardrive DEV '"${DEV_DATE}"'|' _site/dev/index.html + + find _site -name ". git" -exec rm -rf {} + 2>/dev/null || true + find _site -name ".github" -exec rm -rf {} + 2>/dev/null || true + - name: Upload artifact uses: actions/upload-pages-artifact@v3 - with: - path: '.' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + + - name: Comment deployment URL + run: | + echo "✅ Deployed successfully!" + echo "📦 Main branch (${{ steps.get_release.outputs.version }}): https://mralders0n.github.io/MeshCore-GOME-WarDriver/" + echo "🔧 Dev branch: https://mralders0n.github.io/MeshCore-GOME-WarDriver/dev/" \ No newline at end of file diff --git a/content/wardrive.js b/content/wardrive.js index 5735252..c130622 100644 --- a/content/wardrive.js +++ b/content/wardrive.js @@ -184,7 +184,7 @@ function updateAutoButton() { } function buildCoverageEmbedUrl(lat, lon) { const base = - "https://yow.meshmapper.net/embed.php?cov_grid=1&fail_grid=1&pings=0&repeaters=1&rep_coverage=0&grid_lines=0&meters=1500"; + "https://yow.meshmapper.net/embed.php?cov_grid=1&fail_grid=1&pings=0&repeaters=1&rep_coverage=0&grid_lines=0&dir=1&meters=1500"; return `${base}&lat=${encodeURIComponent(lat)}&lon=${encodeURIComponent(lon)}`; } let coverageRefreshTimer = null; diff --git a/index.html b/index.html index 652bea0..e367651 100644 --- a/index.html +++ b/index.html @@ -149,7 +149,7 @@

+ src="https://yow.meshmapper.net/embed.php?cov_grid=1&fail_grid=1&pings=0&repeaters=1&rep_coverage=0&grid_lines=0&lat=45.42150&lon=-75.69720&meters=10000">

This preview recenters after each ping is sent.