Skip to content

fix(console): unused params in test mocks breaking tsc build#1101

Merged
hotlong merged 3 commits intomainfrom
copilot/fix-ci-errors-build-test-please-work
Mar 21, 2026
Merged

fix(console): unused params in test mocks breaking tsc build#1101
hotlong merged 3 commits intomainfrom
copilot/fix-ci-errors-build-test-please-work

Conversation

Copy link
Contributor

Copilot AI commented Mar 21, 2026

noUnusedParameters: true in apps/console/tsconfig.json causes TS6133 on two mock component declarations in ListToolbarActions.test.tsx, failing the tsc step in CI.

  • Prefixed unused props_props in ObjectKanban and ObjectCalendar vi.mock factories
-  ObjectKanban: (props: any) => <div data-testid="object-kanban">Kanban View</div>
+  ObjectKanban: (_props: any) => <div data-testid="object-kanban">Kanban View</div>
Original prompt

fix all ci errors, build and test


⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

@vercel
Copy link

vercel bot commented Mar 21, 2026

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

Project Deployment Actions Updated (UTC)
objectui-demo Ready Ready Preview, Comment Mar 21, 2026 8:04am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
objectui Ignored Ignored Mar 21, 2026 8:04am
objectui-storybook Ignored Ignored Mar 21, 2026 8:04am

Request Review

…s (TS6133)

Fix TypeScript noUnusedParameters errors in ListToolbarActions.test.tsx
lines 34 and 38 where mock component props were declared but not used.

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/d01cb686-bd58-4299-91af-8240dabcdc4c
Copilot AI changed the title [WIP] Fix all CI errors and ensure successful build and test fix(console): unused params in test mocks breaking tsc build Mar 21, 2026
Copilot AI requested a review from hotlong March 21, 2026 08:04
@hotlong hotlong marked this pull request as ready for review March 21, 2026 08:09
Copilot AI review requested due to automatic review settings March 21, 2026 08:09
@github-actions github-actions bot added documentation Improvements or additions to documentation apps tests labels Mar 21, 2026
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

Fixes a TypeScript build failure in apps/console caused by noUnusedParameters: true, by adjusting test mock component signatures so CI tsc no longer reports TS6133.

Changes:

  • Renamed unused mock component parameters from props to _props in ListToolbarActions.test.tsx to satisfy noUnusedParameters.
  • Added a corresponding Unreleased changelog entry documenting the CI/build fix.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/console/src/tests/ListToolbarActions.test.tsx Updates vi.mock component factories to avoid TS6133 by marking props intentionally unused.
CHANGELOG.md Documents the CI build fix under [Unreleased] → Fixed.

@github-actions
Copy link
Contributor

✅ Console Performance Budget

Metric Value Budget
Main entry (gzip) 57.2 KB 60 KB
Entry file index-WRTATjhr.js
Status PASS

📦 Bundle Size Report

Package Size Gzipped
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 1.17KB 0.53KB
auth (AuthProvider.js) 7.37KB 1.79KB
auth (ForgotPasswordForm.js) 4.91KB 1.66KB
auth (LoginForm.js) 5.00KB 1.64KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.85KB 1.86KB
auth (UserMenu.js) 3.40KB 1.22KB
auth (createAuthClient.js) 5.14KB 1.60KB
auth (createAuthenticatedFetch.js) 1.24KB 0.60KB
auth (index.js) 1.18KB 0.51KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 1.57KB 0.57KB
collaboration (CommentThread.js) 18.38KB 4.49KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 3.65KB 1.42KB
collaboration (index.js) 1.16KB 0.50KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 2001.25KB 462.57KB
core (index.js) 1.29KB 0.51KB
create-plugin (index.js) 10.13KB 3.17KB
data-objectstack (index.js) 44.50KB 10.95KB
fields (AddressField-DwN4O2oU.js) 0.11KB 0.13KB
fields (AutoNumberField-DMRyqbGR.js) 0.12KB 0.13KB
fields (AvatarField-BYQMePMt.js) 0.11KB 0.13KB
fields (BooleanField-CkSZJQgy.js) 0.11KB 0.13KB
fields (CodeField-Cmg8Kcy-.js) 0.11KB 0.12KB
fields (ColorField-Ba1vygx_.js) 0.11KB 0.12KB
fields (CurrencyField-CneSJDLJ.js) 0.11KB 0.13KB
fields (DateField-CPeAsL45.js) 0.11KB 0.12KB
fields (DateTimeField-XQF_4KsK.js) 0.11KB 0.13KB
fields (EmailField-B7oPI16p.js) 0.11KB 0.12KB
fields (FileField-CU5wtlQ5.js) 0.11KB 0.12KB
fields (FormulaField-BgtZRByi.js) 0.11KB 0.13KB
fields (GeolocationField-C9XIhtZ7.js) 0.12KB 0.14KB
fields (GridField-Cqk3vnOT.js) 0.11KB 0.12KB
fields (ImageField-CgnAjJBe.js) 0.11KB 0.12KB
fields (LocationField-lemhclMi.js) 0.11KB 0.13KB
fields (LookupField-CM9j7Pph.js) 32.03KB 8.36KB
fields (MasterDetailField-CAW8z1pm.js) 0.12KB 0.14KB
fields (NumberField-DxY5KyVA.js) 0.11KB 0.13KB
fields (ObjectField-DzFwJVJM.js) 0.11KB 0.13KB
fields (PasswordField-DL6czSEV.js) 0.11KB 0.13KB
fields (PercentField-DgepTVAn.js) 0.11KB 0.13KB
fields (PhoneField-BoIRqcFj.js) 0.11KB 0.12KB
fields (QRCodeField-DslM_jKY.js) 0.11KB 0.13KB
fields (RatingField-CvdSL_Q1.js) 0.11KB 0.13KB
fields (RichTextField-CVqYIJrY.js) 0.11KB 0.13KB
fields (SelectField-jQUCTFnY.js) 0.11KB 0.13KB
fields (SignatureField-bJweUeYo.js) 0.12KB 0.13KB
fields (SliderField-4IetNrki.js) 0.11KB 0.13KB
fields (SummaryField-CExQjQLV.js) 0.11KB 0.13KB
fields (TextAreaField-CbaNTvV-.js) 0.11KB 0.13KB
fields (TextField-CwjdXKTY.js) 0.11KB 0.12KB
fields (TimeField-BEepN1IR.js) 0.11KB 0.12KB
fields (UrlField-kt0NPjYT.js) 0.10KB 0.12KB
fields (UserField-BQfiUPb7.js) 0.11KB 0.12KB
fields (VectorField-Bdt_JYHO.js) 0.11KB 0.13KB
fields (index.js) 76.08KB 15.76KB
fields (jsx-runtime-Cafvjye_.js) 7.82KB 2.88KB
i18n (i18n.js) 2.03KB 0.77KB
i18n (index.js) 1.90KB 0.76KB
i18n (provider.js) 4.63KB 1.47KB
i18n (useObjectLabel.js) 4.51KB 1.61KB
layout (index.js) 88.09KB 24.91KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (index.js) 1.19KB 0.53KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 4.42KB 1.27KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.71KB 0.42KB
mobile (useResponsiveConfig.js) 1.36KB 0.63KB
mobile (useSpecGesture.js) 1.77KB 0.77KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 3.11KB 0.87KB
permissions (evaluator.js) 4.00KB 1.23KB
permissions (index.js) 0.85KB 0.40KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.52KB
permissions (usePermissions.js) 0.99KB 0.49KB
plugin-aggrid (AddressField-DKqaE9pD.js) 2.85KB 0.81KB
plugin-aggrid (AgGridImpl-BD5cjyc0.js) 6.39KB 2.24KB
plugin-aggrid (AutoNumberField-0RU2dNKe.js) 0.43KB 0.34KB
plugin-aggrid (AvatarField-IZTLB0Ye.js) 2.65KB 1.15KB
plugin-aggrid (BooleanField-DRzAZhSq.js) 1.23KB 0.58KB
plugin-aggrid (CodeField-RWhnDMyL.js) 0.86KB 0.53KB
plugin-aggrid (ColorField-B-YAFXdz.js) 1.26KB 0.59KB
plugin-aggrid (CurrencyField-Bu80a-sI.js) 1.52KB 0.80KB
plugin-aggrid (DateField-CV-NpLbM.js) 0.65KB 0.43KB
plugin-aggrid (DateTimeField--YTsgTjw.js) 0.82KB 0.48KB
plugin-aggrid (EmailField-B-3fWJsH.js) 0.88KB 0.53KB
plugin-aggrid (FileField-DxxdESfc.js) 5.67KB 2.05KB
plugin-aggrid (FormulaField-MQXJZOep.js) 0.64KB 0.46KB
plugin-aggrid (GeolocationField-BzKgcWLN.js) 4.10KB 1.48KB
plugin-aggrid (GridField-DHsGo9l2.js) 1.96KB 0.76KB
plugin-aggrid (ImageField-DK7sUV6b.js) 2.65KB 1.12KB
plugin-aggrid (LocationField-DSvhU9Dz.js) 1.00KB 0.59KB
plugin-aggrid (LookupField-BW9XwtRg.js) 33.82KB 8.96KB
plugin-aggrid (MasterDetailField-CPLHbe_Y.js) 3.40KB 1.14KB
plugin-aggrid (NumberField-JaSlPVXs.js) 0.76KB 0.50KB
plugin-aggrid (ObjectAgGridImpl-IvGW8hUB.js) 726.54KB 183.36KB
plugin-aggrid (ObjectField-FzUYlu-m.js) 1.63KB 0.82KB
plugin-aggrid (PasswordField-d6E-vKBI.js) 1.88KB 0.94KB
plugin-aggrid (PercentField-D2_kMuC_.js) 1.85KB 0.88KB
plugin-aggrid (PhoneField-DOaMivd6.js) 0.87KB 0.54KB
plugin-aggrid (QRCodeField-BIQhc73N.js) 3.27KB 1.25KB
plugin-aggrid (RatingField-BKAGmlzh.js) 2.05KB 0.93KB
plugin-aggrid (RichTextField-D4FIV9V8.js) 1.19KB 0.63KB
plugin-aggrid (SelectField-C2gtlnLZ.js) 1.05KB 0.56KB
plugin-aggrid (SignatureField-fFEb0h_C.js) 3.14KB 1.29KB
plugin-aggrid (SliderField-BlAlK3g2.js) 1.11KB 0.55KB
plugin-aggrid (SummaryField-Dy2Kkj6M.js) 0.60KB 0.45KB
plugin-aggrid (TextAreaField-BCUkjKTc.js) 1.12KB 0.64KB
plugin-aggrid (TextField-XWOnbUrk.js) 0.90KB 0.50KB
plugin-aggrid (TimeField-CZdzdqOO.js) 0.61KB 0.40KB
plugin-aggrid (UrlField-sq1mpRoG.js) 1.04KB 0.57KB
plugin-aggrid (UserField-Dqk38Arc.js) 2.62KB 0.98KB
plugin-aggrid (VectorField-CY70VLiW.js) 0.92KB 0.52KB
plugin-aggrid (createLucideIcon-CWx7zIL1.js) 1.47KB 0.84KB
plugin-aggrid (image-Cm7ExMY2.js) 0.36KB 0.26KB
plugin-aggrid (index.js) 10.33KB 2.43KB
plugin-aggrid (jsx-runtime-CGDkM_Jn.js) 7.83KB 2.89KB
plugin-aggrid (plus-CsEgF66K.js) 0.19KB 0.19KB
plugin-aggrid (upload-B1x-ueFd.js) 0.29KB 0.23KB
plugin-aggrid (x-Bwhzfvtg.js) 0.19KB 0.19KB
plugin-ai (index.js) 24.21KB 6.44KB
plugin-calendar (index.js) 44.58KB 12.81KB
plugin-charts (AdvancedChartImpl-DmHTUUVD.js) 117.89KB 24.15KB
plugin-charts (BarChart-XZkfLmcU.js) 520.70KB 126.24KB
plugin-charts (ChartImpl-0VlpsMWG.js) 3.62KB 1.17KB
plugin-charts (index.js) 8.33KB 2.48KB
plugin-charts (jsx-runtime-C8d0IhUE.js) 8.40KB 3.09KB
plugin-chatbot (index.js) 947.75KB 287.92KB
plugin-dashboard (index.js) 153.27KB 37.68KB
plugin-designer (index.js) 225.14KB 43.99KB
plugin-detail (AddressField-CBxrfkPw.js) 2.66KB 0.79KB
plugin-detail (AutoNumberField-DFZ5s4dV.js) 0.44KB 0.34KB
plugin-detail (AvatarField-DOw085wo.js) 2.40KB 1.09KB
plugin-detail (BooleanField-CA3vfoZa.js) 1.14KB 0.55KB
plugin-detail (CodeField-DVil5Nvp.js) 0.81KB 0.51KB
plugin-detail (ColorField-DHOsQ5Qf.js) 1.19KB 0.57KB
plugin-detail (CurrencyField-ygfdxPur.js) 1.47KB 0.78KB
plugin-detail (DateField-DDRu3G3f.js) 0.60KB 0.40KB
plugin-detail (DateTimeField-C3ml23j2.js) 0.78KB 0.46KB
plugin-detail (EmailField-DpRP3RBc.js) 0.83KB 0.51KB
plugin-detail (FileField-DEVu7g8e.js) 5.12KB 1.90KB
plugin-detail (FormulaField-B03TPdBb.js) 0.66KB 0.45KB
plugin-detail (GeolocationField-C8KqfH70.js) 3.31KB 1.23KB
plugin-detail (GridField-0_LRg_Le.js) 1.83KB 0.75KB
plugin-detail (ImageField-DJBgJcNA.js) 2.45KB 1.09KB
plugin-detail (LocationField-XhbJdFtn.js) 0.97KB 0.57KB
plugin-detail (LookupField-gyGi4x2Q.js) 30.39KB 8.23KB
plugin-detail (MasterDetailField-Crbix5hg.js) 2.90KB 0.99KB
plugin-detail (NumberField-Bo2o1X-I.js) 0.72KB 0.47KB
plugin-detail (ObjectField-ZP1ngoTo.js) 1.57KB 0.79KB
plugin-detail (PasswordField-C4V8aP7f.js) 1.13KB 0.66KB
plugin-detail (PercentField-B4ZPnvjp.js) 1.76KB 0.86KB
plugin-detail (PhoneField-Cr4rBN_p.js) 0.82KB 0.51KB
plugin-detail (QRCodeField-DAAedKTC.js) 2.15KB 0.93KB
plugin-detail (RatingField-GexzqPEA.js) 1.56KB 0.69KB
plugin-detail (RichTextField-6V6Jy9JM.js) 1.12KB 0.62KB
plugin-detail (SelectField-DhfKy7OE.js) 0.94KB 0.53KB
plugin-detail (SignatureField-B5pqX5dY.js) 2.81KB 1.15KB
plugin-detail (SliderField-ANwBBgl0.js) 1.04KB 0.53KB
plugin-detail (SummaryField-Df_86h4T.js) 0.62KB 0.45KB
plugin-detail (TextAreaField-GkAvfU1F.js) 1.07KB 0.62KB
plugin-detail (TextField-E_qGEOsG.js) 0.84KB 0.46KB
plugin-detail (TimeField-ClHdVPGb.js) 0.57KB 0.38KB
plugin-detail (UrlField-BrDgfdzG.js) 0.98KB 0.55KB
plugin-detail (UserField-KOyyaZ56.js) 2.43KB 0.95KB
plugin-detail (VectorField-B0xfmuuy.js) 0.92KB 0.52KB
plugin-detail (index.js) 132.18KB 28.91KB
plugin-detail (src-CGDK1qom.js) 3362.59KB 790.22KB
plugin-editor (MonacoImpl-BMgw4JKF.js) 17.97KB 5.53KB
plugin-editor (index.js) 1.61KB 0.74KB
plugin-editor (jsx-runtime-HjdTyiyb.js) 7.63KB 2.80KB
plugin-form (index.js) 60.57KB 13.62KB
plugin-gantt (index.js) 215.57KB 52.75KB
plugin-grid (index.js) 101.79KB 27.61KB
plugin-kanban (KanbanEnhanced-DFYgiTUn.js) 30.26KB 8.95KB
plugin-kanban (KanbanImpl-ii52_k8g.js) 13.33KB 4.07KB
plugin-kanban (chevron-down-DpXJN6OX.js) 0.15KB 0.18KB
plugin-kanban (index.js) 18.31KB 5.71KB
plugin-kanban (plus-CAtTu4zt.js) 9.05KB 3.47KB
plugin-kanban (sortable.esm-DzUCoMzQ.js) 59.36KB 17.43KB
plugin-list (index.js) 2012.58KB 469.11KB
plugin-map (chunk-vKJrgz-R.js) 1.18KB 0.67KB
plugin-map (index.js) 123.47KB 30.25KB
plugin-map (maplibre-gl-C3P0R4n-.js) 1330.08KB 296.95KB
plugin-markdown (MarkdownImpl-zSR34qzi.js) 220.69KB 53.61KB
plugin-markdown (index.js) 1.04KB 0.58KB
plugin-markdown (jsx-runtime-B1W8iDPg.js) 8.39KB 3.09KB
plugin-report (index.js) 77.40KB 16.24KB
plugin-timeline (index.js) 99.93KB 24.18KB
plugin-view (index.js) 124.14KB 33.52KB
plugin-workflow (index.js) 81.18KB 17.06KB
react (LazyPluginLoader.js) 3.77KB 1.33KB
react (SchemaRenderer.js) 9.04KB 2.82KB
react (index.js) 0.76KB 0.42KB
tenant (TenantContext.js) 0.31KB 0.25KB
tenant (TenantGuard.js) 1.04KB 0.43KB
tenant (TenantProvider.js) 2.76KB 0.98KB
tenant (TenantScopedQuery.js) 0.77KB 0.44KB
tenant (index.js) 0.75KB 0.38KB
tenant (resolver.js) 2.64KB 0.76KB
tenant (useTenant.js) 0.50KB 0.32KB
tenant (useTenantBranding.js) 0.62KB 0.39KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 0.99KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 0.20KB 0.18KB
types (crud.js) 0.20KB 0.18KB
types (data-display.js) 0.20KB 0.18KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 0.74KB 0.39KB
types (disclosure.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (index.js) 1.25KB 0.58KB
types (layout.js) 0.20KB 0.18KB
types (mobile.js) 0.20KB 0.18KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (tenant.js) 0.20KB 0.18KB
types (theme.js) 0.20KB 0.18KB
types (ui-action.js) 0.20KB 0.18KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB
types (workflow.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@hotlong hotlong merged commit c5e5142 into main Mar 21, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps documentation Improvements or additions to documentation tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants