From be0713c27c568c6b42cf677057f3eb8aa5f2de5c Mon Sep 17 00:00:00 2001 From: Darkingtail <1603774836@qq.com> Date: Thu, 12 Mar 2026 15:45:12 +0800 Subject: [PATCH 1/3] fix: remove unused imports and variables (part 2) Resolve oxlint no-unused-vars warnings in apps/web/core/ (excluding components/issues/). --- .../components/account/auth-forms/email.tsx | 2 +- .../account/auth-forms/password.tsx | 2 +- .../account/auth-forms/unique-code.tsx | 2 +- .../analytics/analytics-section-wrapper.tsx | 2 +- .../analytics/insight-table/data-table.tsx | 4 +- .../analytics/work-items/priority-chart.tsx | 2 +- .../work-items/workitems-insight-table.tsx | 2 +- .../components/archives/archive-tabs-list.tsx | 1 - .../components/comments/comment-create.tsx | 1 - .../components/comments/comment-reaction.tsx | 2 - .../common/activity/activity-item.tsx | 3 +- .../core/components/common/activity/user.tsx | 1 - .../web/core/components/common/count-chip.tsx | 1 - apps/web/core/components/common/pro-icon.tsx | 1 - .../core/components/core/list/list-root.tsx | 1 - .../components/core/theme/theme-switch.tsx | 1 - .../cycles/active-cycle/cycle-stats.tsx | 1 - .../cycles/active-cycle/productivity.tsx | 1 - .../cycles/active-cycle/progress.tsx | 1 - .../analytics-sidebar/issue-progress.tsx | 1 - .../analytics-sidebar/sidebar-details.tsx | 1 - .../analytics-sidebar/sidebar-header.tsx | 2 +- .../cycles/archived-cycles/view.tsx | 1 - .../core/components/cycles/cycles-view.tsx | 1 - .../cycles/list/cycle-list-group-header.tsx | 1 - .../list/cycle-list-project-group-header.tsx | 1 - apps/web/core/components/cycles/list/root.tsx | 1 - apps/web/core/components/cycles/modal.tsx | 4 +- .../empty-state/section-empty-state-root.tsx | 1 - .../components/estimates/create/modal.tsx | 1 - .../components/estimates/delete/modal.tsx | 2 +- .../estimates/estimate-disable-switch.tsx | 2 +- .../components/estimates/estimate-list.tsx | 1 - .../components/estimates/estimate-search.tsx | 1 - .../estimates/inputs/number-input.tsx | 1 - .../core/components/estimates/inputs/root.tsx | 1 - .../estimates/inputs/text-input.tsx | 1 - .../components/estimates/loader-screen.tsx | 1 - .../estimates/points/create-root.tsx | 2 +- .../components/estimates/points/create.tsx | 6 --- .../components/estimates/points/preview.tsx | 1 - .../core/components/exporter/export-form.tsx | 2 +- .../components/exporter/single-export.tsx | 1 - .../components/gantt-chart/chart/root.tsx | 1 - apps/web/core/components/gantt-chart/root.tsx | 1 - .../core/components/home/user-greetings.tsx | 1 - .../links/create-update-link-modal.tsx | 1 - .../components/home/widgets/links/links.tsx | 1 - .../components/home/widgets/manage/index.tsx | 1 - .../manage/widget-item-drag-handle.tsx | 1 - .../home/widgets/manage/widget-item.tsx | 3 +- .../home/widgets/recents/filters.tsx | 1 - .../inbox/content/inbox-issue-header.tsx | 1 - .../components/inbox/content/issue-root.tsx | 2 +- .../inbox-filter/applied-filters/date.tsx | 1 - .../inbox-filter/applied-filters/label.tsx | 1 - .../inbox-filter/applied-filters/member.tsx | 1 - .../inbox-filter/applied-filters/priority.tsx | 1 - .../inbox-filter/applied-filters/root.tsx | 1 - .../inbox-filter/applied-filters/state.tsx | 1 - .../inbox-filter/applied-filters/status.tsx | 1 - .../inbox/inbox-filter/filters/date.tsx | 1 - .../inbox-filter/filters/filter-selection.tsx | 4 -- .../inbox/inbox-filter/filters/labels.tsx | 1 - .../inbox/inbox-filter/filters/members.tsx | 1 - .../inbox/inbox-filter/filters/priority.tsx | 1 - .../inbox/inbox-filter/filters/state.tsx | 1 - .../inbox/inbox-filter/filters/status.tsx | 1 - .../components/inbox/inbox-filter/root.tsx | 1 - .../inbox/inbox-filter/sorting/order-by.tsx | 1 - .../modals/create-modal/issue-description.tsx | 2 +- .../modals/create-modal/issue-properties.tsx | 1 - .../inbox/modals/create-modal/issue-title.tsx | 1 - .../inbox/modals/create-modal/modal.tsx | 1 - .../inbox/sidebar/inbox-list-item.tsx | 2 +- .../components/inbox/sidebar/inbox-list.tsx | 1 - .../components/instance/maintenance-view.tsx | 1 - .../components/instance/not-ready-view.tsx | 1 - .../labels/create-update-label-inline.tsx | 6 +-- .../analytics-sidebar/issue-progress.tsx | 3 +- .../modules/archived-modules/header.tsx | 1 - .../modules/archived-modules/view.tsx | 1 - .../modules/links/create-update-modal.tsx | 1 - apps/web/core/components/modules/modal.tsx | 4 +- .../modules/module-list-item-action.tsx | 9 +--- .../modules/module-status-dropdown.tsx | 1 - .../components/modules/module-view-header.tsx | 1 - .../core/components/modules/quick-actions.tsx | 2 - .../customize-navigation-dialog.tsx | 1 - .../navigation/tab-navigation-root.tsx | 1 - .../web/core/components/onboarding/header.tsx | 1 - .../components/onboarding/invite-members.tsx | 2 +- .../onboarding/steps/common/header.tsx | 2 - .../onboarding/steps/profile/consent.tsx | 2 - .../onboarding/switch-account-dropdown.tsx | 1 - .../components/pages/editor/editor-body.tsx | 1 - .../pages/editor/toolbar/options-dropdown.tsx | 1 - .../core/components/pages/list/order-by.tsx | 4 +- .../components/power-k/ui/modal/footer.tsx | 1 - .../power-k/ui/modal/search-results.tsx | 1 - .../project-states/create-update/create.tsx | 2 +- .../core/components/project-states/root.tsx | 1 - .../components/project/dropdowns/order-by.tsx | 2 +- .../project/leave-project-modal.tsx | 2 +- .../core/components/sidebar/add-button.tsx | 1 - .../components/views/filters/order-by.tsx | 2 +- .../views/view-list-item-action.tsx | 1 - .../core/components/views/view-list-item.tsx | 1 - .../components/web-hooks/form/secret-key.tsx | 1 - .../notification-app-sidebar-option.tsx | 1 - .../billing/comparison/feature-detail.tsx | 3 +- .../hooks/use-collaborative-page-actions.tsx | 2 +- apps/web/core/services/analytics.service.ts | 2 +- apps/web/core/services/instance.service.ts | 2 +- .../issue/issue-details/relation.store.ts | 2 +- .../store/issue/issue-details/root.store.ts | 1 - .../core/store/issue/module/issue.store.ts | 2 +- .../issue/workspace-draft/issue.store.ts | 52 +++++++++++-------- .../core/store/pages/project-page.store.ts | 2 +- 119 files changed, 71 insertions(+), 169 deletions(-) diff --git a/apps/web/core/components/account/auth-forms/email.tsx b/apps/web/core/components/account/auth-forms/email.tsx index 8abddb42efa..2138753aaf6 100644 --- a/apps/web/core/components/account/auth-forms/email.tsx +++ b/apps/web/core/components/account/auth-forms/email.tsx @@ -4,7 +4,7 @@ * See the LICENSE file for details. */ -import type { FC, FormEvent } from "react"; +import type { FormEvent } from "react"; import { useMemo, useRef, useState } from "react"; import { observer } from "mobx-react"; // icons diff --git a/apps/web/core/components/account/auth-forms/password.tsx b/apps/web/core/components/account/auth-forms/password.tsx index 6fed9e88893..8ebe3c827d3 100644 --- a/apps/web/core/components/account/auth-forms/password.tsx +++ b/apps/web/core/components/account/auth-forms/password.tsx @@ -10,7 +10,7 @@ import Link from "next/link"; // icons import { Eye, EyeOff, Info, XCircle } from "lucide-react"; // plane imports -import { API_BASE_URL, E_PASSWORD_STRENGTH, AUTH_TRACKER_EVENTS, AUTH_TRACKER_ELEMENTS } from "@plane/constants"; +import { API_BASE_URL, E_PASSWORD_STRENGTH, AUTH_TRACKER_ELEMENTS } from "@plane/constants"; import { useTranslation } from "@plane/i18n"; import { Button } from "@plane/propel/button"; import { CloseIcon } from "@plane/propel/icons"; diff --git a/apps/web/core/components/account/auth-forms/unique-code.tsx b/apps/web/core/components/account/auth-forms/unique-code.tsx index aa65175b49d..9c4b8a6c189 100644 --- a/apps/web/core/components/account/auth-forms/unique-code.tsx +++ b/apps/web/core/components/account/auth-forms/unique-code.tsx @@ -41,7 +41,7 @@ const defaultValues: TUniqueCodeFormValues = { }; export function AuthUniqueCodeForm(props: TAuthUniqueCodeForm) { - const { mode, email, handleEmailClear, generateEmailUniqueCode, isExistingEmail, nextPath } = props; + const { mode, email, handleEmailClear, generateEmailUniqueCode, nextPath } = props; // derived values const defaultResetTimerValue = 5; // states diff --git a/apps/web/core/components/analytics/analytics-section-wrapper.tsx b/apps/web/core/components/analytics/analytics-section-wrapper.tsx index 9a3af1171b8..d46ce74b46b 100644 --- a/apps/web/core/components/analytics/analytics-section-wrapper.tsx +++ b/apps/web/core/components/analytics/analytics-section-wrapper.tsx @@ -16,7 +16,7 @@ type Props = { }; function AnalyticsSectionWrapper(props: Props) { - const { title, children, className, subtitle, actions, headerClassName } = props; + const { title, children, className, actions, headerClassName } = props; return (