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
152 changes: 16 additions & 136 deletions .github/workflows/chrome-extension-ci.yml
Original file line number Diff line number Diff line change
@@ -1,144 +1,24 @@
name: Chrome Extension CI

on:
push:
branches: [ main, develop, test ]
branches: [main, develop, 'feat/**']
pull_request:
branches: [ main ]

permissions:
contents: write
pull-requests: write
issues: write

contents: read
jobs:
version-check:
verify:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.base_ref == 'main' && github.head_ref == 'test'

steps:
- name: Checkout main branch
uses: actions/checkout@v3
with:
ref: main

- name: Get main version
id: main_version
run: |
MAIN_VERSION=$(grep '"version"' manifest.json | cut -d '"' -f 4)
echo "main_version=$MAIN_VERSION" >> $GITHUB_OUTPUT

- name: Checkout PR branch
uses: actions/checkout@v3

- name: Get PR version
id: pr_version
run: |
PR_VERSION=$(grep '"version"' manifest.json | cut -d '"' -f 4)
echo "pr_version=$PR_VERSION" >> $GITHUB_OUTPUT

- name: Compare versions
run: |
if [ "${{ steps.main_version.outputs.main_version }}" == "${{ steps.pr_version.outputs.pr_version }}" ]; then
echo "Error: Version in manifest.json has not been updated."
exit 1
else
echo "Version has been updated from ${{ steps.main_version.outputs.main_version }} to ${{ steps.pr_version.outputs.pr_version }}"
fi

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install ESLint and plugins
run: |
npm install eslint@7.32.0 \
@typescript-eslint/eslint-plugin@4.33.0 \
@typescript-eslint/parser@4.33.0

- name: Create ESLint config if not exists
run: |
if [ ! -f ".eslintrc.js" ] && [ ! -f ".eslintrc.json" ] && [ ! -f ".eslintrc.yaml" ] && [ ! -f ".eslintrc.yml" ]; then
echo "module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['warn', {
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_',
'caughtErrorsIgnorePattern': '^_'
}],
'no-undef': 'warn'
},
env: {
browser: true,
node: true,
es6: true,
webextensions: true
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
globals: {
chrome: 'readonly',
GithubExtensionSettings: 'readonly',
enhanceRelativeTimes: 'readonly',
isEnhancing: 'writable',
enhancementComplete: 'writable',
enhanceContributors: 'readonly',
observeDomForElement: 'readonly',
debug: 'readonly',
formatDateTime: 'readonly'
}
};" > .eslintrc.js
echo "Created .eslintrc.js"
else
echo "ESLint config already exists"
fi

- name: Run ESLint
run: npx eslint . --ext .js,.jsx,.ts,.tsx

build-and-release:
needs: [version-check, lint]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Read version from manifest
id: manifest
run: |
VERSION=$(grep '"version"' manifest.json | cut -d '"' -f 4)
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Package extension
run: |
zip -r github-enhancer-${{ steps.manifest.outputs.version }}.zip . -x "*.git*" "node_modules/*" "*.md" ".github/*" "package*.json" ".eslintrc.js"

- name: Create Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create v${{ steps.manifest.outputs.version }} \
--title "Release v${{ steps.manifest.outputs.version }}" \
--notes "Release notes for version ${{ steps.manifest.outputs.version }}" \
github-enhancer-${{ steps.manifest.outputs.version }}.zip
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
- run: npm ci --ignore-scripts
- run: npm test
- run: npm run check
- run: npm run package
- uses: actions/upload-artifact@v4
with:
name: github-enhancer
path: dist/*.zip
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,17 @@ output

# Test files
html.html

# Local release and test artifacts
dist/
coverage/
.superpowers/

# Private development evidence; public research is explicitly allowlisted.
docs/screenshots/
docs/qa-exports/
docs/superpowers/
docs/store-release-draft.md
docs/research/*
!docs/research/competitors.md
!docs/research/technical-audit.md
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Changelog

## 3.0.0
- Added source-linked code basket, multi-file Markdown export and mutable-link labels.
- Added named workspaces joining pages, snippets and private notes, with reopen and Markdown export.
- Added loaded-file PR review navigation, folder/type grouping, private file notes, resume and revision-aware local marks.
- Added loaded-comment search, author/saved filters, source jumps and important-comment bookmarks.
- Added private reply drafts, reusable templates, session recovery and explicit copy-only output.
- Expanded command search to workspace notes, code evidence and private PR notes.
- Fixed out-of-snapshot code selection, grouped review traversal and focus/selection retention.
- Upgraded local schema/backups to version 2 while retaining version 1 imports.
- Fixed wide layout so repository content expands alongside the sidebar's new position.

- Add a device-local workspace for saved repositories, issues, PRs, discussions, commits, and code pages.
- Add private notes, text search, type filters, removal with Undo, and JSON backup merge.
- Add an isolated in-page workbench, redesigned toolbar popup, and settings page.
- Add contextual copy actions, repository shortcuts, and an Alt+Shift+K command search.
- Replace destructive date badges with reversible exact-date annotations, local/UTC formatting, and reading modes.
- Serialize storage mutations and validate URLs, settings, imports, and worker messages.
- Remove API token handling, API host access, scripting permission, animated themes, contributor replacements, and inaccurate API-dependent file sizes.
- Add repeatable tests, asset/syntax checks, least-privilege CI, and release packaging.
19 changes: 19 additions & 0 deletions DESIGN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# GitHub Enhancer design system

## Scene and direction
A developer moves between a bright office and an evening laptop session while researching code. Follow GitHub's selected color mode in-page and the OS in standalone extension pages. Preserve the existing GitHub-aligned blue identity.

## Color
Restrained: canvas white / #0d1117, secondary surface #f6f8fa / #161b22, ink #1f2328 / #e6edf3, muted #59636e / #919ba6, border #d1d9e0 / #30363d, primary blue #0969da / #4493f8. Blue identifies actions, selected state, and focus. Success green only communicates completion.

## Typography
System sans; 13px compact body, 14px input, 18px section headings, 24px workbench title. Monospace only for owner/repo identifiers and keyboard hints. No uppercase eyebrows.

## Surfaces
Popup: 400px compact workbench, five task sections: contextual tools, code basket, workspaces, writing and saved pages. In-page workbench: isolated extension-origin frame, right aligned nonmodal 400px panel, bounded to viewport, no GitHub layout shift. Command palette: accessible overlay with keyboard focus and explicit close. Settings: readable two-column desktop layout, stacked narrow screens.

## Components
Single 1px border, 8px control radius, 12px panel radius. Lists use separators, not nested cards. Icons use a consistent 16px stroke vocabulary. Labeled native inputs, buttons and selects. State feedback uses a live status region; destructive actions offer Undo.

## Interaction
Short 150ms opacity/transform transitions; reduced-motion removes transitions. Arrow keys and Enter in the palette, Escape dismisses and restores focus. Notes save explicitly to avoid pretending persistence succeeded. All empty, loading, disconnected and storage-error states explain the next action.
27 changes: 27 additions & 0 deletions PRIVACY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Privacy

GitHub Enhancer 3 runs on your device. It has no backend and does not collect analytics.

## Stored data

When you choose Save page or Save note, the extension stores the GitHub URL, page title, repository name, page type, your note, and creation/update timestamps in `chrome.storage.local`. Code excerpts you explicitly collect include their text, line range, path, language and source URL. Workspaces store links to saved records and notes. PR review records contain private per-file notes, local marks, revision references when verified and the last visited file. Reply templates store the title and Markdown body you choose to save. Preferences are also stored locally. Unsaved page notes, workspace names/notes, excerpt ranges/annotations PR file notes, reply drafts and template edits are held in extension session storage for recovery after closing a popup or tab; session drafts clear when the browser session ends. It does not record browsing history or automatically save visited pages.

The toolbar popup uses `activeTab` to identify the page you choose to save. A content script on github.com reads the current URL/title, timestamps and loaded code/diff/comment content to provide the workbench and reading tools. Notes are displayed in an extension-origin frame or extension page, so they are not inserted into GitHub's readable page DOM. GitHub can see that an extension frame exists, but same-origin browser protections prevent its page scripts from reading the frame's notes.

## Network and authentication

The extension does not call the GitHub API or any other server. It never asks for a personal access token, password, or sign-in. Following a link in the extension opens GitHub normally, using your existing browser session. GitHub's own privacy policy then applies.

## Backups and deletion

Export creates a local JSON file containing saved URLs, titles, excerpts, workspace collections, review notes/marks, reply templates, timestamps, and preferences. Markdown exports include the selected excerpts, source links and saved notes. Workspace export can explicitly include saved private file notes from linked PRs when you select that option. Private repository names and any sensitive information you put in notes are included. Export only to a location you trust. Import is local, validates the file, and merges entries by URL while retaining more recent local edits.

Use Remove to delete a saved item; Undo restores the most recently removed item during that UI session. Uninstalling removes extension-local data. Chrome profile backups and exported files are outside the extension's control. Notes are protected by your browser profile, not encrypted with a separate extension password.

## Updates from older versions

Version 3 reads only the legacy date and locale preferences from Chrome sync storage once. It does not use legacy authentication tokens, API caches, or decorative settings. Legacy data is left untouched to avoid silently deleting user information.

## Limited Use

GitHub Enhancer's use of user data complies with the Chrome Web Store User Data Policy, including its Limited Use requirements. Data is used only to provide the user-facing features described here. The extension does not sell data, use it for advertising, or transfer it to third parties. Copying or exporting data is initiated by you; you control where that output goes.
29 changes: 29 additions & 0 deletions PRODUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# GitHub Enhancer

## Register
product

## Users
Developers and maintainers browsing repositories, issues, and pull requests throughout the day. They switch between investigations and want to recover their own context quickly.

## Product Purpose
A private GitHub investigation workbench: review loaded PR diffs, collect source-linked code excerpts and organize pages and notes into named workspaces. Saved pages and reading utilities support these core workflows. Works without accounts, tokens, or a server.

## Brand Personality
Focused, capable, considered. English product language for a global developer audience; date locale can follow the browser or use English/Turkish.

## Anti-references
The previous extension's floating orbs, cursor particles, continuous animation, and glass effects. Avoid duplicating GitHub's native file tree or pretending to replace its search.

## Design Principles
- Keep the user's place, not a second copy of GitHub.
- Only ask for attention when the user invokes a tool.
- Local data and transparent controls build trust.
- Preserve GitHub's native workflows and semantics.
- Fast keyboard paths complement visible controls.

## Accessibility & Inclusion
Keyboard operation, visible focus, clear labels, reduced motion, light/dark adaptation, with WCAG AA contrast as a design target; full conformance has not been audited. Never override native GitHub keyboard shortcuts.

## Decision authority
The user explicitly delegated product/design decisions and authorized discussion with independent agents. These choices combine that brief with repository analysis and competitor research.
Loading
Loading