Skip to content

fix(i18n): the ru tab badge and reaction chip and the ar tab badge and comment thread read right at every count (objectui#10242) - #10415

Merged
os-litant merged 3 commits into
mainfrom
claude/issue-10242-ru-ar-count-labels
Sep 25, 2026
Merged

os-litant merged 3 commits into
mainfrom
claude/issue-10242-ru-ar-count-labels

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #10242
Clause-②: no

What was wrong

The tab-count badge's accessible name, the activity-feed reaction chip and the comment thread each pick their …One key at exactly one and the plain key at every other count. On the five values this card names, the plain key held a single noun form, which is wrong at some of the counts it serves: ru at 2-4 (few) and 21 (one), ar at 2 (two) and from 11 up (many, other).

In this body the i18next placeholders are spelled COUNT and EMOJI; the tree uses the double-brace form.

The pin reproduced the defect before any value changed: Tests 15 failed | 15 passed (30). The received strings were the shipped ones: 2 элементов, 21 элементов, 👍 2 реакций, 2 عناصر, 11 عناصر, and a thread header 2 تعليقات with tooltip 2 تفاعلات.

The change: the objectui#10024 device, key by key

The count-not-one half of the five values named on the card becomes a count label: a label, a colon, then the number, so no noun has to agree with it.

key pack before after
common.itemCount ru COUNT элементов Элементов: COUNT
detail.reactionCount ru EMOJI COUNT реакций EMOJI Реакций: COUNT
common.itemCount ar COUNT عناصر عدد العناصر: COUNT
collaboration.commentCount ar COUNT تعليقات عدد التعليقات: COUNT
collaboration.reactionCount ar COUNT تفاعلات عدد التفاعلات: COUNT
  • ru matches the controls that already read right on the same two-key convention, collaboration.commentCount (Комментариев: COUNT) and collaboration.reactionCount (Реакций: COUNT), and detail.repeaterItemCount (Элементов: COUNT).
  • ar uses the عدد …: COUNT shape of search.resultsCountPlural (objectui#10240), calendar.a11y.dayCell and ai.formAssist.suggestionCount. عدد ("number of") heads a fixed phrase with the definite plural, and the number follows the colon as a value, so the dual, 3-10, 11-99 and 100+ rules never apply.
  • So ru now reads right on the badge and the reaction chip, and ar on the badge and the comment thread. The ru comment thread already did. ar detail.reactionCount (the Arabic reaction chip) is not in this card's key list and is unchanged; see Acceptance notes.
  • The singular halves, the key set, the call sites and the other eight packs are unchanged. ⛔ No _few / _two key: all-locales-key-parity.test.ts holds every pack to en's key set.
  • .changeset/10242-ru-ar-count-labels.md declares a patch for @object-ui/i18n.

File surface: one file widened by the seat

The claim (comment 5822573875) named ru.ts, ar.ts, one pin and one changeset. The seat's amendment (comment 5824097794) added packages/i18n/src/__tests__/marketplace-preview-namespace-3546.test.tsx, for its premise assertion only.

That assertion required eight packs' common.itemCount to be COUNT, a space, then the unit noun, which pinned exactly the ru and ar values this card corrects. It is re-derived, not loosened: the other six packs keep the exact premise, and ru and ar expect their count label. The phrase checks on preview.history.items below it are untouched.

Pin

packages/app-shell/src/views/__tests__/countLabels.ruAr-10242.test.tsx, beside the objectui#10024 pin and in the same shape:

  • It uses a real i18next instance from createI18n, with the booted language asserted, and t is not mocked.
  • It renders each consumer for real (the reaction chip in en and ru only, since ar detail.reactionCount is outside the card). app-shell is the one package that depends on all three: page:tabs from @object-ui/components, ReactionPicker from @object-ui/plugin-detail, and CommentThread from @object-ui/collaboration. The reaction chip passes count as a number, so i18next's own plural lookup is in the path.
  • It covers the triage's representative counts, ru 2, 5 and 21 and ar 2, 3 and 11, plus 1 for the untouched singular half. en and the ru comment thread are controls.
  • It names the shipped-defect strings and reads the Intl.PluralRules categories.
  • It asserts the mechanism on the pack values: the count-not-one half ends in a colon then COUNT, and differs from its One half.

Evidence

The code evidence is at 6aa965ae7. HEAD f0645e02a changes only the changeset's prose: its opening sentence no longer claims Arabic on the reaction chip. At f0645e02a, check-changeset-presence, check:changeset-claims, check-changeset-no-major, -fixed, -overwrite, check:pending-changeset-literals, check:control-bytes and check:new-line-citations all exit 0.

  • Fix: the pin alone reads Tests 30 passed (30).
  • Ablation: it ran on the committed fix bac9cd4c5, which carries the values and the pin; the later commit changes only the marketplace premise. It used objectstack's ablation-replace.mjs, one nested leg per value, and every leg reported the mutation landed. Result: Tests 15 failed | 15 passed (30), identical to the reproduction. Every leg reported ok restored: blob == HEAD, an outer hash proof matched both packs to HEAD, and git diff HEAD was empty.
  • Affected tests: pnpm exec vitest run from the repo root read Test Files 83 passed (83), Tests 1493 passed (1493). The set was:
    • packages/i18n/ (including all-locales-key-parity and the marketplace suite);
    • the new pin, and the 10024, 9664 and 9266 pins;
    • defaults-maps-mirror-en-pack, page-tabs-count-badge-i18n, ReactionPicker.a11yNames;
    • comment-thread-i18n, comment-thread-no-provider-fallback, presence-avatars-i18n;
    • LocationField.residueI18n-6888, SettingsView.i18n-4024, and scripts/__tests__/check-i18n-dead-keys.test.ts.
  • Against current main: main moved after this branch was cut. It changed none of the touched files, but it did change packages/i18n/src/provider.tsx (objectui#10382), so this branch's diff was also applied to a70719765 in a throwaway tree. packages/i18n/ plus the pin and the consumer suites read Test Files 76 passed (76), Tests 1257 passed (1257).
  • Gates, all exit 0:
    • check:i18n-keys, check:i18n-drift ("No en value changed in this range") and check:i18n-dead-keys;
    • check:control-bytes, and check:new-line-citations ("0 new citation(s)");
    • check-changeset-presence, -no-major, -fixed and -overwrite ("1 changeset(s) added, 0 modified, 0 deleted");
    • check:changeset-claims, check:pending-changeset-literals, check-test-path-roots and check-vi-mock-override-shape.
  • Type-check:
    • @object-ui/i18n exits 0 at 6aa965ae7, after building its dependency closure.
    • @object-ui/app-shell exited 0 at bac9cd4c5, after turbo run build --filter=@object-ui/app-shell^... ran 28 of 28 tasks. The later commit does not touch app-shell. tsc -p packages/app-shell/tsconfig.test.json --listFilesOnly lists the new pin.
  • Lint: it covered the four touched code files only, with 0 errors and 0 warnings. eslint --print-config shows no parserOptions.project or projectService, so no type-aware linting runs, and this diff cannot move any untouched file's verdict. The full pnpm lint and pnpm test runs are CI's.

Acceptance notes

  • Same defect, outside this card's key list; filed by the seat at acceptance as objectui#10425. This is seven keys and eight values. Each sits behind a verified === 1 two-key switch, and none is changed here:
    • ar detail.reactionCount (ReactionPicker);
    • ar collaboration.presentUserCount and collaboration.moreUserCount (PresenceAvatars);
    • ru and ar list.recordCount (ListView);
    • ar lookup.recordCount (RecordPickerDialog);
    • ar detail.revisionFieldsChanged (PointInTimeRestore);
    • ar search.itemsAvailable (SearchResultsPage). Its value is also pinned in searchItemsAvailable-plural-9664.test.ts.
  • Arabic wording. The author is not a native speaker. The wording keeps to the precedent's device, عدد plus the definite plural. objectui#9266 used a bare definite label (العناصر: COUNT) for preview.history.items; the dispatch asked for the objectui#10240 form.
  • Singular halves. They are left as they were, and they are correct at exactly one.

Review-tier question

The closing sentence of .changeset/9664-search-items-available-plural.md says ar search.itemsAvailable "now uses the same noun pair that ar's common.itemCount/itemCountOne already uses". After this PR, ar common.itemCount carries that noun only as العناصر, inside a count label. The sentence is loosened, not falsified, because the lemma pair عنصر / عناصر is unchanged. It is left unedited because it is outside this card's surface. Does the review tier want it reworded before release?


Generated by Claude Code

…b badge, reaction chip and comment thread (objectui#10242)

The tab-count badge, the activity-feed reaction chip and the comment thread
pick their plain count key at every count but one. In ru and ar that key
held a single noun form, which is wrong at 2-4 and 21 in Russian and at 2
and 11+ in Arabic. The count-not-one half of five values becomes a count
label (the objectui#10024 device), with the key set and call sites unchanged.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BP8CMtACxTdLjqR6rhd33C
…count labels (objectui#10242)

The marketplace/preview namespace suite asserted, as a premise, that every
pack's common.itemCount is the count, a space, then the unit noun. That
pinned the exact ru and ar values this card turns into count labels. The
other six packs keep the exact premise; ru and ar expect their label.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BP8CMtACxTdLjqR6rhd33C
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3043.5 KB 3104.5 KB
Main entry chunk (gzip) 148.4 KB 350 KB
Entry file index-CFxyRA2s.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.68KB 6.20KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.52KB 3.45KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
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) 542.47KB 129.64KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 224.12KB 62.26KB
fields (index.js) 254.86KB 64.50KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.28KB 11.09KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.93KB
plugin-calendar (index.js) 51.44KB 14.62KB
plugin-charts (index.js) 72.54KB 20.26KB
plugin-chatbot (index.js) 198.27KB 47.18KB
plugin-dashboard (index.js) 133.45KB 35.33KB
plugin-designer (index.js) 216.12KB 44.37KB
plugin-detail (index.js) 260.94KB 67.93KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 146.34KB 37.47KB
plugin-gantt (index.js) 168.47KB 41.53KB
plugin-grid (index.js) 215.22KB 58.85KB
plugin-kanban (index.js) 49.30KB 15.39KB
plugin-list (index.js) 114.36KB 28.24KB
plugin-map (index.js) 22.05KB 7.14KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.55KB 11.99KB
plugin-timeline (index.js) 30.72KB 8.96KB
plugin-tree (index.js) 10.74KB 3.76KB
plugin-view (index.js) 85.86KB 21.38KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 114.58KB 37.60KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.78KB 2.56KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 18.27KB 6.20KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.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 (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
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 (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 17.15KB 6.32KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.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

…(objectui#10242)

The opening sentence claimed Arabic on the activity-feed reaction chip too,
but ar detail.reactionCount is not one of the five values this change
rewrites. Russian is now claimed on the badge and the reaction chip, Arabic
on the badge and the comment thread. A later sentence that read as if every
surface's plain key held a single noun form is scoped to the ones that did.
The frontmatter is unchanged.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BP8CMtACxTdLjqR6rhd33C
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3043.7 KB 3104.5 KB
Main entry chunk (gzip) 148.4 KB 350 KB
Entry file index-BFXgV1LC.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.68KB 6.20KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.52KB 3.45KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
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) 542.47KB 129.64KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 224.12KB 62.26KB
fields (index.js) 255.56KB 64.73KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.28KB 11.09KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.93KB
plugin-calendar (index.js) 51.44KB 14.62KB
plugin-charts (index.js) 72.54KB 20.26KB
plugin-chatbot (index.js) 198.27KB 47.18KB
plugin-dashboard (index.js) 133.45KB 35.33KB
plugin-designer (index.js) 216.12KB 44.37KB
plugin-detail (index.js) 260.94KB 67.93KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 146.34KB 37.47KB
plugin-gantt (index.js) 168.47KB 41.53KB
plugin-grid (index.js) 215.22KB 58.85KB
plugin-kanban (index.js) 49.30KB 15.39KB
plugin-list (index.js) 114.36KB 28.24KB
plugin-map (index.js) 22.05KB 7.14KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.55KB 11.99KB
plugin-timeline (index.js) 30.72KB 8.96KB
plugin-tree (index.js) 10.74KB 3.76KB
plugin-view (index.js) 85.86KB 21.38KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 114.58KB 37.60KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.78KB 2.56KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 18.27KB 6.20KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.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 (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
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 (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 17.15KB 6.32KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f0645e02afc8f213f48f716aaced37f71a76b58c

Rendered by an isolated review subagent spawned by the domain:ui#4 seat; its served tier was checked against its transcript stamps (145 of 145 model stamps at the review tier). Adopted by this seat. Focused re-review of patch round 1; the prior record at 6aa965ae71f7be57e0d1b3128e3854faad14a0d5 covers the unchanged code.

① Derived judgments

  • (a) PASS. git diff --name-status 6aa965ae71f7be57e0d1b3128e3854faad14a0d5 f0645e02afc8f213f48f716aaced37f71a76b58c lists one path, M .changeset/10242-ru-ar-count-labels.md. The diff is two prose hunks: the opening sentence, and the sentence now reading "Where the plain key held a single noun form, it was wrong at some of the counts it serves." The three frontmatter lines (---, '@object-ui/i18n': patch, ---) hash identically at both shas (sha256 d47ab50086c3…), byte-identical.
  • (b) PASS. Every sentence of the changeset at head is true against the tree at head.
    • Opening sentence: ru common.itemCount (the tab-count badge aria-label, packages/components/src/renderers/layout/containers.tsx) and ru detail.reactionCount (the chip in packages/plugin-detail/src/ReactionPicker.tsx) are rewritten; ar common.itemCount (badge), ar collaboration.commentCount (thread header) and ar collaboration.reactionCount (thread reaction title tooltip, packages/collaboration/src/CommentThread.tsx) are rewritten. Arabic is no longer claimed on the reaction chip: ar detail.reactionCount is {{emoji}} {{count}} تفاعلات at head and at the merge base, unchanged, and no sentence now covers it.
    • "picks its …One key at exactly one and the plain key at every other count": the four call sites switch on Number(item.count) === 1, reaction.count === 1, comments.length === 1 and userIds.length === 1.
    • The before-strings (2 элементов, 21 элементов, 2 реакций; the Arabic three-to-ten plurals عناصر / تعليقات / تفاعلات) match the merge-base values {{count}} элементов, {{emoji}} {{count}} реакций, {{count}} عناصر, {{count}} تعليقات, {{count}} تفاعلات. The grammar statements (Russian needs 2 элемента and 21 элемент; the Arabic plural is wrong at two and from eleven up) are correct.
    • The five bullets match the head values: Элементов: {{count}}, {{emoji}} Реакций: {{count}}, عدد العناصر: {{count}}, عدد التعليقات: {{count}}, عدد التفاعلات: {{count}}.
    • Precedent sentence: .changeset/10024-search-results-count-plural-forms.md and commit a507334d2 (card objectui#10024, merged as PR 10240) rewrote search.resultsCountPlural in both packs to the same count-label device; ru collaboration.commentCount is Комментариев: {{count}} and collaboration.reactionCount is Реакций: {{count}}.
    • "The singular halves, the key set, the call sites and the other eight packs are unchanged": the ru and ar diffs are exactly the five value lines plus comments, no key added or removed; no consumer file is in the surface; ten packs exist (ar de en es fr ja ko pt ru zh), so eight are untouched.
    • The file has no angle brackets, no {{…}} placeholder (it writes N), and no line-address citation; it publishes verbatim.
  • (c) Proposed title: TRUE. Each of the four named surfaces is rewritten in the named pack, and it names nothing else; it carries no closing keyword (fix(i18n): is a conventional-commit type, not fix #N). Proposed body, every factual sentence checked:
    • The before/after table matches the merge-base and head values exactly, in the COUNT/EMOJI spelling the body declares.
    • Controls and precedents at head: ru collaboration.commentCount Комментариев: {{count}}, collaboration.reactionCount Реакций: {{count}}, detail.repeaterItemCount Элементов: {{count}}; ar search.resultsCountPlural عدد نتائج البحث عن "{{query}}": {{count}}, calendar.a11y.dayCell {{date}}، عدد الأحداث: {{count}}, ai.formAssist.suggestionCount عدد الاقتراحات: {{count}}; ar preview.history.items العناصر: {{count}} (objectui#9266). The dispatch (issue comments 5818544805 and 5822573875) asked for the objectui#10240 shape.
    • Comment 5822573875 is the claim naming ru.ts, ar.ts, one pin and one changeset; comment 5824097794 is the seat's amendment adding the marketplace test "for its premise assertion only". Both sit on issue 10242. The marketplace change is an exact-string re-derivation (ITEM_COUNT_LABEL[lang] ?? ...), not a loosening, and the preview.history.items checks below it are untouched.
    • Acceptance-notes list, seven keys / eight values, each spot-checked at head and each outside the ru/ar diff hunks, so unchanged: ar detail.reactionCount {{emoji}} {{count}} تفاعلات (reaction.count === 1, ReactionPicker); ar collaboration.presentUserCount {{count}} مستخدمين متواجدين (users.length === 1) and collaboration.moreUserCount {{count}} مستخدمين آخرين (overflowCount === 1), PresenceAvatars; ru list.recordCount {{count}} записей and ar list.recordCount {{count}} سجلات (totalCount === 1, ListView); ar lookup.recordCount {{count}} سجل (totalCount === 1, RecordPickerDialog); ar detail.revisionFieldsChanged تم تغيير {{count}} حقول (revision.changes.length === 1, PointInTimeRestore); ar search.itemsAvailable {{count}} عناصر متاحة (allItems.length === 1, SearchResultsPage), also pinned at line 68 of packages/i18n/src/__tests__/searchItemsAvailable-plural-9664.test.ts. The ru lookup.recordCount and detail.revisionFieldsChanged values are already count labels, consistent with the list naming only ar for those keys.
    • Pin sentences: the pin sits beside SearchResultsPage.resultsCountPlural-10024.test.tsx; it uses createI18n, asserts i18n.language, and has no vi.mock; it renders page:tabs and CommentThread for en/ru/ar and ReactionPicker for en/ru only; Reaction.count is number in packages/types/src/views.ts; the counts are ru 1/2/5/21, ar 1/2/3/11, en 1/2; the mechanism test matches /: \{\{count\}\}$/ and asserts not.toBe the One half. The 30-test / 15-failing arithmetic follows from its tables.
    • Evidence sentences: 6aa965ae7 differs from bac9cd4c5 only in the marketplace test; main changed 34 files since the merge base 721d1e0085b9027e2439d1a2beaea81a7f723836, none of the five PR files; provider.tsx was changed by 5e67837e8 (objectui#10382), an ancestor of a70719765, itself on origin/main. All fourteen named gate scripts exist at head; scripts/ablation-replace.mjs exists in objectstack; eslint.config.js has no projectService or parserOptions.project; packages/app-shell/tsconfig.test.json includes src/**/*.test.tsx. Local run results (test counts, gate exit codes, type-check, lint) are the dev's report and were not re-run here; CI on the head is green (③).
    • FLAG, one sentence overstated: "That assertion required every pack's common.itemCount to be COUNT, a space, then the unit noun." The loop it describes iterates the test's UNIT table, eight packs (zh ja de fr es pt ru ar); ko is asserted separately as {{count}}개 항목 with no space, and en is not asserted for common.itemCount anywhere in that file. The next sentence, "the other six packs keep the exact premise", carries the correct count. The seat writes "eight packs'" in place of "every pack's" when it writes the body.
    • FLAG, forward commitment not yet met: "filed by the seat at acceptance." As of 2026-09-25T00:17Z no issue in the repo names presentUserCount, moreUserCount or revisionFieldsChanged. The sentence becomes true only when the seat files that issue at acceptance.
    • Note, not a flag: "app-shell is the one package that depends on all three" holds for packages/*; apps/console/package.json also lists all three, and it is an app, not a package.
    • Scanned the proposed title, the proposed body and the current body for model and version identifiers: none.
  • (d) PASS. No code file moved: the prev-to-head diff is the changeset alone, and the whole-PR surface is unchanged. The earlier PASS items (placeholders, readings, marketplace premise, pin arithmetic, semver patch) carry over.

② Semver level

patch on @object-ui/i18n, never major. The frontmatter at head is byte-identical to the previously reviewed head ('@object-ui/i18n': patch), and the change is five locale string values with no key added, removed or renamed, no export change and no consumer change. Correct level.

③ Boundary flags

  • Closing keywords: Fixes #10242 is the only closing keyword in the current body and in the proposed body (line 1 of each). No other close/fix/resolve plus #N pair in either.
  • New commit f0645e02afc8f213f48f716aaced37f71a76b58c, message and trailers: subject docs(changeset): claim Arabic only on the surfaces this change fixes (objectui#10242); the trailers are a Co-authored-by line naming "Claude" and a Claude-Session URL for this session. Scanned the message, trailers, author and committer fields for model and version identifiers: none.
  • File surface: exactly the five declared files across the whole PR (merge base to head): .changeset/10242-ru-ar-count-labels.md (A), packages/app-shell/src/views/__tests__/countLabels.ruAr-10242.test.tsx (A), packages/i18n/src/__tests__/marketplace-preview-namespace-3546.test.tsx (M), packages/i18n/src/locales/ar.ts (M), packages/i18n/src/locales/ru.ts (M).
  • mergeable_state: unknown on the first two reads, then behind at 00:15:06Z, unstable at 00:16:08Z and clean at 00:17:09Z once the last run finished. Final: clean.
  • Check-runs on f0645e02afc8f213f48f716aaced37f71a76b58c: polled in the foreground at 60-second ticks; every run had completed by the third tick, about two minutes in. Final: 43 runs, 40 success, 3 skipped, 0 failure, 0 in_progress. The three non-success runs are all skipped: Test (coverage shard ${{ matrix.shard }}/4), Test (coverage), dependabot.

Implemented-by: claude/issue-10242-ru-ar-count-labels
Reviewed-by: session_01BP8CMtACxTdLjqR6rhd33C

VERDICT: PASS

Seat note: both flagged body sentences are corrected in the body written in this act. The loop covers eight packs, not every pack, and the sibling-keys card is filed as objectui#10425.


Generated by Claude Code

@objectstack-fleet objectstack-fleet Bot changed the title fix(i18n): ru and ar count labels read right at every count on the tab badge, reaction chip and comment thread (objectui#10242) fix(i18n): the ru tab badge and reaction chip and the ar tab badge and comment thread read right at every count (objectui#10242) Sep 25, 2026
@os-litant
os-litant marked this pull request as ready for review September 25, 2026 00:24
@os-litant
os-litant added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit 3335767 Sep 25, 2026
45 checks passed
@os-litant
os-litant deleted the claude/issue-10242-ru-ar-count-labels branch September 25, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants