Skip to content

chore: promote dev to staging [2026-07-04]#296

Merged
oduwoleeyinojuoluwa44 merged 3 commits into
stagingfrom
dev
Jul 4, 2026
Merged

chore: promote dev to staging [2026-07-04]#296
oduwoleeyinojuoluwa44 merged 3 commits into
stagingfrom
dev

Conversation

@oduwoleeyinojuoluwa44

Copy link
Copy Markdown
Collaborator

Changes included

Test plan

  • POST /admin/admins/invite returns temp_password in response and account is immediately active
  • Engagement page endpoints accessible to REVIEWER tier

oduwoleeyinojuoluwa44 and others added 3 commits July 4, 2026 22:57
* feat(admin-admins): generate temp password on invite instead of OTP reset flow

Invited admins now receive a temporary password via email and their account
is immediately active. The API response includes the temp_password so the
inviting super-admin can also relay it if needed. Removes the dependency on
PasswordResetQueueService from the invite path (resetPassword still uses it).

* feat(ai): add AiUsageLog entity and migration for ai_usage_logs table

Tracks per-call metrics (tag/feature, provider, model, tokens, cost, duration)
for every AI call across scoring, report, resources, question gen, and LT-3 gen.

* feat(ai): persist AI usage metrics to ai_usage_logs after every chatWithMeta call

Injects AiUsageLog repo into OpenRouterService; saves tag, provider, model,
tokens, cost, and duration as a fire-and-forget write so latency is unaffected.

* feat(admin-overview): implement getAiGenerationConsumption with real DB queries

Replaces the empty stub with time-bucketed aggregation (daily/weekly/monthly/yearly)
plus a per-feature breakdown (scoring, report, resources, question_gen, lt3_gen)
and running totals. Expands AiGenerationConsumptionResult to include tokens and cost.
* feat(admin): add engagement dashboard response and query DTOs

Add StatCard/TrendIndicator, EngagementPageStats, retake-dropoff and minor-uptake result DTOs, plus the minor-uptake track query DTO validated against TALENT_ROLE_TRACKS. Mirrors the offers module response conventions.

* feat(admin): implement engagement retake analytics service

Split metrics into getStats, getRetakeDropoff and getMinorUptake sharing a
computeRetakeAggregates helper over advanced assessment attempts. Retake
conversion rate and avg time-to-retake use the 14-day gate; minor assessment
cards and uptake are stubbed empty (no entity yet) per Phase A scope.

* feat(admin): implement engagement retake analytics service

Split metrics into getStats, getRetakeDropoff and getMinorUptake sharing a
computeRetakeAggregates helper over advanced assessment attempts. Retake
conversion rate and avg time-to-retake use the 14-day gate; minor assessment
cards and uptake are stubbed empty (no entity yet) per Phase A scope.

* feat(admin): expose engagement endpoints and register module

Split the controller into GET /admin/engagement/stats, /retake-dropoff and
/minor-uptake, gated by @roles(ADMIN) + @AdminTiers(SUPER_ADMIN, ADMIN) with
explicit swagger responses. Drop the unused TalentProfile repo from the module
and register AdminEngagementModule in AppModule.

* fix(admin): enhance engagement analytics with nullable values and retake candidate tracking

* refactor(admin): streamline imports in AdminMinorUptakeQueryDto
…eset flow (#293)

Invited admins now receive a temporary password via email and their account
is immediately active. The API response includes the temp_password so the
inviting super-admin can also relay it if needed. Removes the dependency on
PasswordResetQueueService from the invite path (resetPassword still uses it).
Copilot AI review requested due to automatic review settings July 4, 2026 22:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 92546aa2-41be-40df-a6bd-84d9633ac0ed

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@oduwoleeyinojuoluwa44
oduwoleeyinojuoluwa44 merged commit 9492b1a into staging Jul 4, 2026
6 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.

3 participants