Browse Source

Add Dimensions search via module and rail panel (#33773)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
GitOrigin-RevId: 5c2811c155c7a1d577c08f6d01564b621b3b264c
Alf Eaton 2 months ago
parent
commit
68ce10440a

+ 1 - 0
services/web/app/src/Features/Project/ProjectController.mjs

@@ -447,6 +447,7 @@ const _ProjectController = {
     }
 
     const splitTests = [
+      'plugin-dimensions',
       'bibtex-visual-editor',
       'compile-log-events',
       'visual-preview',

+ 2 - 0
services/web/app/src/Features/Tutorial/TutorialController.mjs

@@ -30,6 +30,8 @@ const VALID_KEYS = [
   'new-editor-intro-2',
   'workbench-rail-popover',
   'themed-dashboard-intro',
+  'dimensions-consent',
+  'dimensions-rail-popover',
 ]
 
 async function completeTutorial(req, res, next) {

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

@@ -471,6 +471,7 @@
   "details_provided_by_google_explanation": "",
   "dictionary": "",
   "did_you_know_institution_providing_professional": "",
+  "dimensions_no_bib_file": "",
   "disable": "",
   "disable_ai_features": "",
   "disable_equation_preview": "",
@@ -1318,6 +1319,7 @@
   "no_project_notifications_description": "",
   "no_projects": "",
   "no_resolved_comments": "",
+  "no_results_found": "",
   "no_search_results": "",
   "no_selection_select_file": "",
   "no_symbols_found": "",
@@ -1729,6 +1731,7 @@
   "save_or_cancel-or": "",
   "save_or_cancel-save": "",
   "save_x_or_more": "",
+  "saved": "",
   "saving": "",
   "saving_notification_with_seconds": "",
   "scope": "",

+ 1 - 0
services/web/frontend/js/features/ide-react/context/rail-context.tsx

@@ -23,6 +23,7 @@ export type RailTabKey =
   | 'review-panel'
   | 'chat'
   | 'full-project-search'
+  | 'dimensions'
   | 'workbench'
 
 export type RailModalKey =

+ 1 - 0
services/web/frontend/js/features/ide-react/editor/document-container.ts

@@ -152,6 +152,7 @@ export class DocumentContainer extends EventEmitter {
       this.doc.attachToCM6(this.cm6)
     }
     this.cm6.on('change', this.checkConsistency)
+    this.trigger('cm6:attach')
   }
 
   detachFromCM6() {

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

@@ -625,6 +625,7 @@
   "details_provided_by_google_explanation": "Your details were provided by your Google account. Please check you’re happy with them.",
   "dictionary": "Dictionary",
   "did_you_know_institution_providing_professional": "Did you know that __institutionName__ is providing <0>free __appName__ premium features</0> to qualified users at __institutionName__?",
+  "dimensions_no_bib_file": "Add a .bib file to this project to save references",
   "disable": "Disable",
   "disable_ai_features": "Disable AI features",
   "disable_equation_preview": "Disable equation preview",
@@ -1716,6 +1717,7 @@
   "no_project_notifications_description": "You won’t be notified about this project.",
   "no_projects": "No projects",
   "no_resolved_comments": "No resolved comments",
+  "no_results_found": "No results found",
   "no_search_results": "No Search Results",
   "no_selection_select_file": "Currently, no file is selected. Please select a file from the file tree.",
   "no_symbols_found": "No symbols found",
@@ -2267,6 +2269,7 @@
   "save_or_cancel-or": "or",
   "save_or_cancel-save": "Save",
   "save_x_or_more": "Save __percentage__ or more",
+  "saved": "Saved",
   "saving": "Saving",
   "saving_notification_with_seconds": "Saving __docname__... (__seconds__ seconds of unsaved changes)",
   "scope": "Scope",