feat: CodeMirror integration and bug fixes
This commit addresses several issues related to the migration from TipTap to CodeMirror:
- **CodeMirror Initialization Fixes:**
- Resolved 'Unrecognized extension value' errors by refactoring to explicitly import individual CodeMirror extensions instead of relying on . This ensures proper singleton usage and prevents module duplication issues.
- Updated and to utilize these individual extensions.
- **Text Wrapping Enabled:**
- Added to the extensions in and to enable text wrapping in the CodeMirror editors.
- **Content Saving Fixes:**
- Corrected content binding for CodeMirror editor instances in various IDAA components:
- (description, location_text, attend_text)
- (content, notes)
- (content)
- (description, notes)
- (description, notes)
- Ensured that the prop of is correctly bound to the respective state variables in the parent components, and these state variables are initialized with existing content.
- **Save Button Enablement:**
- Fixed an issue in where the Save button was not enabling on content changes. The logic now directly compares the and with the original object's content, ensuring reactivity.
This commit is contained in:
11
TODO.md
11
TODO.md
@@ -35,9 +35,9 @@ This is a list of tasks to be completed before the next event/show/conference.
|
||||
- Svelte Stores: `ae_<module>_stores.ts`
|
||||
- Consolidate helper files (e.g., `ae_core_functions.ts`) into the above files.
|
||||
- [ ] **Functions & Variables:**
|
||||
- Enforce `snake_case` for all function and variable names.
|
||||
- Deprecate and remove `camelCase`.
|
||||
- Deprecate and refactor ambiguous `handle_` prefixes.
|
||||
- [x] Enforce `snake_case` for all function and variable names.
|
||||
- [x] Deprecate and remove `camelCase`.
|
||||
- [x] Deprecate and refactor ambiguous `handle_` prefixes.
|
||||
- [ ] **Object & Property Naming:**
|
||||
- Use singular nouns for objects and properties (e.g., `example.id`, not `examples.id`).
|
||||
- [ ] **List Suffixes:**
|
||||
@@ -262,6 +262,7 @@ These functions are frequently used and critical to the application's data flow.
|
||||
---
|
||||
|
||||
## Scott's Quick Notes
|
||||
|
||||
These are just quick notes, thoughts, ideas, and reminders for myself.
|
||||
|
||||
- I need to explain the purpose and thought behind the data_store element or component and how it works. The short version: It is a hierarchy of database results, but only the last result is returned. The results are filtered by data store key/code, then by account_id, and then by for_type and for_id. This allows for shared data among accounts, but also account specific overrides. Finally, it allows for object specific overrides.
|
||||
@@ -277,6 +278,7 @@ These are just quick notes, thoughts, ideas, and reminders for myself.
|
||||
- Reports are manually created and shared among events and clients. We need to be able to enable/disable reports per event. Each report will have its own Svelte page.
|
||||
|
||||
### Events modules and main landing pages
|
||||
|
||||
- **Presentation Management**
|
||||
- Manage
|
||||
- Session Search
|
||||
@@ -308,6 +310,7 @@ These are just quick notes, thoughts, ideas, and reminders for myself.
|
||||
- **Admin or Manage or Configure Event**
|
||||
|
||||
### New Directory Structure?
|
||||
|
||||
- src/lib/ - Shared libraries and components
|
||||
- src/routes/core/ - Core Aether management module
|
||||
- sub-directories for:
|
||||
@@ -359,4 +362,4 @@ These are just quick notes, thoughts, ideas, and reminders for myself.
|
||||
- src/lib/components/ - Shared Svelte components
|
||||
- src/lib/stores/ - Shared Svelte stores
|
||||
- src/assets/ - Assets like CSS, Tailwind config, etc.???
|
||||
- static/ - Static assets like images, fonts, etc.
|
||||
- static/ - Static assets like images, fonts, etc.
|
||||
|
||||
Reference in New Issue
Block a user