Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 14, 2025

Admins needed to navigate through multiple pages (app list → profile → admin panel → apps → search → edit) to edit an app they were actively using. This adds a direct "Edit App" button in the app menu, reducing the workflow from 7-8 clicks to 2.

Changes

  • ChatActionsMenu component: Added admin-only menu item that navigates to /admin/apps/{appId}/edit

    • Conditionally rendered when user?.isAdmin && appId
    • Positioned at top of dropdown for discoverability
    • Automatically available in both chat and canvas modes via shared component hierarchy
  • Internationalization: Added pages.appChat.editApp translations (EN: "Edit App", DE: "App bearbeiten")

Implementation

// client/src/features/chat/components/ChatActionsMenu.jsx
import { useAuth } from '../../../shared/contexts/AuthContext';
import { useNavigate } from 'react-router-dom';

const ChatActionsMenu = ({ appId, ... }) => {
  const { user } = useAuth();
  const navigate = useNavigate();
  
  return (
    <div className="menu">
      {user?.isAdmin && appId && (
        <button onClick={() => navigate(`/admin/apps/${appId}/edit`)}>
          <Icon name="edit" /> {t('pages.appChat.editApp')}
        </button>
      )}
      {/* existing menu items */}
    </div>
  );
};

Frontend visibility check only; backend admin authorization remains enforced via existing middleware.

Original prompt

This section details on the original issue you should resolve

<issue_title>Quick App Edit Action for Admins</issue_title>
<issue_description>It should be possible to modify apps easily. Right now when I use an app and I want to modify it, I have to open the admin dashboard, navigate to apps, find the app and edit it.
It should be possible to jump to "edit app" from within an app directly (only visible for admins).</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add quick edit action for apps for admins Add quick edit action for admins in app menu Nov 14, 2025
Copilot AI requested a review from manzke November 14, 2025 10:19
@manzke manzke marked this pull request as ready for review November 14, 2025 10:37
@manzke manzke merged commit f47cc8a into main Nov 14, 2025
3 checks passed
@manzke manzke deleted the copilot/add-quick-app-edit-action branch November 14, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quick App Edit Action for Admins

2 participants