Skip to content

Add Create Dashboard button in chat message#71

Merged
vkarpov15 merged 7 commits intomainfrom
codex/add-button-to-create-new-dashboard
Jul 16, 2025
Merged

Add Create Dashboard button in chat message#71
vkarpov15 merged 7 commits intomainfrom
codex/add-button-to-create-new-dashboard

Conversation

@vkarpov15
Copy link
Member

Summary

  • add Create Dashboard button in chat message scripts
  • pop modal for title/code and call createDashboard API
  • redirect to the created dashboard after creation

Testing

  • npm test (fails: Timeout of 2000ms exceeded)

https://chatgpt.com/codex/tasks/task_e_68781c4ab8108324881c632fbd2124ce

This comment was marked as outdated.

@vkarpov15 vkarpov15 requested a review from Copilot July 16, 2025 22:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a "Create Dashboard" feature to chat message scripts, allowing users to create dashboards directly from script code in chat messages. The implementation includes a modal dialog for entering dashboard details and handles API integration for dashboard creation.

  • Adds a "Create Dashboard" button to chat message script UI
  • Implements modal dialog with title input and code editor using CodeMirror
  • Integrates with dashboard creation API and handles error display

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
chat-message-script.js Adds dashboard creation functionality, modal state management, and API integration
chat-message-script.html Adds Create Dashboard button and modal dialog with form inputs and error handling

title: this.newDashboardTitle
}).catch(err => {
if (err.response?.data?.message) {
console.log(err.response.data);
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

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

Console.log statements should be removed from production code. Consider using a proper logging mechanism or remove this debug statement.

Copilot uses AI. Check for mistakes.
vkarpov15 and others added 5 commits July 16, 2025 18:05
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…:mongoosejs/studio into codex/add-button-to-create-new-dashboard
@vkarpov15 vkarpov15 merged commit 8893b95 into main Jul 16, 2025
13 checks passed
@vkarpov15 vkarpov15 deleted the codex/add-button-to-create-new-dashboard branch July 16, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants