Skip to content

Implemented the cleaner audit/data design - #16

Merged
Shotza247 merged 1 commit into
mainfrom
Audit_Trail_UI
Aug 10, 2026
Merged

Implemented the cleaner audit/data design#16
Shotza247 merged 1 commit into
mainfrom
Audit_Trail_UI

Conversation

@Shotza247

Copy link
Copy Markdown
Owner

What changed:
Added employee fields in [schema.prisma: employmentType, conversionHireStatus, gender, ethnicity. Added dedicated event tables: auth_event, profile_event, ai_usage_event, ai_hitl_decision, nomination_event, review_event. Added migration: [migration.sql].
Updated [audit.ts] so existing audit calls still write to audit_log, but also project clean analytics rows into the new event tables. Updated HR employee create/edit APIs and the HR employee form to edit job grade, employment type, conversion hire, gender, and ethnicity. Updated the System Admin dashboard to read login/AI metrics from the new event tables and show aggregated gender/employment context, without exposing ethnicity. Updated [README.md (line 185)] and the runtime fixes audit log.

What changed:
Added employee fields in [schema.prisma: employmentType, conversionHireStatus, gender, ethnicity.
Added dedicated event tables: auth_event, profile_event, ai_usage_event, ai_hitl_decision, nomination_event, review_event.
Added migration: [migration.sql].
Updated [audit.ts] so existing audit calls still write to audit_log, but also project clean analytics rows into the new event tables.
Updated HR employee create/edit APIs and the HR employee form to edit job grade, employment type, conversion hire, gender, and ethnicity.
Updated the System Admin dashboard to read login/AI metrics from the new event tables and show aggregated gender/employment context, without exposing ethnicity.
Updated [README.md (line 185)] and the runtime fixes audit log.
@Shotza247 Shotza247 self-assigned this Aug 10, 2026
@Shotza247 Shotza247 added enhancement New feature or request github_actions Pull requests that update GitHub Actions code labels Aug 10, 2026
This was linked to issues Aug 10, 2026
@Shotza247
Shotza247 merged commit eab8b84 into main Aug 10, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in System Admin Dahsboard Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request github_actions Pull requests that update GitHub Actions code

Projects

Development

Successfully merging this pull request may close these issues.

Build the Audit Trail UI for MVP 2 System Audit is not for HR

1 participant