Skip to content

[Dashboard] Add admin stats#10533

Open
skarya22 wants to merge 7 commits into
aces:29.0-releasefrom
skarya22:2026_06_10_Dashboard_Admin_stats
Open

[Dashboard] Add admin stats#10533
skarya22 wants to merge 7 commits into
aces:29.0-releasefrom
skarya22:2026_06_10_Dashboard_Admin_stats

Conversation

@skarya22

@skarya22 skarya22 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Brief summary of changes

  • Add the Admin Stats dashboard charts from EEGNet
  • Add hindi to statistics translations
image image

Testing instructions (if applicable)

  1. Insert some data for user registrations and user logins and make sure the charts look ok!
  2. Make sure that a user without user_accounts_multisite permission does not see the panel
INSERT INTO `users` (`ID`, `UserID`, `Password`, `Real_name`, `First_name`, `Last_name`, `Degree`, `Position_title`, `Institution`, `Department`, `Address`, `City`, `State`, `Zip_code`, `Country`, `Phone`, `Fax`, `Email`, `Privilege`, `PSCPI`, `DBAccess`, `Active`, `Password_hash`, `PasswordChangeRequired`, `TOTPSecret`, `Pending_approval`, `Doc_Repo_Notifications`, `language_preference`, `active_from`, `active_to`, `account_request_date`) VALUES (2,'test1',NULL,'Test account','Test1','account',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'test1@example.com',0,'N','','Y','$2y$10$6pjQ.x5rPY7voNFs2w/eI.pzLL8H/9wPZ98nabvBOEwDBClhK0l1S',0,NULL,'N','N',NULL,NULL,NULL,'2022-09-22');
INSERT INTO `users` (`ID`, `UserID`, `Password`, `Real_name`, `First_name`, `Last_name`, `Degree`, `Position_title`, `Institution`, `Department`, `Address`, `City`, `State`, `Zip_code`, `Country`, `Phone`, `Fax`, `Email`, `Privilege`, `PSCPI`, `DBAccess`, `Active`, `Password_hash`, `PasswordChangeRequired`, `TOTPSecret`, `Pending_approval`, `Doc_Repo_Notifications`, `language_preference`, `active_from`, `active_to`, `account_request_date`) VALUES (3,'test2',NULL,'Test account','Test2','account',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'test2@example.com',0,'N','','Y','$2y$10$6pjQ.x5rPY7voNFs2w/eI.pzLL8H/9wPZ98nabvBOEwDBClhK0l1S',0,NULL,'N','N',NULL,NULL,NULL,'2024-09-22');
INSERT INTO `users` (`ID`, `UserID`, `Password`, `Real_name`, `First_name`, `Last_name`, `Degree`, `Position_title`, `Institution`, `Department`, `Address`, `City`, `State`, `Zip_code`, `Country`, `Phone`, `Fax`, `Email`, `Privilege`, `PSCPI`, `DBAccess`, `Active`, `Password_hash`, `PasswordChangeRequired`, `TOTPSecret`, `Pending_approval`, `Doc_Repo_Notifications`, `language_preference`, `active_from`, `active_to`, `account_request_date`) VALUES (4,'test3',NULL,'Test account','Test3','account',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'test3@example.com',0,'N','','Y','$2y$10$6pjQ.x5rPY7voNFs2w/eI.pzLL8H/9wPZ98nabvBOEwDBClhK0l1S',0,NULL,'N','N',NULL,NULL,NULL,'2024-09-28');
INSERT INTO `user_login_history` (`loginhistoryID`, `userID`, `Success`, `Failcode`, `Fail_detail`, `Login_timestamp`, `IP_address`, `Page_requested`) VALUES (50,'admin','Y',NULL,NULL,'2026-01-28 20:19:59','10.122.108.32','/login/Authentication');
INSERT INTO `user_login_history` (`loginhistoryID`, `userID`, `Success`, `Failcode`, `Fail_detail`, `Login_timestamp`, `IP_address`, `Page_requested`) VALUES (51,'test1','Y',NULL,NULL,'2026-01-28 20:19:59','10.122.108.32','/login/Authentication');

Link(s) to related issue(s)

@github-actions github-actions Bot added Language: PHP PR or issue that update PHP code Language: Javascript PR or issue that update Javascript code Module: statistics PR or issue related to statistics module Module: user_accounts PR or issue related to the user_accounts module Multilingual Any tasks related to making LORIS multilingual labels Jun 10, 2026
@skarya22 skarya22 changed the title [Dashboard] Add admin stats [Dashboard] Add admin stats + Hindi translations Jun 10, 2026
@skarya22 skarya22 force-pushed the 2026_06_10_Dashboard_Admin_stats branch from fba3617 to c88eea8 Compare June 16, 2026 17:13
@skarya22 skarya22 changed the base branch from main to 29.0-release June 16, 2026 17:13

@jeffersoncasimir jeffersoncasimir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some strings are not translated

Image Image

Comment thread modules/statistics/jsx/widgets/adminstats.js Outdated
Comment thread modules/statistics/jsx/widgets/adminstats.js Outdated
Comment thread modules/statistics/jsx/widgets/adminstats.js Outdated
Comment thread modules/statistics/jsx/widgets/adminstats.js
Comment thread modules/user_accounts/php/module.class.inc Outdated
Comment thread modules/user_accounts/php/module.class.inc Outdated
@skarya22 skarya22 added the 29.0.0 - Bugs Issues found during the release testing for 29.0.0 label Jun 29, 2026
@driusan

driusan commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

@skarya22 I don't think this should go to the 29 release at this point, and can you separate out the hindi from the admin stats into 2 different PRs?

@jeffersoncasimir

Copy link
Copy Markdown
Contributor

There are still a few untranslated strings:

Screenshot 2026-06-30 at 1 24 37 PM Screenshot 2026-06-30 at 1 24 03 PM

@skarya22 skarya22 changed the title [Dashboard] Add admin stats + Hindi translations [Dashboard] Add admin stats Jun 30, 2026
@skarya22 skarya22 added State: Needs rebase PR that needs to be rebased to proceed (conflicts, wrong branch...) and removed 29.0.0 - Bugs Issues found during the release testing for 29.0.0 labels Jun 30, 2026
@skarya22

Copy link
Copy Markdown
Contributor Author

TODO: When main is brought up to date with 29.0-release, rebase this to main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: Javascript PR or issue that update Javascript code Language: PHP PR or issue that update PHP code Module: statistics PR or issue related to statistics module Module: user_accounts PR or issue related to the user_accounts module Multilingual Any tasks related to making LORIS multilingual State: Needs rebase PR that needs to be rebased to proceed (conflicts, wrong branch...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dashboard] Add plots for user registrations and monthly logins

3 participants