Explorar el Código

[web] Group settings: audit Log (#27197)

* [web] Group settings: audit Log

User facing audit logs, available to Group Admins.
- `/audit-logs` page
- `/audit-logs/csv` to download all logs

GitOrigin-RevId: 4938c49fdd8e62f5ea278b6c80ed2bd544455b92
Miguel Serrano hace 1 año
padre
commit
a11f666eb4

+ 5 - 0
services/web/frontend/extracted-translations.json

@@ -368,6 +368,7 @@
   "customizing_figures": "",
   "customizing_tables": "",
   "date_and_owner": "",
+  "date_and_time": "",
   "dealing_with_errors": "",
   "decrease_indent": "",
   "delete": "",
@@ -453,6 +454,7 @@
   "download_all": "",
   "download_as_pdf": "",
   "download_as_source_zip": "",
+  "download_csv": "",
   "download_metadata": "",
   "download_pdf": "",
   "download_zip_file": "",
@@ -711,6 +713,7 @@
   "good_news_you_already_purchased_this_add_on": "",
   "good_news_you_are_already_receiving_this_add_on_via_writefull": "",
   "group_admin": "",
+  "group_audit_logs": "",
   "group_invitations": "",
   "group_invite_has_been_sent_to_email": "",
   "group_libraries": "",
@@ -832,6 +835,7 @@
   "included_as_part_of_your_writefull_subscription": "",
   "increase_indent": "",
   "increased_compile_timeout": "",
+  "initiator": "",
   "inline": "",
   "inline_math": "",
   "inr_discount_modal_info": "",
@@ -1171,6 +1175,7 @@
   "open_pdf_in_separate_tab": "",
   "open_project": "",
   "open_target": "",
+  "operation": "",
   "optional": "",
   "or": "",
   "organization_name": "",

+ 2 - 0
services/web/frontend/js/utils/meta.ts

@@ -59,6 +59,7 @@ import type { ScriptLogType } from '../../../modules/admin-panel/frontend/js/fea
 import { ActiveExperiment } from './labs-utils'
 import { Subscription as AdminSubscription } from '../../../types/admin/subscription'
 import { AdminCapability } from '../../../types/admin-capabilities'
+import { GroupAuditLog } from '../../../modules/group-audit-log/frontend/js/components/logs'
 
 export interface Meta {
   'ol-ExposedSettings': ExposedSettings
@@ -167,6 +168,7 @@ export interface Meta {
   'ol-legacyEditorThemes': string[]
   'ol-licenseQuantity'?: number
   'ol-loadingText': string
+  'ol-logsForRendering': GroupAuditLog[]
   'ol-managedGroupSubscriptions': ManagedGroupSubscription[]
   'ol-managedInstitutions': ManagedInstitution[]
   'ol-managedPublishers': Publisher[]

+ 5 - 0
services/web/locales/en.json

@@ -489,6 +489,7 @@
   "dark_mode": "Dark mode",
   "date": "Date",
   "date_and_owner": "Date and owner",
+  "date_and_time": "Date and time",
   "de": "German",
   "dealing_with_errors": "Dealing with errors",
   "december": "December",
@@ -586,6 +587,7 @@
   "download_all": "Download all",
   "download_as_pdf": "Download as PDF",
   "download_as_source_zip": "Download as source (.zip)",
+  "download_csv": "Download CSV",
   "download_metadata": "Download Overleaf metadata",
   "download_pdf": "Download PDF",
   "download_zip_file": "Download .zip file",
@@ -926,6 +928,7 @@
   "great_for_small_teams_and_departments": "Great for small teams and departments",
   "group": "Group",
   "group_admin": "Group admin",
+  "group_audit_logs": "Group audit logs",
   "group_full": "This group is already full",
   "group_invitations": "Group invitations",
   "group_invite_has_been_sent_to_email": "Group invite has been sent to <0>__email__</0>",
@@ -1061,6 +1064,7 @@
   "increased_compile_timeout": "Increased compile timeout",
   "individuals": "Individuals",
   "info": "Info",
+  "initiator": "Initiator",
   "inline": "Inline",
   "inline_math": "Inline math",
   "inr_discount_modal_info": "Get document history, track changes, additional collaborators, and more at Purchasing Power Parity prices.",
@@ -1526,6 +1530,7 @@
   "open_pdf_in_separate_tab": "Open PDF in separate tab",
   "open_project": "Open Project",
   "open_target": "Go to target",
+  "operation": "Operation",
   "opted_out_linking": "You’ve opted out from linking your <b>__email__</b> <b>__appName__</b> account to your institutional account.",
   "optional": "Optional",
   "or": "or",