Skip to content

Add detailed RBAC Use-Case Diagram with four roles#12

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/create-use-case-diagram
Draft

Add detailed RBAC Use-Case Diagram with four roles#12
Copilot wants to merge 3 commits intomainfrom
copilot/create-use-case-diagram

Conversation

Copy link

Copilot AI commented Nov 27, 2025

Enhances the Use-Case Diagram to incorporate role-based access control with four distinct roles: Admin, Contributor, Editor, and Viewer.

Changes

Actors

  • Admin: Full group control, member management, settlement approval
  • Contributor: Add/edit own expenses, view balances
  • Editor: Edit any expense, record settlements
  • Viewer: Read-only access

Use Cases (expanded from 25 to 29)

  • Split expense editing into "Edit Own Expense" (UC14) and "Edit Any Expense" (UC15)
  • Added "Approve Settlement Records" (UC22) for Admin
  • Added "Reports and Summaries" section (UC24-UC25)

Documentation

  • Comprehensive permission matrix with ✅/❌ indicators per role
  • Detailed use case specifications for key operations
  • UML relationships: «include» and «extend» notations
  • Role-based interaction summary
flowchart TB
    subgraph Actors["Actors"]
        Admin(("👔 Admin"))
        Contributor(("👤 Contributor"))
        Editor(("✏️ Editor"))
        Viewer(("👁️ Viewer"))
    end
    
    %% Example connections
    Admin --> UC5["Create Group"]
    Contributor --> UC12["Add Expense"]
    Editor --> UC15["Edit Any Expense"]
    Viewer --> UC13["View Expenses"]
Loading
Original prompt

Create a more detailed Use-Case Diagram for the WeSplit application, incorporating role-based access control (RBAC). The app includes four roles:

Roles:

  1. Admin:
    • Can create and manage groups, assign roles, and approve settlement records.
  2. Contributor:
    • Can add expenses, edit expenses they have created, and view group balances.
  3. Editor:
    • Can edit any expense and add settlements.
  4. Viewer:
    • Can only view groups and expenses.

Diagram Requirements:

  1. Actors:
    • Admin.
    • Contributor.
    • Editor.
    • Viewer.
  2. Primary Use Cases for each actor:
    • Admin: Manage groups and roles.
    • Contributor: Add/modify expenses, view balances.
    • Editor: Edit group expenses, record settlements.
    • Viewer: View reports and expense summaries.

Design the diagram using standard UML notation, formatting it to resemble the provided sample, showcasing all roles and corresponding use cases.

This pull request was created as a result of the following prompt from Copilot chat.

Create a more detailed Use-Case Diagram for the WeSplit application, incorporating role-based access control (RBAC). The app includes four roles:

Roles:

  1. Admin:
    • Can create and manage groups, assign roles, and approve settlement records.
  2. Contributor:
    • Can add expenses, edit expenses they have created, and view group balances.
  3. Editor:
    • Can edit any expense and add settlements.
  4. Viewer:
    • Can only view groups and expenses.

Diagram Requirements:

  1. Actors:
    • Admin.
    • Contributor.
    • Editor.
    • Viewer.
  2. Primary Use Cases for each actor:
    • Admin: Manage groups and roles.
    • Contributor: Add/modify expenses, view balances.
    • Editor: Edit group expenses, record settlements.
    • Viewer: View reports and expense summaries.

Design the diagram using standard UML notation, formatting it to resemble the provided sample, showcasing all roles and corresponding use cases.


💡 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 and others added 2 commits November 27, 2025 06:39
Co-authored-by: morshedalamdev <65453251+morshedalamdev@users.noreply.github.com>
Co-authored-by: morshedalamdev <65453251+morshedalamdev@users.noreply.github.com>
Copilot AI changed the title [WIP] Design use-case diagram for WeSplit application with RBAC Add detailed RBAC Use-Case Diagram with four roles Nov 27, 2025
Copilot AI requested a review from morshedalamdev November 27, 2025 06:42
@morshedalamdev
Copy link
Owner

@copilot this is not what I am looking for I am looking a full use case diagram not summary. and pratten should be as the image I gave.

Copy link
Author

Copilot AI commented Nov 27, 2025

@copilot this is not what I am looking for I am looking a full use case diagram not summary. and pratten should be as the image I gave.

I'd be happy to update the diagram to match your expected format. Could you please share the image or describe the specific pattern/format you're looking for? For example:

  • Should the diagram use a different notation (e.g., PlantUML instead of Mermaid)?
  • Are you looking for a specific visual layout (e.g., actors on left/right sides, use cases in an oval system boundary)?
  • Should the relationships be displayed differently?

Once I understand the desired format, I'll recreate the diagram accordingly.

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.

2 participants