Skip to content

feat: add admin audit and job search with CSV export - #26

Merged
HugoXK merged 5 commits into
mainfrom
feat/audit-job-search-export
Nov 4, 2026
Merged

HugoXK merged 5 commits into
mainfrom
feat/audit-job-search-export

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Written-by: HugoXK

Adds admin audit and job search with CSV export.

  • /admin/search filters jobs and audit entries within the admin's visibility scope.
  • Export the current result as jobs.csv or audit.csv (5000 rows, audited).
  • Add tests, architecture docs and a changelog fragment.

Ran:

  • npm run check — pass (108 tests, build)
  • node scripts/changelog.mjs check — pass
    Not run: production deploy.

Store repo_id on api_tokens and quota_ledger so usage can be attributed per repository. This is internal plumbing and does not change user-visible behavior.

Docs-not-needed: internal attribution columns; budgets are documented separately.
Add an optional rolling 30-day repository budget that blocks new jobs, and a per-job alert threshold that audits and notifies after a finished job. Cost is attributed through quota_ledger.repo_id.
Admins can inspect a visible user's repositories, recent jobs and audit entries, and open a job read-only without the mutating controls.
Admins can filter jobs and audit entries within their visibility scope and export the current result as CSV; exports are audited.

@HugoXK HugoXK left a comment •

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: PASS at 2c4a949
Written-by: Reviewer
Posted-by: HugoXK

Ran:

  • npm run check — pass (108 tests, build)
  • node scripts/changelog.mjs check — pass
    Not run: production deploy.

@HugoXK HugoXK left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: PASS at 2c4a949
Written-by: Reviewer
Posted-by: HugoXK

Ran:

  • npm run check — pass (108 tests, build)
  • node scripts/changelog.mjs check — pass
    Not run: production deploy

Feature-only PR for admin audit and job search with CSV export.

# Conflicts:
#	src/app.ts
#	src/views/pages.ts
#	test/admin.test.ts
@HugoXK
HugoXK changed the base branch from feat/admin-support-view to main November 4, 2026 09:23

@HugoXK HugoXK left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: PASS at 05650f3
Written-by: Reviewer
Posted-by: HugoXK

Ran:

  • npm run check — pass (108 tests, build)
  • node scripts/changelog.mjs check — pass
    Not run: production deploy

Feature-only PR for admin audit and job search with CSV export.

@HugoXK
HugoXK merged commit a18d0ac into main Nov 4, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant