Skip to content

chore: checkbox visual rework#101

Merged
hmbanan666 merged 3 commits into
mainfrom
fix
Aug 28, 2025
Merged

chore: checkbox visual rework#101
hmbanan666 merged 3 commits into
mainfrom
fix

Conversation

@hmbanan666
Copy link
Copy Markdown
Collaborator

@hmbanan666 hmbanan666 commented Aug 28, 2025

Summary by CodeRabbit

  • Style
    • Standardized checkbox sizing for a consistent appearance.
    • Adjusted completed-task icon sizing and color for improved visibility.
    • Shifted dropdown positioning with refined item padding while preserving content width.
    • Added muted placeholder styling to form controls for subtler hints.
    • Removed internal centering on an input to maintain full-width layout.
  • Notes
    • UI-only changes; no functional or behavioral changes.

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

coderabbitai Bot commented Aug 28, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Updated UI and Tailwind classes across three components: switched checkbox sizing to UI tokens, adjusted dropdown positioning and item padding, added placeholder muted class to several UI slot base classes, and removed centering classes from an input. No logic or control-flow changes.

Changes

Cohort / File(s) Summary
Task card UI tweaks
apps/atrium-telegram/app/components/TaskCard.vue
- Replaced size="xl" on two UCheckbox instances with :ui="{ base: 'size-6' }" and updated completed-task icon class to size-6 text-secondary.
- Added :content="{ sideOffset: -32 }" to UDropdownMenu and extended :ui with item: 'p-2' while preserving content: 'w-48'.
Global UI slot classes
apps/atrium-telegram/app/app.config.ts
- Added placeholder:text-muted/25 alongside !ring-muted in the base class for input, inputMenu, selectMenu, and textarea UI slot definitions.
Input alignment removal
apps/atrium-telegram/app/components/form/CreateTask.vue
- Removed items-center justify-center from UInput class, leaving class="w-full" (centering removed).

Sequence Diagram(s)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • chore: inputs rework #100 — modifies the same UI slot definitions (input, inputMenu, selectMenu, textarea) in apps/atrium-telegram/app/app.config.ts, likely related.
  • chore: checkbox visual rework #101 — makes matching UI adjustments in TaskCard.vue (checkbox sizing switch, dropdown position/padding changes), directly related.

Poem

A rabbit nudged checkboxes into line,
size‑6 stitched tidy, padding feeling fine.
Dropdowns sidled in with a subtle shove,
Inputs uncentered, free to rove.
Hops for tiny tweaks — a neat UI jive. 🥕

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent 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 de44f0b and cd0e7f9.

📒 Files selected for processing (1)
  • apps/atrium-telegram/app/components/TaskCard.vue (1 hunks)
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix

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.

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

🧹 Nitpick comments (1)
apps/atrium-telegram/app/components/TaskCard.vue (1)

25-27: DRY the repeated inline :ui object.

Extract a shared const to avoid duplication and keep future tweaks in one place.

Apply in template:

-      :ui="{
-        base: 'size-6',
-      }"
+      :ui="checkboxUi"

Do the same for the other UCheckbox above.

Add in <script setup>:

const checkboxUi = { base: 'size-6' }
📜 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 306715c and 4b40bf9.

📒 Files selected for processing (1)
  • apps/atrium-telegram/app/components/TaskCard.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 (3)
apps/atrium-telegram/app/components/TaskCard.vue (3)

34-36: Negative sideOffset can cause overlap/clipping; prefer align/alignOffset for lateral nudges.

If you intended a horizontal shift, use alignOffset (cross-axis) instead of a negative sideOffset (main-axis). If you intended vertical overlap, confirm it doesn’t block the trigger or clip inside containers.

Option to consider:

-      :content="{
-        sideOffset: -32,
-      }"
+      :content="{
+        align: 'end',
+        alignOffset: -32
+      }"

Test on small viewports and near screen edges.


39-39: Ensure ui.item: 'p-2' augments, not replaces, default interactive styles.

Depending on merge semantics, setting item may override defaults (hover/focus/active/rounded). Verify highlight/disabled/focus-visible states still apply; if overridden, append missing classes or move padding to a wrapper token.


14-16: Confirm UCheckbox slot & touch target (apps/atrium-telegram/app/components/TaskCard.vue:14-16)

  • Verify that base is the correct slot for resizing the checkbox square in your UI library (some expect slots like input, indicator or wrapper).
  • size-6 (~24 px) is below the 44 px minimum touch target; if you keep the visual size, enlarge the hit area (e.g. add padding with negative margins).

@hmbanan666 hmbanan666 merged commit 9445dab into main Aug 28, 2025
5 checks passed
@hmbanan666 hmbanan666 deleted the fix branch August 28, 2025 08:16
@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: 1

🧹 Nitpick comments (1)
apps/atrium-telegram/app/components/form/CreateTask.vue (1)

50-51: Align date input with the same cleanup for consistency.

These flex alignment classes are likely unnecessary here too.

Apply this diff:

-          class="w-full items-center justify-center cursor-pointer"
+          class="w-full cursor-pointer"
📜 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 4b40bf9 and de44f0b.

📒 Files selected for processing (2)
  • apps/atrium-telegram/app/app.config.ts (1 hunks)
  • apps/atrium-telegram/app/components/form/CreateTask.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 (1)
apps/atrium-telegram/app/components/form/CreateTask.vue (1)

17-18: Removed redundant flex alignment classes — good cleanup.

Dropping items-center justify-center on this <UInput> avoids fighting the component’s own layout. No functional impact expected.

Comment on lines +5 to 6
base: '!ring-muted placeholder:text-muted/25',
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue

Placeholder styling on base may be a no-op for some components — move it to the input slot.

For components where slots.base is a wrapper (e.g., USelectMenu), placeholder:* won’t apply; the placeholder color belongs on the actual input element (the input slot). Nuxt UI’s SelectMenu config demonstrates placeholder classes on its input slot. Textarea’s base is the textarea element, so keeping placeholder:* on textarea.slots.base is fine. (ui2.nuxt.com, ui.nuxt.com)

Use this refactor (keeps textarea as-is, moves placeholder color for the others):

   input: {
     slots: {
-        base: '!ring-muted placeholder:text-muted/25',
+        base: '!ring-muted',
+        input: 'placeholder:text-muted/25',
     },
   },
   inputMenu: {
     slots: {
-        base: '!ring-muted placeholder:text-muted/25',
+        base: '!ring-muted',
+        input: 'placeholder:text-muted/25',
     },
   },
   selectMenu: {
     slots: {
-        base: '!ring-muted placeholder:text-muted/25',
+        base: '!ring-muted',
+        input: 'placeholder:text-muted/25',
     },
   },
   textarea: {
     slots: {
         base: '!ring-muted placeholder:text-muted/25',
     },
   },

If your local slot names differ, map the placeholder class to whichever slot renders the actual <input> used by the component.

Also applies to: 10-11, 15-16, 20-21

🤖 Prompt for AI Agents
In apps/atrium-telegram/app/app.config.ts around lines 5-6 (and also applicable
to lines 10-11, 15-16, 20-21), placeholder text color classes were placed on the
slots.base wrapper where they may be a no-op for components whose actual input
lives in a different slot; move the placeholder:* class from the base slot to
the component's input slot (e.g., slots.input) for those components while
keeping the textarea's placeholder on its base slot, ensuring the placeholder
styling applies to the real <input> element used by each component.

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