Skip to content

Conversation

piggggggggy
Copy link
Member

Skip Review (optional)

  • Minor changes that don't affect the functionality (e.g. style, chore, ci, test, docs)
  • Previously reviewed in feature branch, further review is not mandatory
  • Self-merge allowed for solo developers or urgent changes

Description (optional)

SSIA

  • Changes and applications for both features have been completed
  • While working, I found limits to current structure(user-config), so I plan to further improve user-config feature with next task

Things to Talk About (optional)

Copy link

vercel bot commented Aug 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
console Ignored Ignored Preview Aug 22, 2025 7:56am
mfa-saas-qa Ignored Ignored Aug 22, 2025 7:56am
web-storybook Ignored Ignored Aug 22, 2025 7:56am

Copy link
Contributor

🎉 @yuda110 has been randomly selected as the reviewer! Please review. 🙏

Copy link

@Copilot 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 pull request implements a new recent/favorite feature by migrating from the old user-config structure to a new approach using composables and mutations. The changes standardize how recent items and favorites are managed across the application.

Key changes include:

  • Replacement of store-based recent and favorite management with composable-based approach
  • Migration from useRecentStore to useRecentDelete and useFavoriteStore to useFavoriteList and useFavoriteDeleteMutation
  • Updates to router recent helper to use async operations with query client invalidation
  • Type updates changing FavoriteItem to FavoriteConfig for consistency

Reviewed Changes

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

Show a summary per file
File Description
UserConfigRecent.vue Fixed bug where recentConfig.id should be recentConfig.itemId for recent item lookups
ServiceAccountDeleteModal.vue Migrated from useRecentStore to useRecentDelete composable
Multiple project files Replaced useFavoriteStore with useFavoriteList and useFavoriteDeleteMutation
router/index.ts Updated router to use async recent config setting with query client
router-recent-helper.ts Refactored from synchronous to asynchronous recent config operations
Navigation and search modules Updated to use new user config approach and removed deprecated metric explorer functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -73,18 +73,18 @@ const state = reactive({
const convertRecentToReferenceData = (recentConfig: ConfigData): ReferenceData|undefined => {
const { itemType } = recentConfig;
if (itemType === RECENT_TYPE.DASHBOARD) {
return convertedRecentConfigData.convertedDashboard.value.find((d) => d.itemId === recentConfig.id);
return convertedRecentConfigData.convertedDashboard.value.find((d) => d.itemId === recentConfig.itemId);
Copy link
Preview

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

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

The change from recentConfig.id to recentConfig.itemId is correct and fixes a property access bug. The ConfigData interface uses itemId as the property name, not id.

Copilot uses AI. Check for mistakes.

Copy link
Member

@yuda110 yuda110 left a comment

Choose a reason for hiding this comment

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

LGTM!!

Copy link
Member

@sulmoJ sulmoJ left a comment

Choose a reason for hiding this comment

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

Cleeeeeeaaaaaaan

@@ -143,7 +140,7 @@ export const useTopBarSearchStore = defineStore('top-bar-search', () => {
};
watch([() => getters.trimmedInputText, () => state.activeTab], (trimmedText) => {
state.loading = true;
state.recentMenuList = [];
// state.recentMenuList = [];
Copy link
Member

Choose a reason for hiding this comment

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

Question: Why annotated all code related of recentMenuList?

@piggggggggy piggggggggy merged commit ca658e9 into cloudforet-io:develop Aug 22, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants