Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughA new step was added to the GitHub Actions typecheck workflow to display Bun's typecheck configuration before running the typecheck. Separately, the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
frontend/src/features/wikibase-schema/components/ItemEditor.vue (1)
150-150: Inconsistent property usage between computed and template.The template still uses
schemaStore.labelsfor conditional styling while the computed propertylabelsDisplayTextwas changed to useschemaStore.labels1. This creates inconsistent behavior.Ensure both the computed property and template reference the same property:
- Object.keys(schemaStore.labels).length > 0 + Object.keys(schemaStore.labels1).length > 0Or revert the computed property change if
labels1doesn't exist.
🧹 Nitpick comments (1)
.github/workflows/typecheck.yml (1)
23-25: Rename the step to avoid confusion with the actual typecheck step.Having two steps with the same name "Typecheck code" creates ambiguity in CI logs and makes it difficult to distinguish between configuration display and actual typechecking.
- - name: Typecheck code + - name: Show typecheck configuration run: bun typecheck --showConfig
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/typecheck.yml(1 hunks)frontend/src/features/wikibase-schema/components/ItemEditor.vue(1 hunks)
🧰 Additional context used
🧠 Learnings (5)
📓 Common learnings
Learnt from: CR
PR: DaxServer/dataforge#0
File: .cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc:0-0
Timestamp: 2025-07-20T14:13:40.153Z
Learning: For more information, read the official Bun documentation at https://bun.sh/docs or check `node_modules/bun-types/docs/**.md` if available locally
📚 Learning: applies to **/*.{ts,tsx,js,jsx} : use `bun ` instead of `node ` or `ts-node ` for ...
Learnt from: CR
PR: DaxServer/dataforge#0
File: .cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc:0-0
Timestamp: 2025-07-20T14:13:40.153Z
Learning: Applies to **/*.{ts,tsx,js,jsx} : Use `bun <file>` instead of `node <file>` or `ts-node <file>` for running TypeScript or JavaScript files
Applied to files:
.github/workflows/typecheck.yml
📚 Learning: applies to **/*.test.{ts,tsx,js,jsx} : use `bun test` instead of `jest` for running tests...
Learnt from: CR
PR: DaxServer/dataforge#0
File: .cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc:0-0
Timestamp: 2025-07-20T14:13:40.153Z
Learning: Applies to **/*.test.{ts,tsx,js,jsx} : Use `bun test` instead of `jest` for running tests
Applied to files:
.github/workflows/typecheck.yml
📚 Learning: applies to package.json : use `bun install` instead of `npm install`, `yarn install`, or `pnpm insta...
Learnt from: CR
PR: DaxServer/dataforge#0
File: .cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc:0-0
Timestamp: 2025-07-20T14:13:40.153Z
Learning: Applies to package.json : Use `bun install` instead of `npm install`, `yarn install`, or `pnpm install` for dependency installation
Applied to files:
.github/workflows/typecheck.yml
📚 Learning: applies to package.json : use `bun run <script>` instead of `npm run <script>`, `yarn run <script>`,...
Learnt from: CR
PR: DaxServer/dataforge#0
File: .cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc:0-0
Timestamp: 2025-07-20T14:13:40.153Z
Learning: Applies to package.json : Use `bun run <script>` instead of `npm run <script>`, `yarn run <script>`, or `pnpm run <script>` for running scripts
Applied to files:
.github/workflows/typecheck.yml
🪛 GitHub Actions: Typecheck code
frontend/src/features/wikibase-schema/components/ItemEditor.vue
[error] 34-34: TypeScript error TS2551: Property 'labels1' does not exist on type 'Store'. Did you mean 'labels'?
[error] 37-37: TypeScript error TS18046: 'mapping' is of type 'unknown'.
|
|
||
| const labelsDisplayText = computed(() => { | ||
| const entries = Object.entries(schemaStore.labels) | ||
| const entries = Object.entries(schemaStore.labels1) |
There was a problem hiding this comment.
💡 Verification agent
🧩 Analysis chain
Fix TypeScript error: Property 'labels1' does not exist.
The pipeline failure confirms that labels1 property doesn't exist on the store type. This causes a compilation error and breaks the build.
- const entries = Object.entries(schemaStore.labels1)
+ const entries = Object.entries(schemaStore.labels)Verify the intended property name - was this supposed to be labels1 or should it remain schemaStore.labels?
🏁 Script executed:
#!/bin/bash
set -e
echo "1. Searching for any occurrences of 'labels1':"
rg "labels1" -n .
echo
echo "2. Locating all references to 'schemaStore' to find the store definition:"
rg "schemaStore" -n .
echo
echo "3. Listing files that mention 'schemaStore':"
STORE_FILES=$(rg -l "schemaStore" -n .)
echo "$STORE_FILES"
echo
echo "4. Inspecting each of those files for a 'labels' property:"
for file in $STORE_FILES; do
echo "---- $file ----"
rg -n "labels" "$file" || echo " (no 'labels' property found here)"
doneLength of output: 47900
Replace incorrect labels1 property usage
In frontend/src/features/wikibase-schema/components/ItemEditor.vue, TypeScript reports that labels1 does not exist on schemaStore. Replace it with the existing labels property:
--- a/frontend/src/features/wikibase-schema/components/ItemEditor.vue
+++ b/frontend/src/features/wikibase-schema/components/ItemEditor.vue
@@ 34,34c34
- const entries = Object.entries(schemaStore.labels1)
+ const entries = Object.entries(schemaStore.labels)This change aligns with all other references to schemaStore.labels and fixes the compilation error.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| const entries = Object.entries(schemaStore.labels1) | |
| const entries = Object.entries(schemaStore.labels) |
🧰 Tools
🪛 GitHub Actions: Typecheck code
[error] 34-34: TypeScript error TS2551: Property 'labels1' does not exist on type 'Store'. Did you mean 'labels'?
🤖 Prompt for AI Agents
In frontend/src/features/wikibase-schema/components/ItemEditor.vue at line 34,
the code incorrectly uses the non-existent property `labels1` on `schemaStore`.
Replace `labels1` with the correct existing property `labels` to fix the
TypeScript compilation error and maintain consistency with other references.
No description provided.