-
Notifications
You must be signed in to change notification settings - Fork 527
fix: Quick wins batch - #428, #433, #395, #396 #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
545103f
3e9a83c
3d23b3b
f486d71
7dbda3e
7f218da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1682,18 +1682,19 @@ Focus on practical, implementable suggestions that would genuinely improve the p | |
| * Used by both idea-to-feature conversion and suggestion-to-feature conversion. | ||
| */ | ||
| mapSuggestionCategoryToFeatureCategory(category: IdeaCategory): string { | ||
| // Use capitalized categories to match existing conventions (fixes #396) | ||
| const mapping: Record<IdeaCategory, string> = { | ||
| feature: 'ui', | ||
| 'ux-ui': 'enhancement', | ||
| dx: 'chore', | ||
| growth: 'feature', | ||
| technical: 'refactor', | ||
| security: 'bug', | ||
| performance: 'enhancement', | ||
| accessibility: 'enhancement', | ||
| analytics: 'feature', | ||
| feature: 'Feature', | ||
| 'ux-ui': 'UI', | ||
| dx: 'DX', | ||
| growth: 'Growth', | ||
| technical: 'Technical', | ||
| security: 'Security', | ||
| performance: 'Performance', | ||
| accessibility: 'Accessibility', | ||
| analytics: 'Analytics', | ||
| }; | ||
| return mapping[category] || 'feature'; | ||
| return mapping[category] || 'Feature'; | ||
| } | ||
|
Comment on lines
1684
to
1698
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
cd /root
# Check the imports and structure of ideation-service.ts
echo "=== Checking ideation-service.ts imports ==="
head -50 apps/server/src/services/ideation-service.ts
echo ""
echo "=== Search for category usage patterns in codebase ==="
# Look for where categories are defined or used with capitalized names
rg -n --type=ts --type=tsx "Feature|DX|Growth|Technical|Security|Performance|Accessibility|Analytics" -g '!*.test.*' -g '!node_modules' --max-count=20 | head -40
echo ""
echo "=== Search for lowercase category patterns ==="
rg -n --type=ts --type=tsx "feature|growth|technical|security|performance|accessibility|analytics" -C1 -g '!*.test.*' -g '!node_modules' --max-count=25 | head -50Repository: AutoMaker-Org/automaker Length of output: 1857 🏁 Script executed: #!/bin/bash
# Check for Feature category field definitions
echo "=== Searching for Feature category usage ==="
rg -n "category" -t ts --max-count=30 | grep -i feature | head -20
echo ""
echo "=== Check for Feature type definition ==="
rg -n "type Feature" -t ts
echo ""
echo "=== Search for where Feature objects are created ==="
rg -n "category.*Feature\|Feature.*category" -t ts | head -20
echo ""
echo "=== Look at feature-related files in services ==="
git ls-files apps/server/src/services/ | grep -i feature
echo ""
echo "=== Check database schemas or migrations for category values ==="
git ls-files | grep -E "(schema|migration|seed|fixture)" | head -10Repository: AutoMaker-Org/automaker Length of output: 3454 🏁 Script executed: #!/bin/bash
# Get Feature type definition
echo "=== Feature type definition ==="
cat -n libs/types/src/feature.ts | head -80
echo ""
echo "=== Search for both mapping methods in ideation-service ==="
rg -n "mapIdeaCategoryToFeatureCategory|mapSuggestionCategoryToFeatureCategory" -A 15 apps/server/src/services/ideation-service.ts
echo ""
echo "=== Check test fixtures for feature data ==="
cat -n apps/server/tests/fixtures/configs.ts | head -150Repository: AutoMaker-Org/automaker Length of output: 4841 🏁 Script executed: #!/bin/bash
# Find IdeaCategory type definition
echo "=== IdeaCategory type definition ==="
rg -n "type IdeaCategory|enum IdeaCategory" -A 10 libs/types/
echo ""
echo "=== Search for actual feature category values in code ==="
rg -n "category.*:" apps/server/src/ -t ts --max-count=40 | grep -E "(Feature|UI|DX|Growth|Technical|Security|Performance|Accessibility|Analytics|feature|ui|growth)" | head -30
echo ""
echo "=== Check for CategoryAutocomplete component (used in edit dialog) ==="
rg -n "CategoryAutocomplete" -A 30 apps/ui/src/components/ui/ 2>/dev/null | head -50Repository: AutoMaker-Org/automaker Length of output: 5974 🏁 Script executed: #!/bin/bash
# Search for actual feature category examples in project files/data
echo "=== Search for category values in feature data files ==="
find . -name "features.json" -o -name "*.feature.json" 2>/dev/null | head -5
echo ""
echo "=== Search for category patterns across the codebase ==="
rg -n '"category"' -A 1 apps/server/src/ -t ts --max-count=50 | head -80
echo ""
echo "=== Check where ideas/suggestions are created with categories ==="
rg -n "AnalysisSuggestion|suggestion.*category" -B 2 -A 2 apps/server/src/ -t ts | head -60Repository: AutoMaker-Org/automaker Length of output: 4845 🏁 Script executed: #!/bin/bash
# Find AnalysisSuggestion type definition
echo "=== AnalysisSuggestion type definition ==="
rg -n "interface AnalysisSuggestion|type AnalysisSuggestion" -A 15 libs/types/
echo ""
echo "=== Search for where suggestions are converted to features ==="
rg -n "suggestionToFeature|suggestion.*Feature" apps/server/src/ -t ts | head -20
echo ""
echo "=== Check add-suggestion route that uses mapSuggestionCategoryToFeatureCategory ==="
cat -n apps/server/src/routes/ideation/routes/add-suggestion.ts | head -80Repository: AutoMaker-Org/automaker Length of output: 3959 🏁 Script executed: #!/bin/bash
# Search for issue #396 references
echo "=== Search for issue #396 context ==="
rg -n "#396|396" apps/server/src -t ts -B 3 -A 3
echo ""
echo "=== Look for existing category patterns in board/feature displays ==="
rg -n "category" apps/ui/src/components/views/board-view.tsx -B 2 -A 2 | head -40
echo ""
echo "=== Check if there are any test files that show expected categories ==="
git ls-files | grep -i "test\|spec" | grep -i "ideation\|suggestion" | head -5Repository: AutoMaker-Org/automaker Length of output: 2238 🏁 Script executed: #!/bin/bash
# Check the ideation service test file
echo "=== Ideation service tests ==="
cat -n apps/server/tests/unit/services/ideation-service.test.ts | head -300Repository: AutoMaker-Org/automaker Length of output: 12614 🏁 Script executed: #!/bin/bash
# Search for mapping function tests
echo "=== Search for category mapping tests ==="
rg -n "mapSuggestionCategoryToFeatureCategory|mapIdeaCategoryToFeatureCategory" -B 2 -A 10 apps/server/tests/ -t ts
echo ""
echo "=== Check board view to see what categories are actually displayed ==="
cat -n apps/ui/src/components/views/board-view.tsx | sed -n '255,290p'
echo ""
echo "=== Search for example features with categories ==="
rg -n "'Feature'|'UI'|'DX'|'Growth'" apps/ -t ts -t tsx | grep -v node_modules | grep -v test | head -20Repository: AutoMaker-Org/automaker Length of output: 1928 🏁 Script executed: #!/bin/bash
# Search for where capitalized categories might be used
echo "=== Search for Capitalized category patterns ==="
rg -n "Feature|Growth|Technical|Security|Performance|Accessibility|Analytics|DX|UI" apps/server/src/services/ideation-service.ts -C 1 | grep -A 2 -B 2 "mapping\|1687\|1688\|1689\|1690"
echo ""
echo "=== Look at feature-loader to see how categories are persisted ==="
rg -n "category" apps/server/src/services/feature-loader.ts -B 2 -A 2 | head -50
echo ""
echo "=== Search for where idea-to-feature conversion is tested ==="
cat -n apps/server/tests/unit/services/ideation-service.test.ts | tail -200Repository: AutoMaker-Org/automaker Length of output: 9071 Category mapping standardizes format for consistency. The mapping converts lowercase IdeaCategory values to capitalized feature categories, preventing duplicate lowercase and capitalized variants that could result from inconsistent casing. The mapping is correctly applied in the add-suggestion route (line 52) and serves as the single source of truth for idea/suggestion-to-feature conversion. 🤖 Prompt for AI Agents |
||
|
|
||
| private async saveSessionToDisk( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 94
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 49
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 49
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 3211
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 49
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 879
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 1661
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 182
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 49
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 1001
🏁 Script executed:
# Check what's in the shared routes/common.js cat -n apps/server/src/routes/common.jsRepository: AutoMaker-Org/automaker
Length of output: 131
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 312
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 1076
🏁 Script executed:
# Check the structure of lib packages to see what's exported cat -n libs/utils/package.jsonRepository: AutoMaker-Org/automaker
Length of output: 1249
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 1343
🏁 Script executed:
# Check the main routes/common.ts file cat -n apps/server/src/routes/common.tsRepository: AutoMaker-Org/automaker
Length of output: 1271
🏁 Script executed:
# Check what's exported from @automaker/utils logger cat -n libs/utils/src/logger.tsRepository: AutoMaker-Org/automaker
Length of output: 8647
Move
logErrorto a shared package to comply with coding guidelines.Per coding guidelines, imports must use shared packages (
@automaker/*) rather than relative paths. Currently,logErroris imported from the relative path../common.js. ThecreateLogErrorfunction exists inapps/server/src/routes/common.tsbut is not exported from any shared package. Extract and exportcreateLogError(or a pre-configuredlogErrorfunction) from@automaker/utilsor a dedicated shared logger package, then import from there instead of using a relative path.🤖 Prompt for AI Agents