Skip to content

chore: update#107

Merged
hmbanan666 merged 1 commit into
mainfrom
chore
Aug 28, 2025
Merged

chore: update#107
hmbanan666 merged 1 commit into
mainfrom
chore

Conversation

@hmbanan666
Copy link
Copy Markdown
Collaborator

@hmbanan666 hmbanan666 commented Aug 28, 2025

Summary by CodeRabbit

  • Style

    • Epic cards: refined layout; crown icon appears before the title; timestamp aligned with comments.
    • Epic comments: cleaner row layout with adjusted avatar spacing; notifications repositioned for clearer readability.
  • Refactor

    • Comment dropdown now applies only to the comment content, reducing accidental opens.
    • Create Comment Beacon: recipients are no longer preselected; selection starts empty.

@hmbanan666 hmbanan666 self-assigned this Aug 28, 2025
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Aug 28, 2025

Walkthrough

Reorganized Vue component templates for EpicCard and EpicComment to adjust DOM structure and dropdown scope without altering logic. Updated CreateEpicCommentBeacon to initialize selectedMembers as an empty array; watcher still syncs to state.usersId. No changes to exported/public APIs.

Changes

Cohort / File(s) Summary
Component layout refactors
apps/atrium-telegram/app/components/EpicCard.vue, apps/atrium-telegram/app/components/EpicComment.vue
EpicCard: moved layout classes into an inner wrapper; adjusted icon/title/metadata nesting. EpicComment: changed root to plain flex row; dropdown wraps only the card content; adjusted avatar margin and notification block positioning; no script/logic changes.
Form initialization behavior
apps/atrium-telegram/app/components/form/CreateEpicCommentBeacon.vue
Initialize selectedMembers to empty array instead of preselected subset; watcher still mirrors selections into state.usersId; no API/signature changes.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant UI as CreateEpicCommentBeacon UI
  participant VM as Component State
  Note over VM: Initial state<br/>selectedMembers = []
  User->>UI: Select members
  UI->>VM: Update selectedMembers
  activate VM
  VM->>VM: watcher: state.usersId = selectedMembers.map(id)
  deactivate VM
  User->>UI: Submit comment
  UI->>Backend: Send payload with usersId
  Backend-->>UI: Ack
Loading
sequenceDiagram
  autonumber
  actor User
  participant Row as EpicComment Row
  participant DD as Dropdown (UDropdownMenu)
  participant Card as ActiveCard (content)
  Note over Row: Root is flex row (avatar + content)
  User->>Card: Click inside content
  Card->>DD: Toggle menu
  DD-->>User: Show actions
  User->>Row: Click on avatar/notifications
  Note over Row,DD: No dropdown toggle (outside DD scope)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I nudge the DOM with gentle paws,
A crown now sits where spacing was.
The menu hugs the card just so—
Less hover sprawl, a cleaner glow.
No pre-picked friends; choose who to ping.
Thump-thump! shipped changes—springy spring. 🐇✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbit in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbit in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbit gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbit read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbit help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbit ignore or @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbit summary or @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbit or @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/atrium-telegram/app/components/form/CreateEpicCommentBeacon.vue (1)

84-92: Align form field name with schema and simplify watcher

  • Rename <UFormField name="members"> to name="usersId" so validation errors from createBeaconSchema surface on the correct field.
  • (Optional) Replace the watcher with:
    watch(selectedMembers, newVal => {
      state.value.usersId = newVal.map(m => m.value)
    }, { immediate: true })
    for clearer intent and immediate sync.
🧹 Nitpick comments (4)
apps/atrium-telegram/app/components/EpicComment.vue (2)

2-6: Add alt text for avatar (a11y).

Provide an accessible alt; fallback to a generic when name is missing.

-      <UAvatar :src="user?.avatarUrl ?? undefined" />
+      <UAvatar
+        :src="user?.avatarUrl ?? undefined"
+        :alt="`${user?.name ?? ''} ${user?.surname ?? ''}`.trim() || 'User avatar'"
+      />

7-16: Revisit negative sideOffset on dropdown; potential clipping/overflow.

Prefer aligning via align: 'start' and small offsets instead of -32.

-        :content="{
-          sideOffset: -32,
-        }"
+        :content="{
+          align: 'start',
+          sideOffset: 4,
+          alignOffset: -8
+        }"

Validate in narrow containers to ensure the menu fully displays and remains clickable.

apps/atrium-telegram/app/components/EpicCard.vue (2)

16-19: Safe fallback for comments count.

Avoid rendering nothing when comments is undefined.

-            <p>{{ epic?.comments.length }}</p>
+            <p>{{ epic?.comments?.length ?? 0 }}</p>

22-26: Normalize time datetime attribute to ISO.

Improves semantics and machine-readability.

-        <time
-          :datetime="epic.createdAt"
+        <time
+          :datetime="new Date(epic.createdAt).toISOString()"
           class="text-sm text-muted"
           v-text="format(new Date(epic.createdAt), 'от d MMMM yyyy', { locale: ru })"
         />
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 31c3d79 and 1eb6dc6.

📒 Files selected for processing (3)
  • apps/atrium-telegram/app/components/EpicCard.vue (1 hunks)
  • apps/atrium-telegram/app/components/EpicComment.vue (2 hunks)
  • apps/atrium-telegram/app/components/form/CreateEpicCommentBeacon.vue (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build
🔇 Additional comments (2)
apps/atrium-telegram/app/components/EpicComment.vue (1)

32-37: Notifications moved outside the dropdown – good separation.

Scoped interaction is clearer and avoids accidental menu opens when clicking beacons.

apps/atrium-telegram/app/components/EpicCard.vue (1)

2-13: Template restructuring looks good.

Cleaner inner wrapper; no logic impact observed.

@hmbanan666 hmbanan666 merged commit e4dc97b into main Aug 28, 2025
8 checks passed
@hmbanan666 hmbanan666 deleted the chore branch August 28, 2025 14:35
@coderabbitai coderabbitai Bot mentioned this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant