Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/src/entities/ai/ai.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ For each table, provide:
1. display_name: A human-readable name for the table
2. search_fields: Columns that should be searchable (text fields like name, email, title)
3. readonly_fields: Columns that should not be editable (like auto_increment, timestamps)
4. columns_view: All columns in preferred display order
4. columns_view: Up to six most important columns in preferred display order

Copilot AI Feb 26, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prompt text now says columns_view should be limited ("Up to six most important columns"), but there is another table-settings prompt in backend/src/ai-core/tools/prompts.ts that still states "All columns". Keeping two divergent prompt definitions for the same concept is likely to cause inconsistent AI outputs depending on which prompt is used; consider updating the other prompt as well or consolidating to a single shared prompt builder to avoid future drift.

Suggested change
4. columns_view: Up to six most important columns in preferred display order
4. columns_view: All columns in preferred display order

Copilot uses AI. Check for mistakes.
5. ordering: Default sort order - either "ASC" or "DESC" (use "DESC" for tables with timestamps to show newest first)
6. ordering_field: Column name to sort by default (prefer created_at, updated_at, or primary key)
7. widgets: For each column, suggest the best widget type from: ${widgetTypes}
Expand Down
Loading