Skip to content

Conversation

@m0ksem
Copy link
Collaborator

@m0ksem m0ksem commented Jun 20, 2025

No description provided.

@netlify
Copy link

netlify bot commented Jun 20, 2025

Deploy Preview for vuestic-docs failed. Why did it fail? →

Name Link
🔨 Latest commit c17d0fc
🔍 Latest deploy log https://app.netlify.com/projects/vuestic-docs/deploys/686b71812d920300089e6eb7

@m0ksem m0ksem requested a review from Copilot June 20, 2025 14:32
@netlify
Copy link

netlify bot commented Jun 20, 2025

Deploy Preview for vuestic-storybook failed. Why did it fail? →

Name Link
🔨 Latest commit c17d0fc
🔍 Latest deploy log https://app.netlify.com/projects/vuestic-storybook/deploys/686b71813da89a000875177f

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR overhauls the playground by removing legacy TestButton and Vuestic UI integration, introducing Tailwind, and adding a suite of basic Vue components.

  • Removed old TestButton page and Vuestic imports/configuration.
  • Added Tailwind setup, a new useColor composable, and several Vc* components.
  • Updated main app (App.vue, Test.vue) to render new components and adjusted workspace/package configs.

Reviewed Changes

Copilot reviewed 20 out of 93 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/compiler/playground/src/pages/TestButton.vue Removed legacy TestButton.vue
packages/compiler/playground/src/main.ts Switched off Vuestic UI, added Tailwind import
packages/compiler/playground/src/composables/useColor.ts Added placeholder color composable
packages/compiler/playground/src/components/VcProgress.vue New loading spinner component
packages/compiler/playground/src/components/VcOrderCard.vue New order card component
packages/compiler/playground/src/components/VcList.vue New simple list component
packages/compiler/playground/src/components/VcInput.vue New input component
packages/compiler/playground/src/components/VcIcon.vue New icon wrapper component
packages/compiler/playground/src/components/VcCardTitle.vue New card title wrapper component
packages/compiler/playground/src/components/VcCardContent.vue New card content wrapper component
packages/compiler/playground/src/components/VcCard.vue New card container component
packages/compiler/playground/src/components/VcButton.vue New button component with icon/loading states
packages/compiler/playground/src/assets/tailwind.css Added Tailwind import
packages/compiler/playground/src/Test.vue New test page using VcButton
packages/compiler/playground/src/App.vue Refactored main app to use new components
packages/compiler/playground/index.html Updated head links for icons/Tailwind
packages/compiler/playground/package.json Added Tailwind plugins and playground workspace
packages/compiler/package.json Added TypeScript, test script and devDependencies
package.json Included playground in root workspaces

import App from './App.vue'
import { createVuestic } from 'vuestic-ui'
import 'vuestic-ui/css'
// import { createVuestic } from 'vuestic-ui'
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

Remove the commented-out Vuestic UI imports since the playground no longer uses Vuestic, keeping the codebase clean.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,5 @@
import { ref } from "vue"

export const useColor = (props: Record<string, any>) => {
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

The props parameter is declared but never used in useColor. Consider removing it or implementing logic that uses these props.

Suggested change
export const useColor = (props: Record<string, any>) => {
export const useColor = () => {

Copilot uses AI. Check for mistakes.
case 'secondary':
return 'bg-[#767C88]'
default:
return 'gray'
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

The default background class 'gray' is not a valid Tailwind background utility. Consider returning a valid class like 'bg-gray-200'.

Suggested change
return 'gray'
return 'bg-gray-500'

Copilot uses AI. Check for mistakes.
}
if (loading) {
console.log('icon', icon)
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

Remove this debug console.log statement to avoid unnecessary logging in production code.

Suggested change
console.log('icon', icon)
// No-op: Removed unnecessary console.log statement

Copilot uses AI. Check for mistakes.
Comment on lines +4 to +5
// import { useColor } from '../composables/useColor'
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

Remove the commented import for useColor if it's not intended to be used, avoiding dead code.

Suggested change
// import { useColor } from '../composables/useColor'

Copilot uses AI. Check for mistakes.
<script setup lang="ts">
import { ref } from 'vue';
const color = ref('primary');
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

The color ref is defined but never used in this template—consider removing it.

Suggested change
const color = ref('primary');

Copilot uses AI. Check for mistakes.
import Test from './Test.vue'
import { ref } from 'vue'
const ordersCount = 1000;
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

ordersCount and the subsequent orders array are declared but not used in the template. Remove them or wire them up to avoid dead code.

Copilot uses AI. Check for mistakes.
Comment on lines +8 to +9
<!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"> -->
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

The Material Icons stylesheet is commented out, which will prevent icons from displaying correctly. Uncomment or include the proper link.

Suggested change
<!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"> -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">

Copilot uses AI. Check for mistakes.
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