Skip to content

Commit 0efb595

Browse files
dpageclaude
andcommitted
Replace misleading AI thinking messages with fun elephant-themed ones.
The previous messages like "Vacuuming the catalog..." and "Analyzing table statistics..." could be mistaken for actual database operations. Replace them with clearly whimsical elephant-themed messages, and expand the pool to 32 messages in each file. Fixes #9702 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a0e6da0 commit 0efb595

File tree

3 files changed

+65
-21
lines changed

3 files changed

+65
-21
lines changed

docs/en_US/release_notes_9_14.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ Bug fixes
3030

3131
| `Issue #9279 <https://github.com/pgadmin-org/pgadmin4/issues/9279>`_ - Fixed an issue where OAuth2 authentication fails with 'object has no attribute' if OAUTH2_AUTO_CREATE_USER is False.
3232
| `Issue #9392 <https://github.com/pgadmin-org/pgadmin4/issues/9392>`_ - Ensure that the Geometry Viewer refreshes when re-running queries or switching geometry columns, preventing stale data from being displayed.
33+
| `Issue #9702 <https://github.com/pgadmin-org/pgadmin4/issues/9702>`_ - Fixed misleading AI activity messages that could be mistaken for actual database operations.
3334
| `Issue #9721 <https://github.com/pgadmin-org/pgadmin4/issues/9721>`_ - Fixed an issue where permissions page is not completely accessible on full scroll.

web/pgadmin/static/js/Explain/AIInsights.jsx

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,41 @@ const LoadingContainer = styled(Box)({
131131
gap: '16px',
132132
});
133133

134-
// PostgreSQL/Elephant themed thinking messages
134+
// Fun elephant-themed thinking messages (avoid anything that sounds
135+
// like a real database operation, as that can be misleading).
135136
const THINKING_MESSAGES = [
136-
gettext('Analyzing query plan...'),
137-
gettext('Examining node costs...'),
138-
gettext('Looking for sequential scans...'),
139-
gettext('Checking index usage...'),
140-
gettext('Evaluating join strategies...'),
141-
gettext('Identifying bottlenecks...'),
142-
gettext('Calculating row estimates...'),
143-
gettext('Reviewing execution times...'),
137+
gettext('Consulting the elephant...'),
138+
gettext('Querying the watering hole...'),
139+
gettext('Trumpeting for answers...'),
140+
gettext('Herding the elephants...'),
141+
gettext('Pondering pachyderm thoughts...'),
142+
gettext('Flapping those big ears...'),
143+
gettext('Following the elephant trail...'),
144+
gettext('Foraging for ideas...'),
145+
gettext('Munching on some peanuts...'),
146+
gettext('Doing a trunk stand...'),
147+
gettext('Remembering everything...'),
148+
gettext('Migrating across the plains...'),
149+
gettext('Shaking off the dust...'),
150+
gettext('Tiptoeing through the tulips...'),
151+
gettext('Taking a mud bath...'),
152+
gettext('Polishing the tusks...'),
153+
gettext('Stretching the trunk...'),
154+
gettext('Packing the trunk...'),
155+
gettext('Wading through the river...'),
156+
gettext('Gathering the herd...'),
157+
gettext('Listening with big ears...'),
158+
gettext('Joining the herds...'),
159+
gettext('Rolling back the peanuts...'),
160+
gettext('Charging through the tall grass...'),
161+
gettext('Stomping through the jungle...'),
162+
gettext('Swishing the trunk...'),
163+
gettext('Calling the herd...'),
164+
gettext('Splashing in the watering hole...'),
165+
gettext('Raising the trunk in triumph...'),
166+
gettext('Thundering across the savanna...'),
167+
gettext('Napping under the baobab tree...'),
168+
gettext('Tromping through the underbrush...'),
144169
];
145170

146171
function getRandomThinkingMessage() {

web/pgadmin/tools/sqleditor/static/js/components/sections/NLQChatPanel.jsx

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -139,23 +139,41 @@ const MESSAGE_TYPES = {
139139
ERROR: 'error',
140140
};
141141

142-
// Elephant/PostgreSQL-themed processing messages
142+
// Fun elephant-themed processing messages (avoid anything that sounds
143+
// like a real database operation, as that can be misleading).
143144
const THINKING_MESSAGES = [
144145
'Consulting the elephant...',
145-
'Traversing the B-tree...',
146-
'Vacuuming the catalog...',
147-
'Analyzing table statistics...',
148146
'Joining the herds...',
149-
'Indexing the savanna...',
150147
'Querying the watering hole...',
151-
'Optimizing the plan...',
152-
'Warming up the cache...',
153-
'Gathering the tuples...',
154-
'Scanning the relations...',
155-
'Checking constraints...',
156148
'Rolling back the peanuts...',
157-
'Committing to memory...',
158-
'Trumpeting the results...',
149+
'Trumpeting for answers...',
150+
'Herding the elephants...',
151+
'Foraging for ideas...',
152+
'Pondering pachyderm thoughts...',
153+
'Charging through the tall grass...',
154+
'Flapping those big ears...',
155+
'Stomping through the jungle...',
156+
'Swishing the trunk...',
157+
'Calling the herd...',
158+
'Splashing in the watering hole...',
159+
'Following the elephant trail...',
160+
'Munching on some peanuts...',
161+
'Doing a trunk stand...',
162+
'Remembering everything...',
163+
'Migrating across the plains...',
164+
'Shaking off the dust...',
165+
'Tiptoeing through the tulips...',
166+
'Taking a mud bath...',
167+
'Polishing the tusks...',
168+
'Stretching the trunk...',
169+
'Packing the trunk...',
170+
'Wading through the river...',
171+
'Gathering the herd...',
172+
'Tromping through the underbrush...',
173+
'Listening with big ears...',
174+
'Raising the trunk in triumph...',
175+
'Thundering across the savanna...',
176+
'Napping under the baobab tree...',
159177
];
160178

161179
// Helper function to get a random thinking message

0 commit comments

Comments
 (0)