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,33 @@
|
|
|
1
|
+
<%= render 'collavre/users/app_header' %>
|
|
2
|
+
|
|
3
|
+
<% if defined?(@invitation) && @invitation.present? %>
|
|
4
|
+
<p>
|
|
5
|
+
<strong><%= t('collavre.creatives.index.share_creative') %>:</strong>
|
|
6
|
+
<%= strip_tags(@invitation.creative.effective_origin.description) %>
|
|
7
|
+
</p>
|
|
8
|
+
<% end %>
|
|
9
|
+
|
|
10
|
+
<%= form_with model: @user, url: users_path, class: "stacked-form" do |form| %>
|
|
11
|
+
<% if defined?(@invitation) && @invitation.present? %>
|
|
12
|
+
<%= hidden_field_tag :invite_token, params[:invite_token] || params[:token] %>
|
|
13
|
+
<% end %>
|
|
14
|
+
<%= render 'collavre/users/id_pwd_fields', form: form, disable_email: defined?(@invitation) && @invitation.present? %>
|
|
15
|
+
|
|
16
|
+
<%= form.password_field :password_confirmation,
|
|
17
|
+
required: true,
|
|
18
|
+
autocomplete: "new-password",
|
|
19
|
+
placeholder: t('.confirm_your_password'),
|
|
20
|
+
maxlength: 72,
|
|
21
|
+
class: "stacked-form-control" %>
|
|
22
|
+
<%= form.submit t('.sign_up'), class: "primary-action-button" %>
|
|
23
|
+
<% end %>
|
|
24
|
+
<div class="auth-alt-action">
|
|
25
|
+
<%= button_to t('collavre.users.sessions.new.sign_in_with_google'),
|
|
26
|
+
'/auth/google_oauth2',
|
|
27
|
+
method: :post,
|
|
28
|
+
class: "primary-action-button",
|
|
29
|
+
form: { class: "auth-alt-action__form" } %>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<br/>
|
|
33
|
+
<%= link_to t('.back_to_sign_in'), new_session_path %>
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<h1 class="text-center" style="margin-top: 0;"><%= t('collavre.users.new_ai.title') %></h1>
|
|
2
|
+
|
|
3
|
+
<%= form_with url: collavre.create_ai_users_path, class: "stacked-form" do |form| %>
|
|
4
|
+
<div class="form-group">
|
|
5
|
+
<%= form.label :ai_id, t('collavre.users.new_ai.id_label') %>
|
|
6
|
+
<%= form.text_field :ai_id, required: true, class: "stacked-form-control", placeholder: "e.g. my_bot" %>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div class="form-group">
|
|
10
|
+
<%= form.label :name, t('collavre.users.new_ai.name_label') %>
|
|
11
|
+
<%= form.text_field :name, required: true, class: "stacked-form-control", placeholder: "e.g. My Bot" %>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class="form-group">
|
|
15
|
+
<%= form.label :system_prompt, t('collavre.users.new_ai.system_prompt_label') %>
|
|
16
|
+
<%= form.text_area :system_prompt, required: true, class: "stacked-form-control", rows: 5, value: AiClient::SYSTEM_INSTRUCTIONS %>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="form-group">
|
|
20
|
+
<%= form.label :routing_expression, "Routing Expression (Liquid)" %>
|
|
21
|
+
<%= form.text_area :routing_expression, class: "stacked-form-control", rows: 2, placeholder: "chat.mentioned_user.id == agent.id" %>
|
|
22
|
+
<small class="form-text text-muted">Liquid expression to determine if this agent should handle an event. Example: <code>chat.mentioned_user.id == agent.id</code></small>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div class="form-group">
|
|
26
|
+
<%= form.label :llm_model, t('collavre.users.new_ai.model_label') %>
|
|
27
|
+
<div style="position: relative;"
|
|
28
|
+
data-controller="llm-model"
|
|
29
|
+
data-llm-model-menu-id-value="llm-model-suggestions"
|
|
30
|
+
data-llm-model-models-value="<%= Collavre::User::SUPPORTED_LLM_MODELS.to_json %>">
|
|
31
|
+
<%= form.text_field :llm_model,
|
|
32
|
+
required: true,
|
|
33
|
+
class: "stacked-form-control",
|
|
34
|
+
autocomplete: "off",
|
|
35
|
+
data: {
|
|
36
|
+
llm_model_target: "input",
|
|
37
|
+
action: "input->llm-model#search focus->llm-model#focus blur->llm-model#blur keydown->llm-model#handleKeydown"
|
|
38
|
+
} %>
|
|
39
|
+
<%= render UserMentionMenuComponent.new(menu_id: 'llm-model-suggestions') %>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div class="form-group">
|
|
44
|
+
<%= form.label :llm_api_key, t('collavre.users.new_ai.api_key_label') %>
|
|
45
|
+
<%= form.password_field :llm_api_key, class: "stacked-form-control", placeholder: "sk-..." %>
|
|
46
|
+
<small class="form-text text-muted"><%= t('collavre.users.new_ai.api_key_help') %></small>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div class="form-group">
|
|
50
|
+
<label class="form-label"><%= t('collavre.users.edit_ai.tools_title') %></label>
|
|
51
|
+
<p class="text-muted small"><%= t('collavre.users.edit_ai.tools_description') %></p>
|
|
52
|
+
|
|
53
|
+
<% if @available_tools.any? %>
|
|
54
|
+
<div class="tools-selection">
|
|
55
|
+
<% @available_tools.each do |tool| %>
|
|
56
|
+
<div class="form-check mb-2">
|
|
57
|
+
<%= check_box_tag "tools[]", tool[:name], false, id: "tool_#{tool[:name]}", class: "form-check-input" %>
|
|
58
|
+
<label class="form-check-label" for="tool_<%= tool[:name] %>">
|
|
59
|
+
<strong><%= tool[:name] %></strong>
|
|
60
|
+
<br>
|
|
61
|
+
<span class="text-muted small"><%= tool[:description] %></span>
|
|
62
|
+
</label>
|
|
63
|
+
<details class="ml-4">
|
|
64
|
+
<summary class="text-muted small" style="cursor: pointer;">Parameters</summary>
|
|
65
|
+
<pre class="small bg-light p-2 mt-1"><code><%= JSON.pretty_generate(tool[:parameters]) %></code></pre>
|
|
66
|
+
</details>
|
|
67
|
+
</div>
|
|
68
|
+
<% end %>
|
|
69
|
+
</div>
|
|
70
|
+
<% else %>
|
|
71
|
+
<p class="text-muted"><%= t('collavre.users.edit_ai.no_tools_found') %></p>
|
|
72
|
+
<% end %>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<div class="form-group">
|
|
76
|
+
<div class="form-check">
|
|
77
|
+
<%= form.check_box :searchable, { class: "form-check-input" }, true, false %>
|
|
78
|
+
<%= form.label :searchable, t('collavre.users.new_ai.searchable_label'), class: "form-check-label" %>
|
|
79
|
+
</div>
|
|
80
|
+
<small class="form-text text-muted"><%= t('collavre.users.new_ai.searchable_help') %></small>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<%= form.button t('collavre.users.new_ai.submit'), type: "submit", class: "primary-action-button" %>
|
|
84
|
+
<% end %>
|
|
85
|
+
|
|
86
|
+
<br/>
|
|
87
|
+
<%= link_to t('common.cancel'), collavre.user_path(Current.user, tab: 'contacts'), class: "text-center block" %>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<h1 class="no-top-margin"><%= t('collavre.users.webauthn.passkeys') %></h1>
|
|
2
|
+
|
|
3
|
+
<div class="webauthn-section" data-controller="webauthn" data-webauthn-not-supported-message-value="<%= t('collavre.users.webauthn.not_supported') %>">
|
|
4
|
+
|
|
5
|
+
<div class="add-passkey">
|
|
6
|
+
<form data-action="submit->webauthn#register" style="display: inline;">
|
|
7
|
+
<input type="text" data-webauthn-target="nickname" placeholder="<%= t('collavre.users.webauthn.nickname') %>" class="shared-input-surface" style="display: inline-block; width: auto; margin-right: 10px;">
|
|
8
|
+
<input type="submit" value="<%= t('collavre.users.webauthn.add') %>" class="primary-action-button">
|
|
9
|
+
</form>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="passkey-list">
|
|
12
|
+
<% if @user.webauthn_credentials.any? %>
|
|
13
|
+
<div class="table-scroll">
|
|
14
|
+
<table class="contacts-table">
|
|
15
|
+
<thead>
|
|
16
|
+
<tr>
|
|
17
|
+
<th><%= t('collavre.users.webauthn.nickname') %></th>
|
|
18
|
+
<th><%= t('collavre.users.webauthn.date') %></th>
|
|
19
|
+
<th><%= t('collavre.users.table.actions') %></th>
|
|
20
|
+
</tr>
|
|
21
|
+
</thead>
|
|
22
|
+
<tbody>
|
|
23
|
+
<% @user.webauthn_credentials.each do |credential| %>
|
|
24
|
+
<tr>
|
|
25
|
+
<td><%= credential.nickname %></td>
|
|
26
|
+
<td><%= l(credential.created_at.to_date) %></td>
|
|
27
|
+
<td>
|
|
28
|
+
<%= button_to t('collavre.users.webauthn.delete'), main_app.webauthn_credential_path(credential), method: :delete, class: "btn-danger btn-sm", data: { action: "click->webauthn#delete" } %>
|
|
29
|
+
</td>
|
|
30
|
+
</tr>
|
|
31
|
+
<% end %>
|
|
32
|
+
</tbody>
|
|
33
|
+
</table>
|
|
34
|
+
</div>
|
|
35
|
+
<% else %>
|
|
36
|
+
<p class="text-muted"><%= t('collavre.users.webauthn.list_empty') %></p>
|
|
37
|
+
<% end %>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div style="margin-top: 1rem;">
|
|
42
|
+
<%= link_to t('collavre.users.back'), collavre.user_path(@user) %>
|
|
43
|
+
</div>
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<% active_tab = @active_tab || "profile" %>
|
|
2
|
+
|
|
3
|
+
<h1 class="no-top-margin"><%= t('collavre.users.details') %></h1>
|
|
4
|
+
|
|
5
|
+
<div data-controller="tabs" data-tabs-active-tab-value="<%= active_tab %>">
|
|
6
|
+
<div class="tab-list">
|
|
7
|
+
<button class="tab-button <%= 'active' if active_tab == 'profile' %>" data-action="click->tabs#switch" data-tabs-tab-param="profile" data-tabs-target="tabButton">
|
|
8
|
+
<%= t('collavre.users.tabs.profile') %>
|
|
9
|
+
</button>
|
|
10
|
+
<button class="tab-button <%= 'active' if active_tab == 'contacts' %>" data-action="click->tabs#switch" data-tabs-tab-param="contacts" data-tabs-target="tabButton">
|
|
11
|
+
<%= t('collavre.users.tabs.user_management') %>
|
|
12
|
+
</button>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="tab-panels">
|
|
16
|
+
<section class="tab-panel <%= 'active' if active_tab == 'profile' %>" data-tabs-target="panel" data-tab-name="profile">
|
|
17
|
+
|
|
18
|
+
<% if @user.ai_user? %>
|
|
19
|
+
<div class="ai-user-details">
|
|
20
|
+
<div class="alert alert-info">
|
|
21
|
+
<%= t('collavre.users.details_ai_notice') %>
|
|
22
|
+
<%= link_to t('collavre.users.edit_ai.title'), collavre.edit_ai_user_path(@user), class: "btn btn-sm btn-primary ml-2" %>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<dl class="row">
|
|
26
|
+
<dt class="col-sm-3"><%= t('collavre.users.name') %></dt>
|
|
27
|
+
<dd class="col-sm-9"><%= @user.name %></dd>
|
|
28
|
+
|
|
29
|
+
<dt class="col-sm-3"><%= t('collavre.users.new_ai.id_label') %></dt>
|
|
30
|
+
<dd class="col-sm-9"><%= @user.email.split('@').first %></dd>
|
|
31
|
+
|
|
32
|
+
<dt class="col-sm-3"><%= t('collavre.users.new_ai.model_label') %></dt>
|
|
33
|
+
<dd class="col-sm-9"><%= @user.llm_model %></dd>
|
|
34
|
+
|
|
35
|
+
<dt class="col-sm-3"><%= t('collavre.users.new_ai.system_prompt_label') %></dt>
|
|
36
|
+
<dd class="col-sm-9"><pre><%= @user.system_prompt %></pre></dd>
|
|
37
|
+
</dl>
|
|
38
|
+
</div>
|
|
39
|
+
<% else %>
|
|
40
|
+
<div data-controller="avatar-preview">
|
|
41
|
+
|
|
42
|
+
<div class="avatar-preview-row">
|
|
43
|
+
<div class="avatar-preview-pane avatar-preview-current">
|
|
44
|
+
<span class="avatar-preview-label"><%= t('collavre.users.current_avatar') %></span>
|
|
45
|
+
<%= render AvatarComponent.new(user: @user, size: 80, classes: 'avatar') %>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div class="avatar-preview-pane avatar-preview-container" data-avatar-preview-target="previewContainer">
|
|
49
|
+
<span class="avatar-preview-label"><%= t('collavre.users.new_avatar_preview') %></span>
|
|
50
|
+
<div class="avatar-preview-frame">
|
|
51
|
+
<%= image_tag '',
|
|
52
|
+
alt: t('collavre.users.new_avatar_preview'),
|
|
53
|
+
class: 'avatar-preview-image avatar-preview-hidden',
|
|
54
|
+
data: { avatar_preview_target: 'previewImage' } %>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<%= form_with model: @user, url: collavre.user_path(@user), method: :patch, local: true, html: { multipart: true, class: 'profile-form' } do |f| %>
|
|
60
|
+
<div>
|
|
61
|
+
<%= f.label :avatar, t('collavre.users.avatar') %>
|
|
62
|
+
<%= f.file_field :avatar, data: { avatar_preview_target: 'input', action: 'change->avatar-preview#update' } %>
|
|
63
|
+
</div>
|
|
64
|
+
<div>
|
|
65
|
+
<%= f.label :name, t('collavre.users.name') %>
|
|
66
|
+
<%= f.text_field :name, required: true %>
|
|
67
|
+
</div>
|
|
68
|
+
<div>
|
|
69
|
+
<%= f.label :email, t('collavre.users.email') %>
|
|
70
|
+
<%= f.text_field :email, required: true, disabled: true %>
|
|
71
|
+
</div>
|
|
72
|
+
<div>
|
|
73
|
+
<%= f.label :avatar_url, t('collavre.users.avatar_url') %>
|
|
74
|
+
<%= f.text_field :avatar_url, placeholder: t('collavre.users.avatar_url'), data: { avatar_preview_target: 'urlInput', action: 'input->avatar-preview#updateFromUrl' } %>
|
|
75
|
+
</div>
|
|
76
|
+
<div>
|
|
77
|
+
<%= f.label :display_level, t('collavre.users.display_level') %>
|
|
78
|
+
<%= f.number_field :display_level, min: 1 %>
|
|
79
|
+
</div>
|
|
80
|
+
<div>
|
|
81
|
+
<%= f.label :completion_mark, t('collavre.users.completion_mark') %>
|
|
82
|
+
<%= f.text_field :completion_mark %>
|
|
83
|
+
</div>
|
|
84
|
+
<div>
|
|
85
|
+
<div>
|
|
86
|
+
<%= f.label :theme, t('collavre.users.theme') %>
|
|
87
|
+
<%
|
|
88
|
+
theme_options = [[t('app.system_mode'), nil], [t('app.light_mode'), 'light'], [t('app.dark_mode'), 'dark']]
|
|
89
|
+
theme_options += @user.user_themes.map { |ut| [ut.name, ut.id.to_s] }
|
|
90
|
+
%>
|
|
91
|
+
<%= f.select :theme, options_for_select(theme_options, @user.theme), {}, style: "width: 100%; display: block;" %>
|
|
92
|
+
<div style="margin-top: 5px;">
|
|
93
|
+
<a href="<%= collavre.user_themes_path %>" style="font-size: 0.9em;"><%= t("collavre.themes.manage") %></a>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
<div>
|
|
97
|
+
<%= f.label :calendar_id, t('collavre.users.calendar_id') %>
|
|
98
|
+
<%= f.text_field :calendar_id, placeholder: t('collavre.users.calendar_id') %>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="checkbox-field">
|
|
101
|
+
<%= f.check_box :notifications_enabled %>
|
|
102
|
+
<%= f.label :notifications_enabled, t('collavre.users.notifications_enabled') %>
|
|
103
|
+
</div>
|
|
104
|
+
<div>
|
|
105
|
+
<%= f.label :locale, t('collavre.users.locale') %>
|
|
106
|
+
<%= f.select :locale, I18n.available_locales.map { |loc| [t("collavre.users.locales.#{loc}"), loc] } %>
|
|
107
|
+
</div>
|
|
108
|
+
<div>
|
|
109
|
+
<%= f.label :timezone, t('collavre.users.timezone') %>
|
|
110
|
+
<%= f.select :timezone, ActiveSupport::TimeZone.all.map { |tz| [tz.to_s, tz.tzinfo.name] } %>
|
|
111
|
+
</div>
|
|
112
|
+
<%= f.submit t('collavre.users.update_profile') %>
|
|
113
|
+
<% end %>
|
|
114
|
+
|
|
115
|
+
<div class="profile-actions">
|
|
116
|
+
<%= link_to t('collavre.users.change_password'), collavre.edit_password_user_path(@user) %>
|
|
117
|
+
<br>
|
|
118
|
+
<%= link_to t('collavre.users.webauthn.manage'), collavre.passkeys_user_path(@user) %>
|
|
119
|
+
<br>
|
|
120
|
+
<%= link_to t('doorkeeper.my_applications'), main_app.oauth_applications_path %>
|
|
121
|
+
<% if @user.system_admin? %>
|
|
122
|
+
<br>
|
|
123
|
+
<%= link_to t('admin.title'), main_app.admin_path %>
|
|
124
|
+
<% end %>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
</div>
|
|
129
|
+
<% end %>
|
|
130
|
+
</section>
|
|
131
|
+
|
|
132
|
+
<section class="tab-panel <%= 'active' if active_tab == 'contacts' %>" data-tabs-target="panel" data-tab-name="contacts">
|
|
133
|
+
<%= render partial: 'collavre/users/contact_management', locals: {
|
|
134
|
+
contacts: @contacts,
|
|
135
|
+
last_login_map: @last_login_map,
|
|
136
|
+
shared_by_me: @shared_by_me,
|
|
137
|
+
shared_with_me: @shared_with_me,
|
|
138
|
+
contact_page: @contact_page,
|
|
139
|
+
total_contact_pages: @total_contact_pages
|
|
140
|
+
} %>
|
|
141
|
+
</section>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title><%= t('app.name') %></title>
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<%= csrf_meta_tags %>
|
|
7
|
+
<%= csp_meta_tag %>
|
|
8
|
+
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
|
|
9
|
+
<%= stylesheet_link_tag "collavre/creatives" %>
|
|
10
|
+
<%= stylesheet_link_tag "collavre/dark_mode" %>
|
|
11
|
+
<%= stylesheet_link_tag 'collavre/slide_view', media: 'all' %>
|
|
12
|
+
<%= javascript_include_tag 'actioncable', defer: true %>
|
|
13
|
+
<%= javascript_include_tag 'slide_view', defer: true %>
|
|
14
|
+
<% if Current.user&.theme.present? && !%w[light dark].include?(Current.user.theme) %>
|
|
15
|
+
<% if (custom_theme = UserTheme.find_by(id: Current.user.theme)) %>
|
|
16
|
+
<style id="user-theme-styles" data-turbo-track="reload">
|
|
17
|
+
body {
|
|
18
|
+
<% custom_theme.variables.each do |key, value| %>
|
|
19
|
+
<%= key %>: <%= value %> !important;
|
|
20
|
+
<% end %>
|
|
21
|
+
}
|
|
22
|
+
</style>
|
|
23
|
+
<% end %>
|
|
24
|
+
<% end %>
|
|
25
|
+
</head>
|
|
26
|
+
<body class="<%= 'dark-mode' if Current.user&.theme == 'dark' %><%= ' light-mode' if Current.user&.theme == 'light' %>">
|
|
27
|
+
<%= yield %>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
en:
|
|
3
|
+
collavre:
|
|
4
|
+
topics:
|
|
5
|
+
delete_confirm: This will delete all messages in this topic. Are you sure?
|
|
6
|
+
new_placeholder: New Topic
|
|
7
|
+
no_permission: You don't have permission to perform this action.
|
|
8
|
+
github_auth:
|
|
9
|
+
login_first: Please sign in first.
|
|
10
|
+
connected: Github account connected successfully.
|
|
11
|
+
notion_auth:
|
|
12
|
+
login_first: Please sign in first.
|
|
13
|
+
connected: Notion account connected successfully.
|
|
14
|
+
comments:
|
|
15
|
+
reaction_invalid: Invalid reaction.
|
|
16
|
+
invalid_topic: Topic does not belong to this creative.
|
|
17
|
+
comments: Comments
|
|
18
|
+
delete_confirm: Are you sure you want to delete this comment?
|
|
19
|
+
no_comments: No comments yet.
|
|
20
|
+
anonymous: Anonymous
|
|
21
|
+
add_comment: Add Comment
|
|
22
|
+
update_comment: Update Comment
|
|
23
|
+
edit_button: Edit
|
|
24
|
+
delete: Delete Comment
|
|
25
|
+
delete_button: Delete
|
|
26
|
+
not_owner: Only the comment owner can modify this.
|
|
27
|
+
no_permission: You do not have permission to comment.
|
|
28
|
+
convert_not_allowed: Only the comment owner or a creative admin can convert
|
|
29
|
+
this message.
|
|
30
|
+
gemini: Gemini
|
|
31
|
+
convert_button: Convert
|
|
32
|
+
convert_to_creative: Convert to Creative
|
|
33
|
+
convert_confirm: This will add the comment content as a child creative of the
|
|
34
|
+
current creative. Continue?
|
|
35
|
+
copy_link_button: Copy link
|
|
36
|
+
copy_link_success: Link copied to clipboard
|
|
37
|
+
copy_link_error: Unable to copy link
|
|
38
|
+
approve_button: Approve
|
|
39
|
+
approve_not_allowed: Only the assigned approver can approve this comment.
|
|
40
|
+
approve_invalid_format: Invalid action format.
|
|
41
|
+
approve_admin_required: System administrator approval required.
|
|
42
|
+
approve_missing_action: No approval action is associated with this comment.
|
|
43
|
+
approve_missing_approver: This comment has no approver to run the action.
|
|
44
|
+
approve_already_executed: This comment action has already been executed.
|
|
45
|
+
approve_execution_failed: 'Comment action failed: %{message}'
|
|
46
|
+
approve_success: Action approved.
|
|
47
|
+
approve_error: Unable to approve the action.
|
|
48
|
+
approve_unsupported_action: 'Unsupported comment action: %{action}.'
|
|
49
|
+
approve_invalid_attributes: Comment action attributes must be an object.
|
|
50
|
+
approve_no_attributes: Comment action must include at least one allowed attribute.
|
|
51
|
+
approve_invalid_creative: Comment action targets an invalid creative.
|
|
52
|
+
approve_invalid_progress: Comment action progress must be a number.
|
|
53
|
+
approve_invalid_description: Comment action description must be text.
|
|
54
|
+
approved_label: Approved
|
|
55
|
+
action_summary: Action JSON
|
|
56
|
+
edit_action_button: Edit action
|
|
57
|
+
action_update_success: Action updated.
|
|
58
|
+
action_update_error: Unable to update the action.
|
|
59
|
+
private: Private
|
|
60
|
+
convert_system_message: 'System: Comment was converted to the [%{title}](%{url})
|
|
61
|
+
creative.'
|
|
62
|
+
convert_system_message_default_title: Untitled
|
|
63
|
+
system_user: System
|
|
64
|
+
search_button: Search
|
|
65
|
+
image_button: Image
|
|
66
|
+
search_empty_prompt: Please enter a search term in the chat message field.
|
|
67
|
+
voice_button: Voice
|
|
68
|
+
voice_stop: Stop
|
|
69
|
+
speech_unavailable: Speech recognition is not supported in this browser.
|
|
70
|
+
move_button: Move
|
|
71
|
+
move_no_selection: Select at least one message to move.
|
|
72
|
+
move_error: Unable to move messages.
|
|
73
|
+
move_invalid_target: Select a valid creative to move messages to.
|
|
74
|
+
move_not_allowed: You do not have permission to move these messages.
|
|
75
|
+
select_label: Select message
|
|
76
|
+
add_reaction: Add reaction
|
|
77
|
+
add_reaction_button: "+"
|
|
78
|
+
calendar_command:
|
|
79
|
+
event_created: 'event created: [Google Calendar event](%{url})'
|
|
80
|
+
read_by: Read by %{name}
|
|
81
|
+
activity_logs_summary: Activity Logs
|
|
82
|
+
calendar_events:
|
|
83
|
+
deleted: Calendar event deleted.
|
|
84
|
+
inbox:
|
|
85
|
+
mark_read: Read
|
|
86
|
+
mark_unread: Unread
|
|
87
|
+
delete: Delete
|
|
88
|
+
show_read: Show read
|
|
89
|
+
no_messages: No messages
|
|
90
|
+
comment_added: '%{user} added "%{comment}" to "%{creative}".'
|
|
91
|
+
creative_shared: '%{user} shared "%{short_title}".'
|
|
92
|
+
user_mentioned: '%{user} mentioned you in "%{creative}": "%{comment}"'
|
|
93
|
+
permission_requested: '%{user} requested access to "%{short_title}".'
|
|
94
|
+
comment_deleted_by_admin: '%{admin_name} deleted your comment in "%{creative_snippet}":
|
|
95
|
+
%{comment_content}'
|
|
96
|
+
comment_content_unavailable: "(comment unavailable)"
|
|
97
|
+
tool_approval_needed: Tool '%{tool_name}' has been detected/updated. Please approve
|
|
98
|
+
it to activate.
|
|
99
|
+
emails:
|
|
100
|
+
index_title: Emails
|
|
101
|
+
list:
|
|
102
|
+
title:
|
|
103
|
+
to: To
|
|
104
|
+
event: Event
|
|
105
|
+
subject: Subject
|
|
106
|
+
sent_at: Sent at
|
|
107
|
+
event:
|
|
108
|
+
invitation: Invitation
|
|
109
|
+
inbox_summary: Inbox summary
|
|
110
|
+
inbox_mailer:
|
|
111
|
+
daily_summary:
|
|
112
|
+
subject: Your inbox summary
|
|
113
|
+
greeting: 'Here are your unread messages:'
|
|
114
|
+
view: View
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
ko:
|
|
3
|
+
collavre:
|
|
4
|
+
topics:
|
|
5
|
+
delete_confirm: 이 토픽의 모든 메시지가 삭제됩니다. 확실합니까?
|
|
6
|
+
new_placeholder: 새 토픽
|
|
7
|
+
no_permission: 이 작업을 수행할 권한이 없습니다.
|
|
8
|
+
github_auth:
|
|
9
|
+
login_first: 먼저 로그인해주세요.
|
|
10
|
+
connected: Github 계정이 연동되었습니다.
|
|
11
|
+
notion_auth:
|
|
12
|
+
login_first: 먼저 로그인해주세요.
|
|
13
|
+
connected: Notion 계정이 연동되었습니다.
|
|
14
|
+
comments:
|
|
15
|
+
reaction_invalid: 잘못된 리액션입니다.
|
|
16
|
+
invalid_topic: 토픽이 이 크리에이티브에 속하지 않습니다.
|
|
17
|
+
comments: 댓글
|
|
18
|
+
delete_confirm: 댓글을 삭제하시겠습니까?
|
|
19
|
+
no_comments: 댓글이 없습니다.
|
|
20
|
+
anonymous: 익명
|
|
21
|
+
add_comment: 댓글 추가
|
|
22
|
+
update_comment: 댓글 수정
|
|
23
|
+
edit_button: 수정
|
|
24
|
+
delete: 댓글 삭제
|
|
25
|
+
delete_button: 삭제
|
|
26
|
+
not_owner: 댓글 소유자만 수정할 수 있습니다.
|
|
27
|
+
no_permission: 댓글을 추가할 권한이 없습니다.
|
|
28
|
+
convert_not_allowed: 댓글 소유자 또는 크리에이티브 관리자만 이 메시지를 전환할 수 있습니다.
|
|
29
|
+
gemini: Gemini
|
|
30
|
+
convert_button: 전환
|
|
31
|
+
convert_to_creative: 하위 크리에이티브로 전환
|
|
32
|
+
convert_confirm: 현재 크리에이티브 하위에 해당 댓글의 내용이 추가됩니다. 진행하시겠습니까?
|
|
33
|
+
copy_link_button: 링크 복사
|
|
34
|
+
copy_link_success: 링크가 복사되었습니다
|
|
35
|
+
copy_link_error: 링크를 복사할 수 없습니다
|
|
36
|
+
approve_button: 승인
|
|
37
|
+
approve_not_allowed: 지정된 승인자만 이 댓글을 승인할 수 있습니다.
|
|
38
|
+
approve_invalid_format: 유효하지 않은 액션 형식입니다.
|
|
39
|
+
approve_admin_required: 시스템 관리자 승인이 필요합니다.
|
|
40
|
+
approve_missing_action: 이 댓글에는 실행할 작업이 없습니다.
|
|
41
|
+
approve_missing_approver: 이 댓글에는 승인자가 지정되어 있지 않습니다.
|
|
42
|
+
approve_already_executed: 이 댓글 작업은 이미 실행되었습니다.
|
|
43
|
+
approve_execution_failed: '댓글 작업 실행에 실패했습니다: %{message}'
|
|
44
|
+
approve_success: 작업이 승인되었습니다.
|
|
45
|
+
approve_error: 작업을 승인할 수 없습니다.
|
|
46
|
+
approve_unsupported_action: '지원되지 않는 댓글 작업입니다: %{action}'
|
|
47
|
+
approve_invalid_attributes: 댓글 작업 속성은 객체 형식이어야 합니다.
|
|
48
|
+
approve_no_attributes: 댓글 작업에는 최소 한 개의 허용 속성이 포함되어야 합니다.
|
|
49
|
+
approve_invalid_creative: 댓글 작업이 잘못된 크리에이티브를 대상으로 하고 있습니다.
|
|
50
|
+
approve_invalid_progress: 댓글 작업 진행률은 숫자여야 합니다.
|
|
51
|
+
approve_invalid_description: 댓글 작업 설명은 텍스트여야 합니다.
|
|
52
|
+
approved_label: 승인됨
|
|
53
|
+
action_summary: Action JSON
|
|
54
|
+
edit_action_button: Action 수정
|
|
55
|
+
action_update_success: Action 이 업데이트되었습니다.
|
|
56
|
+
action_update_error: Action 을 업데이트할 수 없습니다.
|
|
57
|
+
private: 비밀
|
|
58
|
+
convert_system_message: 'System: 메세지가 [%{title}](%{url}) 크리에이티브로 변환되었습니다'
|
|
59
|
+
convert_system_message_default_title: 제목 없음
|
|
60
|
+
system_user: System
|
|
61
|
+
search_button: 검색
|
|
62
|
+
image_button: 이미지
|
|
63
|
+
search_empty_prompt: 검색어 를 채팅 메세지 입력폼에 입력하시오
|
|
64
|
+
voice_button: 음성
|
|
65
|
+
voice_stop: 중지
|
|
66
|
+
speech_unavailable: 이 브라우저는 음성 인식을 지원하지 않습니다.
|
|
67
|
+
move_button: 이동
|
|
68
|
+
move_no_selection: 이동할 메시지를 선택해주세요.
|
|
69
|
+
move_error: 메시지를 이동할 수 없습니다.
|
|
70
|
+
move_invalid_target: 이동할 크리에이티브를 선택해주세요.
|
|
71
|
+
move_not_allowed: 이 메시지를 이동할 권한이 없습니다.
|
|
72
|
+
select_label: 메시지 선택
|
|
73
|
+
add_reaction: 리액션 추가
|
|
74
|
+
add_reaction_button: "+"
|
|
75
|
+
calendar_command:
|
|
76
|
+
event_created: '이벤트가 생성되었습니다: [구글 캘린더 이벤트](%{url})'
|
|
77
|
+
read_by: "%{name} 님이 읽음"
|
|
78
|
+
activity_logs_summary: 활동 기록
|
|
79
|
+
calendar_events:
|
|
80
|
+
deleted: 캘린더 이벤트가 삭제되었습니다.
|
|
81
|
+
inbox:
|
|
82
|
+
mark_read: 읽음
|
|
83
|
+
mark_unread: 안읽음
|
|
84
|
+
delete: 삭제
|
|
85
|
+
show_read: 읽은 메세지 포함
|
|
86
|
+
no_messages: 메세지가 없습니다
|
|
87
|
+
comment_added: '%{user} 가 "%{comment}" 를 "%{creative}" 에 추가했습니다.'
|
|
88
|
+
creative_shared: '%{user} 가 "%{short_title}" 을 공유했습니다.'
|
|
89
|
+
user_mentioned: '%{user} 님이 "%{creative}" 에서 당신을 언급했습니다: "%{comment}"'
|
|
90
|
+
permission_requested: '%{user} 이 크리에이티브 "%{short_title}" 에 대한 권한 요청을 했습니다.'
|
|
91
|
+
comment_deleted_by_admin: '%{admin_name} 님이 "%{creative_snippet}" 에서 당신의 댓글을
|
|
92
|
+
삭제했습니다: %{comment_content}'
|
|
93
|
+
comment_content_unavailable: "(삭제된 댓글 내용을 표시할 수 없습니다)"
|
|
94
|
+
tool_approval_needed: 도구 '%{tool_name}'가 감지/업데이트되었습니다. 활성화하려면 승인해주세요.
|
|
95
|
+
emails:
|
|
96
|
+
index_title: 이메일
|
|
97
|
+
list:
|
|
98
|
+
title:
|
|
99
|
+
to: 받는 사람
|
|
100
|
+
event: 이벤트
|
|
101
|
+
subject: 제목
|
|
102
|
+
sent_at: 보낸 시간
|
|
103
|
+
event:
|
|
104
|
+
invitation: 초대
|
|
105
|
+
inbox_summary: 인박스 요약
|
|
106
|
+
inbox_mailer:
|
|
107
|
+
daily_summary:
|
|
108
|
+
subject: 인박스 요약
|
|
109
|
+
greeting: '읽지 않은 메세지 목록입니다:'
|
|
110
|
+
view: 보기
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
en:
|
|
3
|
+
collavre:
|
|
4
|
+
contacts:
|
|
5
|
+
description: Manage users you have invited or share creatives with.
|
|
6
|
+
empty_state: No managed users yet.
|
|
7
|
+
none: None
|
|
8
|
+
table:
|
|
9
|
+
shared_creatives: Creatives you shared
|
|
10
|
+
shared_with_me: Creatives shared with you
|
|
11
|
+
pagination:
|
|
12
|
+
prev: Previous
|
|
13
|
+
next: Next
|
|
14
|
+
page_info: Page %{current} of %{total}
|
|
15
|
+
notices:
|
|
16
|
+
removed: User removed from your managed users.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
ko:
|
|
3
|
+
collavre:
|
|
4
|
+
contacts:
|
|
5
|
+
description: 초대했거나 크리에이티브를 공유한 사용자를 관리합니다.
|
|
6
|
+
empty_state: 아직 관리할 사용자가 없습니다.
|
|
7
|
+
none: 없음
|
|
8
|
+
table:
|
|
9
|
+
shared_creatives: 공유한 크리에이티브
|
|
10
|
+
shared_with_me: 공유된 크리에이티브
|
|
11
|
+
pagination:
|
|
12
|
+
prev: 이전
|
|
13
|
+
next: 다음
|
|
14
|
+
page_info: "%{current}/%{total} 페이지"
|
|
15
|
+
notices:
|
|
16
|
+
removed: 사용자 관리 목록에서 제거했습니다.
|