collavre 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +221 -0
- data/Rakefile +8 -0
- data/app/assets/stylesheets/collavre/actiontext.css +577 -0
- data/app/assets/stylesheets/collavre/activity_logs.css +99 -0
- data/app/assets/stylesheets/collavre/comments_popup.css +692 -0
- data/app/assets/stylesheets/collavre/creatives.css +559 -0
- data/app/assets/stylesheets/collavre/dark_mode.css +118 -0
- data/app/assets/stylesheets/collavre/mention_menu.css +43 -0
- data/app/assets/stylesheets/collavre/popup.css +160 -0
- data/app/assets/stylesheets/collavre/print.css +37 -0
- data/app/assets/stylesheets/collavre/slide_view.css +79 -0
- data/app/assets/stylesheets/collavre/user_menu.css +34 -0
- data/app/channels/collavre/comments_presence_channel.rb +54 -0
- data/app/channels/collavre/slide_view_channel.rb +11 -0
- data/app/channels/collavre/topics_channel.rb +12 -0
- data/app/components/collavre/avatar_component.html.erb +15 -0
- data/app/components/collavre/avatar_component.rb +59 -0
- data/app/components/collavre/inbox/badge_component.html.erb +6 -0
- data/app/components/collavre/inbox/badge_component.rb +18 -0
- data/app/components/collavre/plans_timeline_component.html.erb +14 -0
- data/app/components/collavre/plans_timeline_component.rb +56 -0
- data/app/components/collavre/popup_menu_component.html.erb +6 -0
- data/app/components/collavre/popup_menu_component.rb +30 -0
- data/app/components/collavre/progress_filter_component.html.erb +5 -0
- data/app/components/collavre/progress_filter_component.rb +10 -0
- data/app/components/collavre/user_mention_menu_component.html.erb +3 -0
- data/app/components/collavre/user_mention_menu_component.rb +8 -0
- data/app/controllers/collavre/application_controller.rb +15 -0
- data/app/controllers/collavre/attachments_controller.rb +44 -0
- data/app/controllers/collavre/calendar_events_controller.rb +15 -0
- data/app/controllers/collavre/comment_read_pointers_controller.rb +80 -0
- data/app/controllers/collavre/comments/activity_logs_controller.rb +26 -0
- data/app/controllers/collavre/comments/reactions_controller.rb +82 -0
- data/app/controllers/collavre/comments_controller.rb +464 -0
- data/app/controllers/collavre/contacts_controller.rb +10 -0
- data/app/controllers/collavre/creative_expanded_states_controller.rb +27 -0
- data/app/controllers/collavre/creative_imports_controller.rb +24 -0
- data/app/controllers/collavre/creative_plans_controller.rb +69 -0
- data/app/controllers/collavre/creative_shares_controller.rb +79 -0
- data/app/controllers/collavre/creatives_controller.rb +535 -0
- data/app/controllers/collavre/devices_controller.rb +19 -0
- data/app/controllers/collavre/email_verifications_controller.rb +16 -0
- data/app/controllers/collavre/emails_controller.rb +11 -0
- data/app/controllers/collavre/github_auth_controller.rb +25 -0
- data/app/controllers/collavre/google_auth_controller.rb +43 -0
- data/app/controllers/collavre/inbox_items_controller.rb +64 -0
- data/app/controllers/collavre/invites_controller.rb +27 -0
- data/app/controllers/collavre/notion_auth_controller.rb +25 -0
- data/app/controllers/collavre/passwords_controller.rb +37 -0
- data/app/controllers/collavre/plans_controller.rb +110 -0
- data/app/controllers/collavre/sessions_controller.rb +57 -0
- data/app/controllers/collavre/topics_controller.rb +58 -0
- data/app/controllers/collavre/user_themes_controller.rb +58 -0
- data/app/controllers/collavre/users_controller.rb +390 -0
- data/app/helpers/collavre/application_helper.rb +4 -0
- data/app/helpers/collavre/comments_helper.rb +9 -0
- data/app/helpers/collavre/creatives_helper.rb +343 -0
- data/app/helpers/collavre/navigation_helper.rb +163 -0
- data/app/helpers/collavre/user_themes_helper.rb +4 -0
- data/app/javascript/collavre.js +26 -0
- data/app/javascript/components/InlineLexicalEditor.jsx +889 -0
- data/app/javascript/components/LinkPopup.jsx +112 -0
- data/app/javascript/components/creative_tree_row.js +503 -0
- data/app/javascript/components/plugins/attachment_cleanup_plugin.jsx +95 -0
- data/app/javascript/components/plugins/image_upload_plugin.jsx +162 -0
- data/app/javascript/controllers/click_target_controller.js +13 -0
- data/app/javascript/controllers/comment_controller.js +162 -0
- data/app/javascript/controllers/comments/__tests__/popup_controller.test.js +68 -0
- data/app/javascript/controllers/comments/form_controller.js +530 -0
- data/app/javascript/controllers/comments/list_controller.js +715 -0
- data/app/javascript/controllers/comments/mention_menu_controller.js +41 -0
- data/app/javascript/controllers/comments/popup_controller.js +385 -0
- data/app/javascript/controllers/comments/presence_controller.js +311 -0
- data/app/javascript/controllers/comments/topics_controller.js +338 -0
- data/app/javascript/controllers/common_popup_controller.js +55 -0
- data/app/javascript/controllers/creatives/drag_drop_controller.js +45 -0
- data/app/javascript/controllers/creatives/expansion_controller.js +222 -0
- data/app/javascript/controllers/creatives/import_controller.js +116 -0
- data/app/javascript/controllers/creatives/row_editor_controller.js +8 -0
- data/app/javascript/controllers/creatives/select_mode_controller.js +231 -0
- data/app/javascript/controllers/creatives/set_plan_modal_controller.js +107 -0
- data/app/javascript/controllers/creatives/tree_controller.js +218 -0
- data/app/javascript/controllers/index.js +79 -0
- data/app/javascript/controllers/link_creative_controller.js +91 -0
- data/app/javascript/controllers/popup_menu_controller.js +82 -0
- data/app/javascript/controllers/progress_filter_controller.js +35 -0
- data/app/javascript/controllers/reaction_picker_controller.js +107 -0
- data/app/javascript/controllers/share_invite_controller.js +15 -0
- data/app/javascript/controllers/share_user_search_controller.js +121 -0
- data/app/javascript/controllers/tabs_controller.js +43 -0
- data/app/javascript/creatives/drag_drop/dom.js +170 -0
- data/app/javascript/creatives/drag_drop/event_handlers.js +846 -0
- data/app/javascript/creatives/drag_drop/indicator.js +35 -0
- data/app/javascript/creatives/drag_drop/operations.js +116 -0
- data/app/javascript/creatives/drag_drop/state.js +31 -0
- data/app/javascript/creatives/tree_renderer.js +248 -0
- data/app/javascript/lib/api/__tests__/queue_manager.test.js +153 -0
- data/app/javascript/lib/api/creatives.js +79 -0
- data/app/javascript/lib/api/csrf_fetch.js +22 -0
- data/app/javascript/lib/api/drag_drop.js +31 -0
- data/app/javascript/lib/api/queue_manager.js +423 -0
- data/app/javascript/lib/apply_lexical_styles.js +15 -0
- data/app/javascript/lib/common_popup.js +195 -0
- data/app/javascript/lib/lexical/__tests__/action_text_attachment_node.test.jsx +91 -0
- data/app/javascript/lib/lexical/__tests__/attachment_payload.test.js +194 -0
- data/app/javascript/lib/lexical/action_text_attachment_node.js +459 -0
- data/app/javascript/lib/lexical/attachment_node.jsx +170 -0
- data/app/javascript/lib/lexical/attachment_payload.js +293 -0
- data/app/javascript/lib/lexical/dom_attachment_utils.js +66 -0
- data/app/javascript/lib/lexical/image_node.jsx +159 -0
- data/app/javascript/lib/lexical/style_attributes.js +40 -0
- data/app/javascript/lib/responsive_images.js +54 -0
- data/app/javascript/lib/turbo_stream_actions.js +33 -0
- data/app/javascript/lib/utils/markdown.js +23 -0
- data/app/javascript/modules/creative_guide.js +53 -0
- data/app/javascript/modules/creative_row_editor.js +1841 -0
- data/app/javascript/modules/creative_row_swipe.js +43 -0
- data/app/javascript/modules/creatives.js +15 -0
- data/app/javascript/modules/export_to_markdown.js +34 -0
- data/app/javascript/modules/inbox_panel.js +226 -0
- data/app/javascript/modules/lexical_inline_editor.jsx +133 -0
- data/app/javascript/modules/mention_menu.js +77 -0
- data/app/javascript/modules/plans_menu.js +39 -0
- data/app/javascript/modules/plans_timeline.js +397 -0
- data/app/javascript/modules/share_modal.js +73 -0
- data/app/javascript/modules/share_user_popup.js +77 -0
- data/app/javascript/modules/slide_view.js +163 -0
- data/app/javascript/services/cable.js +32 -0
- data/app/javascript/slide_view.js +2 -0
- data/app/javascript/utils/caret_position.js +42 -0
- data/app/javascript/utils/clipboard.js +40 -0
- data/app/jobs/collavre/ai_agent_job.rb +27 -0
- data/app/jobs/collavre/inbox_summary_job.rb +24 -0
- data/app/jobs/collavre/notion_export_job.rb +30 -0
- data/app/jobs/collavre/notion_sync_job.rb +48 -0
- data/app/jobs/collavre/permission_cache_cleanup_job.rb +36 -0
- data/app/jobs/collavre/permission_cache_job.rb +71 -0
- data/app/jobs/collavre/push_notification_job.rb +86 -0
- data/app/mailers/collavre/application_mailer.rb +17 -0
- data/app/mailers/collavre/creative_mailer.rb +9 -0
- data/app/mailers/collavre/email_verification_mailer.rb +20 -0
- data/app/mailers/collavre/inbox_mailer.rb +19 -0
- data/app/mailers/collavre/invitation_mailer.rb +16 -0
- data/app/mailers/collavre/passwords_mailer.rb +10 -0
- data/app/models/collavre/activity_log.rb +13 -0
- data/app/models/collavre/application_record.rb +5 -0
- data/app/models/collavre/calendar_event.rb +20 -0
- data/app/models/collavre/comment.rb +307 -0
- data/app/models/collavre/comment_presence_store.rb +30 -0
- data/app/models/collavre/comment_reaction.rb +11 -0
- data/app/models/collavre/comment_read_pointer.rb +26 -0
- data/app/models/collavre/contact.rb +23 -0
- data/app/models/collavre/creative.rb +413 -0
- data/app/models/collavre/creative_expanded_state.rb +11 -0
- data/app/models/collavre/creative_share.rb +122 -0
- data/app/models/collavre/creative_shares_cache.rb +18 -0
- data/app/models/collavre/current.rb +14 -0
- data/app/models/collavre/device.rb +13 -0
- data/app/models/collavre/email.rb +14 -0
- data/app/models/collavre/github_account.rb +10 -0
- data/app/models/collavre/github_repository_link.rb +19 -0
- data/app/models/collavre/inbox_item.rb +95 -0
- data/app/models/collavre/invitation.rb +22 -0
- data/app/models/collavre/label.rb +47 -0
- data/app/models/collavre/mcp_tool.rb +30 -0
- data/app/models/collavre/notion_account.rb +17 -0
- data/app/models/collavre/notion_block_link.rb +10 -0
- data/app/models/collavre/notion_page_link.rb +19 -0
- data/app/models/collavre/plan.rb +20 -0
- data/app/models/collavre/session.rb +24 -0
- data/app/models/collavre/system_setting.rb +144 -0
- data/app/models/collavre/tag.rb +10 -0
- data/app/models/collavre/task.rb +10 -0
- data/app/models/collavre/task_action.rb +10 -0
- data/app/models/collavre/topic.rb +12 -0
- data/app/models/collavre/user.rb +174 -0
- data/app/models/collavre/user_theme.rb +10 -0
- data/app/models/collavre/variation.rb +5 -0
- data/app/models/collavre/webauthn_credential.rb +11 -0
- data/app/services/collavre/ai_agent_service.rb +193 -0
- data/app/services/collavre/ai_client.rb +183 -0
- data/app/services/collavre/ai_system_prompt_renderer.rb +38 -0
- data/app/services/collavre/auto_theme_generator.rb +198 -0
- data/app/services/collavre/comment_link_formatter.rb +60 -0
- data/app/services/collavre/comments/action_executor.rb +262 -0
- data/app/services/collavre/comments/action_validator.rb +58 -0
- data/app/services/collavre/comments/calendar_command.rb +97 -0
- data/app/services/collavre/comments/command_processor.rb +37 -0
- data/app/services/collavre/comments/mcp_command.rb +109 -0
- data/app/services/collavre/comments/mcp_command_builder.rb +32 -0
- data/app/services/collavre/creatives/filter_pipeline.rb +196 -0
- data/app/services/collavre/creatives/filters/assignee_filter.rb +30 -0
- data/app/services/collavre/creatives/filters/base_filter.rb +24 -0
- data/app/services/collavre/creatives/filters/comment_filter.rb +21 -0
- data/app/services/collavre/creatives/filters/date_filter.rb +58 -0
- data/app/services/collavre/creatives/filters/progress_filter.rb +25 -0
- data/app/services/collavre/creatives/filters/search_filter.rb +28 -0
- data/app/services/collavre/creatives/filters/tag_filter.rb +16 -0
- data/app/services/collavre/creatives/importer.rb +47 -0
- data/app/services/collavre/creatives/index_query.rb +191 -0
- data/app/services/collavre/creatives/path_exporter.rb +131 -0
- data/app/services/collavre/creatives/permission_cache_builder.rb +194 -0
- data/app/services/collavre/creatives/permission_checker.rb +42 -0
- data/app/services/collavre/creatives/plan_tagger.rb +53 -0
- data/app/services/collavre/creatives/progress_service.rb +89 -0
- data/app/services/collavre/creatives/reorderer.rb +187 -0
- data/app/services/collavre/creatives/tree_builder.rb +231 -0
- data/app/services/collavre/creatives/tree_formatter.rb +36 -0
- data/app/services/collavre/gemini_parent_recommender.rb +77 -0
- data/app/services/collavre/github/client.rb +112 -0
- data/app/services/collavre/github/pull_request_analyzer.rb +280 -0
- data/app/services/collavre/github/pull_request_processor.rb +181 -0
- data/app/services/collavre/github/webhook_provisioner.rb +130 -0
- data/app/services/collavre/google_calendar_service.rb +149 -0
- data/app/services/collavre/link_preview_fetcher.rb +230 -0
- data/app/services/collavre/markdown_importer.rb +202 -0
- data/app/services/collavre/mcp_service.rb +217 -0
- data/app/services/collavre/notion_client.rb +231 -0
- data/app/services/collavre/notion_creative_exporter.rb +296 -0
- data/app/services/collavre/notion_service.rb +249 -0
- data/app/services/collavre/ppt_importer.rb +76 -0
- data/app/services/collavre/ruby_llm_interaction_logger.rb +34 -0
- data/app/services/collavre/system_events/context_builder.rb +41 -0
- data/app/services/collavre/system_events/dispatcher.rb +19 -0
- data/app/services/collavre/system_events/router.rb +72 -0
- data/app/services/collavre/tools/creative_retrieval_service.rb +138 -0
- data/app/views/admin/shared/_tabs.html.erb +4 -0
- data/app/views/collavre/comments/_activity_log_details.html.erb +23 -0
- data/app/views/collavre/comments/_comment.html.erb +147 -0
- data/app/views/collavre/comments/_comments_popup.html.erb +46 -0
- data/app/views/collavre/comments/_list.html.erb +10 -0
- data/app/views/collavre/comments/_presence_avatars.html.erb +8 -0
- data/app/views/collavre/comments/_reaction_picker.html.erb +15 -0
- data/app/views/collavre/comments/_read_receipts.html.erb +19 -0
- data/app/views/collavre/creatives/_add_button.html.erb +20 -0
- data/app/views/collavre/creatives/_delete_button.html.erb +12 -0
- data/app/views/collavre/creatives/_github_integration_modal.html.erb +77 -0
- data/app/views/collavre/creatives/_import_upload_zone.html.erb +10 -0
- data/app/views/collavre/creatives/_inline_edit_form.html.erb +89 -0
- data/app/views/collavre/creatives/_mobile_actions_menu.html.erb +24 -0
- data/app/views/collavre/creatives/_notion_integration_modal.html.erb +90 -0
- data/app/views/collavre/creatives/_set_plan_modal.html.erb +25 -0
- data/app/views/collavre/creatives/_share_button.html.erb +55 -0
- data/app/views/collavre/creatives/edit.html.erb +4 -0
- data/app/views/collavre/creatives/index.html.erb +192 -0
- data/app/views/collavre/creatives/new.html.erb +4 -0
- data/app/views/collavre/creatives/show.html.erb +29 -0
- data/app/views/collavre/creatives/slide_view.html.erb +20 -0
- data/app/views/collavre/email_verification_mailer/verify.html.erb +4 -0
- data/app/views/collavre/email_verification_mailer/verify.text.erb +2 -0
- data/app/views/collavre/emails/index.html.erb +19 -0
- data/app/views/collavre/emails/show.html.erb +5 -0
- data/app/views/collavre/inbox_items/_item.html.erb +18 -0
- data/app/views/collavre/inbox_items/_items.html.erb +3 -0
- data/app/views/collavre/inbox_items/_list.html.erb +7 -0
- data/app/views/collavre/inbox_items/index.html.erb +1 -0
- data/app/views/collavre/inbox_mailer/daily_summary.html.erb +11 -0
- data/app/views/collavre/inbox_mailer/daily_summary.text.erb +8 -0
- data/app/views/collavre/invitation_mailer/invite.html.erb +5 -0
- data/app/views/collavre/invitation_mailer/invite.text.erb +3 -0
- data/app/views/collavre/invites/show.html.erb +8 -0
- data/app/views/collavre/passwords/edit.html.erb +12 -0
- data/app/views/collavre/passwords/new.html.erb +17 -0
- data/app/views/collavre/passwords_mailer/reset.html.erb +4 -0
- data/app/views/collavre/passwords_mailer/reset.text.erb +2 -0
- data/app/views/collavre/sessions/new.html.erb +27 -0
- data/app/views/collavre/sessions/providers/_google.html.erb +7 -0
- data/app/views/collavre/sessions/providers/_passkey.html.erb +3 -0
- data/app/views/collavre/shared/_link_creative_modal.html.erb +6 -0
- data/app/views/collavre/shared/_navigation.html.erb +37 -0
- data/app/views/collavre/shared/navigation/_help_button.html.erb +1 -0
- data/app/views/collavre/shared/navigation/_inbox_button.html.erb +5 -0
- data/app/views/collavre/shared/navigation/_mobile_inbox_button.html.erb +3 -0
- data/app/views/collavre/shared/navigation/_mobile_plans_button.html.erb +1 -0
- data/app/views/collavre/shared/navigation/_panels.html.erb +18 -0
- data/app/views/collavre/shared/navigation/_plans_button.html.erb +3 -0
- data/app/views/collavre/shared/navigation/_search_form.html.erb +6 -0
- data/app/views/collavre/user_themes/index.html.erb +75 -0
- data/app/views/collavre/users/_app_header.html.erb +5 -0
- data/app/views/collavre/users/_contact_management.html.erb +77 -0
- data/app/views/collavre/users/_id_pwd_fields.html.erb +27 -0
- data/app/views/collavre/users/edit_ai.html.erb +79 -0
- data/app/views/collavre/users/edit_password.html.erb +27 -0
- data/app/views/collavre/users/index.html.erb +80 -0
- data/app/views/collavre/users/new.html.erb +33 -0
- data/app/views/collavre/users/new_ai.html.erb +87 -0
- data/app/views/collavre/users/passkeys.html.erb +43 -0
- data/app/views/collavre/users/show.html.erb +143 -0
- data/app/views/inbox/badge_component/_count.html.erb +2 -0
- data/app/views/layouts/collavre/slide.html.erb +29 -0
- data/config/locales/comments.en.yml +114 -0
- data/config/locales/comments.ko.yml +110 -0
- data/config/locales/contacts.en.yml +16 -0
- data/config/locales/contacts.ko.yml +16 -0
- data/config/locales/creatives.en.yml +183 -0
- data/config/locales/creatives.ko.yml +164 -0
- data/config/locales/invites.en.yml +19 -0
- data/config/locales/invites.ko.yml +17 -0
- data/config/locales/notifications.en.yml +8 -0
- data/config/locales/notifications.ko.yml +8 -0
- data/config/locales/plans.en.yml +12 -0
- data/config/locales/plans.ko.yml +19 -0
- data/config/locales/themes.en.yml +29 -0
- data/config/locales/themes.ko.yml +27 -0
- data/config/locales/users.en.yml +151 -0
- data/config/locales/users.ko.yml +146 -0
- data/config/routes.rb +92 -0
- data/db/migrate/20241201000000_create_notion_integrations.rb +29 -0
- data/db/migrate/20250128110017_create_creatives.rb +11 -0
- data/db/migrate/20250128120122_create_users.rb +11 -0
- data/db/migrate/20250128120123_create_sessions.rb +11 -0
- data/db/migrate/20250128123633_create_subscribers.rb +10 -0
- data/db/migrate/20250312000000_create_notion_block_links.rb +16 -0
- data/db/migrate/20250312010000_allow_multiple_notion_blocks_per_creative.rb +5 -0
- data/db/migrate/20250522115048_remove_name_from_creatives.rb +5 -0
- data/db/migrate/20250522190651_add_parent_id_to_creatives.rb +5 -0
- data/db/migrate/20250523133100_rename_inventory_count_to_progress.rb +13 -0
- data/db/migrate/20250523133101_add_sequence_to_creatives.rb +5 -0
- data/db/migrate/20250525205100_add_user_id_to_creatives.rb +10 -0
- data/db/migrate/20250527014217_create_creative_shares.rb +12 -0
- data/db/migrate/20250528142349_add_origin_id_to_creatives.rb +5 -0
- data/db/migrate/20250530060200_create_tags.rb +9 -0
- data/db/migrate/20250531105150_add_value_to_tags.rb +5 -0
- data/db/migrate/20250531140142_create_labels.rb +12 -0
- data/db/migrate/20250531140145_change_tag_to_label_reference.rb +6 -0
- data/db/migrate/20250601000000_create_comments.rb +10 -0
- data/db/migrate/20250601061830_drop_plans_and_variations.rb +6 -0
- data/db/migrate/20250604122600_add_owner_to_labels.rb +5 -0
- data/db/migrate/20250606000000_rename_email_address_to_email_in_users.rb +7 -0
- data/db/migrate/20250606150329_create_creative_hierarchies.rb +16 -0
- data/db/migrate/20250610142000_create_creative_expanded_states.rb +11 -0
- data/db/migrate/20250611030138_create_invitations.rb +15 -0
- data/db/migrate/20250611105524_create_inbox_items.rb +14 -0
- data/db/migrate/20250612150000_update_permissions.rb +43 -0
- data/db/migrate/20250612232913_add_email_verified_at_to_users.rb +5 -0
- data/db/migrate/20250616065905_add_avatar_to_users.rb +5 -0
- data/db/migrate/20250617092111_add_display_level_to_users.rb +5 -0
- data/db/migrate/20250620004558_create_emails.rb +13 -0
- data/db/migrate/20250621000000_create_comment_read_pointers.rb +11 -0
- data/db/migrate/20250622000000_add_completion_mark_to_users.rb +5 -0
- data/db/migrate/20250623000000_add_theme_to_users.rb +5 -0
- data/db/migrate/20250624000000_add_name_to_users.rb +18 -0
- data/db/migrate/20250714190000_create_devices.rb +17 -0
- data/db/migrate/20250715120000_add_notifications_enabled_to_users.rb +5 -0
- data/db/migrate/20250823000000_add_no_access_permission.rb +25 -0
- data/db/migrate/20250826000000_add_calendar_id_to_users.rb +5 -0
- data/db/migrate/20250827000000_add_google_oauth_tokens_to_users.rb +8 -0
- data/db/migrate/20250827061238_add_timezone_to_users.rb +5 -0
- data/db/migrate/20250828000000_create_calendar_events.rb +16 -0
- data/db/migrate/20250828060000_add_creative_to_calendar_events.rb +5 -0
- data/db/migrate/20250830141052_add_locale_to_users.rb +5 -0
- data/db/migrate/20250830141101_add_message_key_to_inbox_items.rb +6 -0
- data/db/migrate/20250902025423_remove_description_and_featured_image_from_creatives.rb +6 -0
- data/db/migrate/20250910000000_add_private_to_comments.rb +5 -0
- data/db/migrate/20250910105640_migrate_write_permissions_to_admin.rb +17 -0
- data/db/migrate/20250911084338_backfill_creative_in_comment_inbox_items.rb +27 -0
- data/db/migrate/20250923002959_deduplicate_device_fcm_tokens.rb +25 -0
- data/db/migrate/20250924000000_add_system_admin_to_users.rb +6 -0
- data/db/migrate/20250925000000_create_github_integrations.rb +26 -0
- data/db/migrate/20250927000000_add_webhook_secret_to_github_repository_links.rb +29 -0
- data/db/migrate/20250928000000_add_action_and_approver_to_comments.rb +6 -0
- data/db/migrate/20250928010000_add_action_execution_tracking_to_comments.rb +6 -0
- data/db/migrate/20250928105957_add_github_gemini_prompt_to_creatives.rb +5 -0
- data/db/migrate/20250929000000_add_comment_and_creative_refs_to_inbox_items.rb +6 -0
- data/db/migrate/20251001000001_create_contacts.rb +71 -0
- data/db/migrate/20251002000000_add_shared_by_to_creative_shares.rb +14 -0
- data/db/migrate/20251124120902_add_ai_fields_to_users.rb +7 -0
- data/db/migrate/20251124122218_add_created_by_id_to_users.rb +5 -0
- data/db/migrate/20251124124521_add_llm_api_key_to_users.rb +5 -0
- data/db/migrate/20251124130000_add_searchable_to_users.rb +6 -0
- data/db/migrate/20251125072705_migrate_linked_creative_children_to_origin.rb +28 -0
- data/db/migrate/20251126040752_add_description_to_creatives.rb +75 -0
- data/db/migrate/20251127000000_move_comments_from_linked_creatives_to_origins.rb +18 -0
- data/db/migrate/20251201073823_add_tools_to_users.rb +5 -0
- data/db/migrate/20251202062715_create_mcp_tools.rb +16 -0
- data/db/migrate/20251204125754_create_tasks_and_task_actions.rb +23 -0
- data/db/migrate/20251204125756_add_routing_expression_to_users.rb +5 -0
- data/db/migrate/20251204161133_set_default_routing_expression_for_ai_agents.rb +13 -0
- data/db/migrate/20251211033025_nullify_self_referencing_origins.rb +9 -0
- data/db/migrate/20251211080040_create_topics_and_add_topic_to_comments.rb +15 -0
- data/db/migrate/20251215143500_create_activity_logs.rb +16 -0
- data/db/migrate/20251222125727_create_webauthn_credentials.rb +14 -0
- data/db/migrate/20251222125839_add_webauthn_id_to_users.rb +5 -0
- data/db/migrate/20251223022315_create_comment_reactions.rb +13 -0
- data/db/migrate/20251223072625_create_user_themes.rb +11 -0
- data/db/migrate/20251230074456_add_creative_id_to_labels.rb +5 -0
- data/db/migrate/20251230113607_refactor_labels.rb +38 -0
- data/db/migrate/20251231010012_backfill_tags_for_labels.rb +15 -0
- data/db/migrate/20251231013234_drop_subscribers.rb +9 -0
- data/db/migrate/20260106090544_allow_null_user_id_in_creative_shares.rb +6 -0
- data/db/migrate/20260106160643_create_system_settings.rb +11 -0
- data/db/migrate/20260116000000_create_creative_shares_cache.rb +15 -0
- data/db/migrate/20260116000001_populate_creative_shares_cache.rb +23 -0
- data/db/migrate/20260119022933_make_source_share_id_nullable_in_creative_shares_caches.rb +7 -0
- data/db/migrate/20260119023446_populate_owner_cache_entries.rb +25 -0
- data/db/migrate/20260119100000_add_account_lockout_to_users.rb +6 -0
- data/db/migrate/20260119110000_add_last_active_at_to_sessions.rb +6 -0
- data/db/migrate/20260120045354_encrypt_oauth_tokens.rb +60 -0
- data/db/migrate/20260120162259_remove_fk_from_creative_shares_caches.rb +7 -0
- data/db/migrate/20260120163856_remove_timestamps_from_creative_shares_caches.rb +6 -0
- data/lib/collavre/configuration.rb +14 -0
- data/lib/collavre/engine.rb +77 -0
- data/lib/collavre/user_extensions.rb +29 -0
- data/lib/collavre/version.rb +3 -0
- data/lib/collavre.rb +26 -0
- data/lib/generators/collavre/install/install_generator.rb +105 -0
- data/lib/generators/collavre/install/templates/build.cjs.tt +100 -0
- data/lib/tasks/collavre_assets.rake +15 -0
- metadata +591 -0
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Rich text styles for the Lexical-based inline editor and persisted Action Text content.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.lexical-inline-editor {
|
|
6
|
+
background: var(--color-section-bg, var(--color-bg));
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
padding: 0.5rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.inline-edit-form-shell {
|
|
12
|
+
background: var(--color-section-bg, var(--color-bg));
|
|
13
|
+
border: 1px solid var(--color-border);
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
padding: 0 0 1rem 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.lexical-editor-shell {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: 0.5rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.lexical-toolbar {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 0.25rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.lexical-toolbar-color {
|
|
32
|
+
position: relative;
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: 0.25rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.lexical-toolbar-color__trigger {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: 0.25rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.lexical-toolbar-color__swatch {
|
|
45
|
+
width: 0.9rem;
|
|
46
|
+
height: 0.9rem;
|
|
47
|
+
border: 1px solid var(--color-border);
|
|
48
|
+
border-radius: 2px;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
display: inline-block;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.lexical-toolbar-color__popover {
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: calc(100% + 0.35rem);
|
|
56
|
+
left: 0;
|
|
57
|
+
z-index: 10;
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: 0.35rem;
|
|
61
|
+
padding: 0.4rem 0.5rem;
|
|
62
|
+
background: var(--color-bg);
|
|
63
|
+
border: 1px solid var(--color-border);
|
|
64
|
+
border-radius: 6px;
|
|
65
|
+
box-shadow: 0 6px 16px rgba(20, 24, 43, 0.14);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.lexical-toolbar-color__popover input[type="color"] {
|
|
69
|
+
appearance: none;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
border: none;
|
|
72
|
+
width: 2rem;
|
|
73
|
+
height: 2rem;
|
|
74
|
+
padding: 0;
|
|
75
|
+
background: transparent;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.lexical-toolbar-btn--small {
|
|
79
|
+
min-width: auto;
|
|
80
|
+
padding: 0.2rem 0.4rem;
|
|
81
|
+
font-size: 0.75rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.lexical-toolbar-btn {
|
|
85
|
+
appearance: none;
|
|
86
|
+
background: var(--color-btn-bg);
|
|
87
|
+
border: 1px solid var(--color-border);
|
|
88
|
+
border-radius: 4px;
|
|
89
|
+
color: var(--color-btn-text);
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
font-size: 0.85rem;
|
|
92
|
+
font-weight: 600;
|
|
93
|
+
line-height: 1.2;
|
|
94
|
+
min-width: 2rem;
|
|
95
|
+
padding: 0.25rem 0.4rem;
|
|
96
|
+
text-align: center;
|
|
97
|
+
transition: background 0.15s ease, border-color 0.15s ease;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.lexical-toolbar-btn:hover,
|
|
101
|
+
.lexical-toolbar-btn:focus-visible {
|
|
102
|
+
filter: brightness(var(--hover-brightness, 0.95));
|
|
103
|
+
outline: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.lexical-toolbar-btn.active {
|
|
107
|
+
background: var(--color-accent, #cbeefa);
|
|
108
|
+
border-color: var(--color-accent-border, #7bc4e4);
|
|
109
|
+
color: var(--color-accent-text, #03425f);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.lexical-toolbar-separator {
|
|
113
|
+
align-self: stretch;
|
|
114
|
+
border-left: 1px solid var(--color-border);
|
|
115
|
+
margin-inline: 0.25rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.lexical-editor-inner {
|
|
119
|
+
position: relative;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.lexical-content-editable {
|
|
123
|
+
min-height: 6rem;
|
|
124
|
+
outline: none;
|
|
125
|
+
white-space: pre-wrap;
|
|
126
|
+
word-break: break-word;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.lexical-placeholder {
|
|
130
|
+
color: var(--color-muted, #8c93a3);
|
|
131
|
+
left: 0.75rem;
|
|
132
|
+
pointer-events: none;
|
|
133
|
+
position: absolute;
|
|
134
|
+
top: 0.6rem;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.lexical-paragraph {
|
|
138
|
+
margin: 0 0 0 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.lexical-heading-h1,
|
|
142
|
+
.lexical-heading-h2,
|
|
143
|
+
.lexical-heading-h3 {
|
|
144
|
+
font-weight: 600;
|
|
145
|
+
margin: 0 0 0.5rem 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.lexical-heading-h1 {
|
|
149
|
+
font-size: 1.35rem;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.lexical-heading-h2 {
|
|
153
|
+
font-size: 1.2rem;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.lexical-heading-h3 {
|
|
157
|
+
font-size: 1.1rem;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.lexical-quote {
|
|
161
|
+
border-left: 0.25rem solid var(--color-border);
|
|
162
|
+
color: var(--color-muted, #656c7b);
|
|
163
|
+
margin: 0 0 0.75rem 0;
|
|
164
|
+
padding-left: 0.75rem;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.lexical-list-ul,
|
|
168
|
+
.lexical-list-ol {
|
|
169
|
+
margin: 0 0 0.75rem 1.25rem;
|
|
170
|
+
padding: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.lexical-list-item {
|
|
174
|
+
margin: 0.35rem 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.lexical-link {
|
|
178
|
+
color: var(--color-link, #0366d6);
|
|
179
|
+
text-decoration: underline;
|
|
180
|
+
text-decoration-thickness: 1px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.lexical-text-bold {
|
|
184
|
+
font-weight: 600;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.lexical-text-italic {
|
|
188
|
+
font-style: italic;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.lexical-text-underline {
|
|
192
|
+
text-decoration: underline;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.lexical-text-strike {
|
|
196
|
+
text-decoration: line-through;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.lexical-text-code {
|
|
200
|
+
background: rgba(135, 143, 161, 0.15);
|
|
201
|
+
border-radius: 4px;
|
|
202
|
+
font-family: ui-monospace, SFMono-Regular, SFMono, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
203
|
+
font-size: 0.9em;
|
|
204
|
+
padding: 0.1em 0.3em;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.lexical-code-block {
|
|
208
|
+
display: block;
|
|
209
|
+
background: var(--color-code-bg, #f6f8fa);
|
|
210
|
+
border: 1px solid var(--color-border);
|
|
211
|
+
border-radius: 6px;
|
|
212
|
+
color: var(--color-code-text, #1f2328);
|
|
213
|
+
font-family: ui-monospace, SFMono-Regular, SFMono, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
214
|
+
font-size: 0.9em;
|
|
215
|
+
line-height: 1.5;
|
|
216
|
+
margin: 0 0 0.75rem 0;
|
|
217
|
+
overflow-x: auto;
|
|
218
|
+
padding: 0.75rem;
|
|
219
|
+
white-space: pre;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.lexical-code-block span {
|
|
223
|
+
background: transparent;
|
|
224
|
+
border: 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.lexical-code-block code {
|
|
228
|
+
display: block;
|
|
229
|
+
white-space: inherit;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.lexical-token-comment,
|
|
233
|
+
.lexical-token-prolog,
|
|
234
|
+
.lexical-token-doctype,
|
|
235
|
+
.lexical-token-cdata {
|
|
236
|
+
color: #6a737d;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.lexical-token-punctuation {
|
|
240
|
+
color: #393a34;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.lexical-token-property,
|
|
244
|
+
.lexical-token-tag,
|
|
245
|
+
.lexical-token-constant,
|
|
246
|
+
.lexical-token-symbol,
|
|
247
|
+
.lexical-token-deleted,
|
|
248
|
+
.lexical-token-boolean,
|
|
249
|
+
.lexical-token-number {
|
|
250
|
+
color: #b31d28;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.lexical-token-selector,
|
|
254
|
+
.lexical-token-attr,
|
|
255
|
+
.lexical-token-string,
|
|
256
|
+
.lexical-token-char,
|
|
257
|
+
.lexical-token-builtin,
|
|
258
|
+
.lexical-token-inserted {
|
|
259
|
+
color: #1a7f37;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.lexical-token-operator,
|
|
263
|
+
.lexical-token-entity,
|
|
264
|
+
.lexical-token-url,
|
|
265
|
+
.lexical-token-variable {
|
|
266
|
+
color: #9a6e3a;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.lexical-token-atrule,
|
|
270
|
+
.lexical-token-keyword,
|
|
271
|
+
.lexical-token-class,
|
|
272
|
+
.lexical-token-classname,
|
|
273
|
+
.lexical-token-namespace {
|
|
274
|
+
color: #0550ae;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.lexical-token-function,
|
|
278
|
+
.lexical-token-important {
|
|
279
|
+
color: #bc4c00;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.lexical-token-regex {
|
|
283
|
+
color: #1a7f37;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.lexical-token-tag,
|
|
287
|
+
.lexical-token-selector,
|
|
288
|
+
.lexical-token-keyword {
|
|
289
|
+
font-weight: 600;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.lexical-attachment {
|
|
293
|
+
position: relative;
|
|
294
|
+
margin: 0.75rem 0;
|
|
295
|
+
padding: 0.75rem;
|
|
296
|
+
border: 1px solid var(--color-border);
|
|
297
|
+
border-radius: 12px;
|
|
298
|
+
background: var(--color-surface, #fff);
|
|
299
|
+
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.lexical-attachment figure {
|
|
303
|
+
margin: 0;
|
|
304
|
+
display: flex;
|
|
305
|
+
flex-direction: column;
|
|
306
|
+
gap: 0.5rem;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.lexical-attachment figure img {
|
|
310
|
+
border-radius: 8px;
|
|
311
|
+
max-width: 100%;
|
|
312
|
+
height: auto;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.lexical-attachment.is-selected {
|
|
316
|
+
border-color: var(--color-accent, #4f46e5);
|
|
317
|
+
box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.lexical-attachment__remove {
|
|
321
|
+
position: absolute;
|
|
322
|
+
top: 0.45rem;
|
|
323
|
+
right: 0.45rem;
|
|
324
|
+
border: 0;
|
|
325
|
+
background: rgba(15, 23, 42, 0.75);
|
|
326
|
+
color: #fff;
|
|
327
|
+
width: 1.6rem;
|
|
328
|
+
height: 1.6rem;
|
|
329
|
+
border-radius: 999px;
|
|
330
|
+
cursor: pointer;
|
|
331
|
+
opacity: 0;
|
|
332
|
+
transition: opacity 0.2s ease;
|
|
333
|
+
font-size: 0.95rem;
|
|
334
|
+
line-height: 1;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.lexical-attachment:hover .lexical-attachment__remove,
|
|
338
|
+
.lexical-attachment.is-selected .lexical-attachment__remove {
|
|
339
|
+
opacity: 1;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.lexical-attachment__overlay {
|
|
343
|
+
position: absolute;
|
|
344
|
+
inset: 0;
|
|
345
|
+
display: flex;
|
|
346
|
+
align-items: center;
|
|
347
|
+
justify-content: center;
|
|
348
|
+
text-align: center;
|
|
349
|
+
padding: 0.75rem;
|
|
350
|
+
border-radius: 12px;
|
|
351
|
+
background: rgba(15, 23, 42, 0.6);
|
|
352
|
+
color: #fff;
|
|
353
|
+
font-size: 0.9rem;
|
|
354
|
+
font-weight: 500;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.lexical-attachment__overlay--error {
|
|
358
|
+
background: rgba(220, 38, 38, 0.75);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.lexical-attachment__resize-handle {
|
|
362
|
+
display: none;
|
|
363
|
+
position: absolute;
|
|
364
|
+
right: 0.55rem;
|
|
365
|
+
bottom: 0.55rem;
|
|
366
|
+
width: 16px;
|
|
367
|
+
height: 16px;
|
|
368
|
+
border-right: 2px solid var(--color-accent, #4f46e5);
|
|
369
|
+
border-bottom: 2px solid var(--color-accent, #4f46e5);
|
|
370
|
+
cursor: nwse-resize;
|
|
371
|
+
opacity: 0.6;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.lexical-attachment__resize-handle:hover {
|
|
375
|
+
opacity: 1;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.lexical-attachment--image .lexical-attachment__resize-handle {
|
|
379
|
+
display: block;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.lexical-attachment__image-placeholder {
|
|
383
|
+
width: 100%;
|
|
384
|
+
padding-bottom: 56%;
|
|
385
|
+
border-radius: 8px;
|
|
386
|
+
background: repeating-linear-gradient(45deg,
|
|
387
|
+
rgba(148, 163, 184, 0.25) 0,
|
|
388
|
+
rgba(148, 163, 184, 0.25) 10px,
|
|
389
|
+
rgba(148, 163, 184, 0.35) 10px,
|
|
390
|
+
rgba(148, 163, 184, 0.35) 20px);
|
|
391
|
+
position: relative;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.lexical-attachment__image-placeholder::after {
|
|
395
|
+
content: "";
|
|
396
|
+
position: absolute;
|
|
397
|
+
inset: 20%;
|
|
398
|
+
border-radius: 999px;
|
|
399
|
+
border: 2px dashed rgba(100, 116, 139, 0.45);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.lexical-attachment__caption-input {
|
|
403
|
+
width: 100%;
|
|
404
|
+
border: 1px solid var(--color-border);
|
|
405
|
+
border-radius: 6px;
|
|
406
|
+
padding: 0.5rem 0.6rem;
|
|
407
|
+
font-size: 0.9rem;
|
|
408
|
+
background: var(--color-surface, #fff);
|
|
409
|
+
color: inherit;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.lexical-attachment__caption-input:focus {
|
|
413
|
+
outline: none;
|
|
414
|
+
border-color: var(--color-accent, #4f46e5);
|
|
415
|
+
box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.lexical-attachment__caption-size {
|
|
419
|
+
margin-left: 0.5rem;
|
|
420
|
+
font-size: 0.8rem;
|
|
421
|
+
color: var(--color-text-muted, #6b7280);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.lexical-attachment__file {
|
|
425
|
+
display: flex;
|
|
426
|
+
align-items: center;
|
|
427
|
+
gap: 0.8rem;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.lexical-attachment__file-icon {
|
|
431
|
+
font-size: 1.6rem;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.lexical-attachment__file-info {
|
|
435
|
+
display: flex;
|
|
436
|
+
flex-direction: column;
|
|
437
|
+
gap: 0.2rem;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.lexical-attachment__file-name {
|
|
441
|
+
font-weight: 600;
|
|
442
|
+
color: inherit;
|
|
443
|
+
text-decoration: none;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.lexical-attachment__file-name:hover,
|
|
447
|
+
.lexical-attachment__file-name:focus-visible {
|
|
448
|
+
text-decoration: underline;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.lexical-attachment__file-size {
|
|
452
|
+
font-size: 0.85rem;
|
|
453
|
+
color: var(--color-text-muted, #6b7280);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/*
|
|
457
|
+
* Persisted Action Text content retains the historical .trix-content class.
|
|
458
|
+
*/
|
|
459
|
+
.trix-content {
|
|
460
|
+
line-height: 1.5;
|
|
461
|
+
overflow-wrap: break-word;
|
|
462
|
+
word-break: break-word;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.trix-content * {
|
|
466
|
+
box-sizing: border-box;
|
|
467
|
+
margin: 0;
|
|
468
|
+
padding: 0;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.trix-content h1 {
|
|
472
|
+
font-size: 1.2em;
|
|
473
|
+
line-height: 1.2;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.trix-content blockquote {
|
|
477
|
+
border: 0 solid var(--color-border);
|
|
478
|
+
border-left-width: 0.3em;
|
|
479
|
+
margin-left: 0.3em;
|
|
480
|
+
padding-left: 0.6em;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.trix-content [dir=rtl] blockquote,
|
|
484
|
+
.trix-content blockquote[dir=rtl] {
|
|
485
|
+
border-width: 0;
|
|
486
|
+
border-right-width: 0.3em;
|
|
487
|
+
margin-right: 0.3em;
|
|
488
|
+
padding-right: 0.6em;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.trix-content li {
|
|
492
|
+
margin-left: 1em;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.trix-content [dir=rtl] li {
|
|
496
|
+
margin-right: 1em;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.trix-content pre {
|
|
500
|
+
display: inline-block;
|
|
501
|
+
width: 100%;
|
|
502
|
+
vertical-align: top;
|
|
503
|
+
font-family: monospace;
|
|
504
|
+
font-size: 0.9em;
|
|
505
|
+
padding: 0.5em;
|
|
506
|
+
white-space: pre;
|
|
507
|
+
background-color: var(--color-btn-bg);
|
|
508
|
+
color: var(--color-text);
|
|
509
|
+
overflow-x: auto;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.trix-content img {
|
|
513
|
+
max-width: 100%;
|
|
514
|
+
height: auto;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.trix-content .attachment {
|
|
518
|
+
display: inline-block;
|
|
519
|
+
position: relative;
|
|
520
|
+
max-width: 100%;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.trix-content .attachment a {
|
|
524
|
+
color: inherit;
|
|
525
|
+
text-decoration: none;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.trix-content .attachment a:hover,
|
|
529
|
+
.trix-content .attachment a:visited:hover {
|
|
530
|
+
color: inherit;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.trix-content .attachment__caption {
|
|
534
|
+
text-align: center;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.trix-content .attachment__caption .attachment__name+.attachment__size::before {
|
|
538
|
+
content: " \2022 ";
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.trix-content .attachment--preview {
|
|
542
|
+
width: 100%;
|
|
543
|
+
text-align: center;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.trix-content .attachment--preview .attachment__caption {
|
|
547
|
+
color: #666;
|
|
548
|
+
font-size: 0.9em;
|
|
549
|
+
line-height: 1.2;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.trix-content .attachment--file {
|
|
553
|
+
color: var(--color-text);
|
|
554
|
+
line-height: 1;
|
|
555
|
+
margin: 0 2px 2px 2px;
|
|
556
|
+
padding: 0.4em 1em;
|
|
557
|
+
border: 1px solid var(--color-border);
|
|
558
|
+
border-radius: 5px;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.trix-content .attachment-gallery {
|
|
562
|
+
display: flex;
|
|
563
|
+
flex-wrap: wrap;
|
|
564
|
+
position: relative;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.trix-content .attachment-gallery .attachment {
|
|
568
|
+
flex: 1 0 33%;
|
|
569
|
+
padding: 0 0.5em;
|
|
570
|
+
max-width: 33%;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.trix-content .attachment-gallery.attachment-gallery--2 .attachment,
|
|
574
|
+
.trix-content .attachment-gallery.attachment-gallery--4 .attachment {
|
|
575
|
+
flex-basis: 50%;
|
|
576
|
+
max-width: 50%;
|
|
577
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* Activity Log Details */
|
|
2
|
+
.comment-activity-log-block {
|
|
3
|
+
margin-top: 4px;
|
|
4
|
+
margin-bottom: 8px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.comment-activity-log-block details>summary {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.comment-activity-log-block details>summary::marker {
|
|
12
|
+
color: #ccc;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* List container */
|
|
16
|
+
.activity-log-list {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 10px;
|
|
20
|
+
margin-top: 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Individual Item */
|
|
24
|
+
.activity-log-item {
|
|
25
|
+
background-color: #f9f9f9;
|
|
26
|
+
border-radius: 4px;
|
|
27
|
+
border: 1px solid #eee;
|
|
28
|
+
padding: 8px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media (prefers-color-scheme: dark) {
|
|
32
|
+
.activity-log-item {
|
|
33
|
+
background-color: #2a2a2a;
|
|
34
|
+
border-color: #444;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.activity-log-summary {
|
|
39
|
+
font-size: 0.9em;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
color: #555;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (prefers-color-scheme: dark) {
|
|
48
|
+
.activity-log-summary {
|
|
49
|
+
color: #ccc;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.activity-name {
|
|
54
|
+
color: #333;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media (prefers-color-scheme: dark) {
|
|
58
|
+
.activity-name {
|
|
59
|
+
color: #fff;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.activity-time {
|
|
64
|
+
font-weight: normal;
|
|
65
|
+
color: #999;
|
|
66
|
+
font-size: 0.85em;
|
|
67
|
+
margin-left: 10px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.activity-log-body {
|
|
71
|
+
margin-top: 8px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.activity-log-yaml {
|
|
75
|
+
background: #fff;
|
|
76
|
+
padding: 10px;
|
|
77
|
+
border-radius: 4px;
|
|
78
|
+
border: 1px solid #e0e0e0;
|
|
79
|
+
overflow-x: auto;
|
|
80
|
+
font-family: monospace;
|
|
81
|
+
font-size: 0.85em;
|
|
82
|
+
white-space: pre-wrap;
|
|
83
|
+
word-break: break-all;
|
|
84
|
+
color: #333;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (prefers-color-scheme: dark) {
|
|
88
|
+
.activity-log-yaml {
|
|
89
|
+
background: #1e1e1e;
|
|
90
|
+
border-color: #333;
|
|
91
|
+
color: #d4d4d4;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.activity-log-empty {
|
|
96
|
+
color: #888;
|
|
97
|
+
font-style: italic;
|
|
98
|
+
padding: 10px;
|
|
99
|
+
}
|