Skip to content

Conversation

vkarpov15
Copy link
Member

Summary

  • add an Edit modal on the team page so members' roles can be changed from a dropdown
  • block editing for owners and limit available roles when the workspace lacks a subscription
  • call the mothership updateWorkspaceMember endpoint to persist role changes

Testing

  • npm run lint

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

@vkarpov15 vkarpov15 marked this pull request as ready for review October 13, 2025 21:42
@vkarpov15 vkarpov15 requested a review from Copilot October 13, 2025 21:43
Copy link
Contributor

@Copilot 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 functionality to edit team member roles through a modal interface on the team page. The feature allows workspace administrators to change member roles via a dropdown selection while implementing proper access controls and subscription-based limitations.

  • Adds an edit modal with role selection dropdown for changing team member roles
  • Implements access controls preventing owners from being edited and limiting role options for workspaces without subscriptions
  • Integrates with backend API through new updateWorkspaceMember endpoint to persist role changes

Reviewed Changes

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

File Description
frontend/src/team/team.js Adds modal state management, role editing logic, and API integration for updating member roles
frontend/src/team/team.html Implements edit modal UI with role dropdown and updates existing remove modal consistency
frontend/src/mothership.js Adds new API client method for updating workspace member roles

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@vkarpov15 vkarpov15 merged commit 6013a38 into main Oct 13, 2025
26 checks passed
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.

1 participant