Add admin experimental condition analytics#24
Open
Spbd1 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
lib/adminSubmissions.ts) by adding many newAdminStatsfields and computing counts/averages/percentages for revision, delayed reveal, memory distortion, cost visibility, explanation frame, and replay-related metrics while ignoring missing legacy fields in averages.revision_condition,attempted_pre_reveal_revision,used_revision_opportunity,revision_magnitude,reveal_timing_condition,stand_by_initial_interpretation,cost_visibility_condition,explanation_frame_condition,remembered_responsibility_error,remembered_constraint_suspicion_error,remembered_primary_attribution_matches_original,memory_distortion_magnitude,replay_completed,replay_assignment_condition,behavior_change_care_avoidance, etc.) and implemented apayloadColumnfallback so values from alternate (older) paths or missing fields export as blank instead of failing.components/admin/AdminDashboard.tsx) to render compact tables/cards for the new experimental summaries via a newMetricSectioncomponent andexperimentSectionsconfiguration, plus small formatting helpers (formatExperimentValue) to display counts, averages, and percentage values.Testing
npm run typecheckand it completed successfully.npm run lintand it completed successfully but with the pre-existing React Hook dependency warning incomponents/ParticipantBackgroundForm.tsx.npm run buildand the Next.js production build completed successfully (static pages generated and app compiled).Files changed:
lib/adminSubmissions.ts,components/admin/AdminDashboard.tsx.Codex Task