Skip to content

Conversation

@ArgoZhang
Copy link
Member

@ArgoZhang ArgoZhang commented May 25, 2025

Link issues

fixes #6091

Summary By Copilot

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Merge the latest code from the main branch

Summary by Sourcery

Add a JitsiMeet-based Meet component with a corresponding demo page and menu entry

New Features:

  • Introduce a Meet component for embedding JitsiMeet video conferences with configurable options, command execution, and load callback
  • Provide a sample Meets page demonstrating the Meet component usage, including OnLoad event and chat toggle command

Build:

  • Add BootstrapBlazor.JitsiMeet package reference to the server project

Documentation:

  • Add 'Meet' menu entry in server localizer
  • Add Meet component entries in documentation JSON and en-US/zh-CN localization files

@bb-auto bb-auto bot added the enhancement New feature or request label May 25, 2025
@bb-auto bb-auto bot added this to the v9.6.0 milestone May 25, 2025
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented May 25, 2025

Reviewer's Guide

This PR adds a new “Meet” demo component powered by JitsiMeet by integrating it into the demo menu, updating localization and docs, introducing the package dependency, and providing both markup and code-behind for the sample with event callbacks and command execution.

Sequence Diagram for RunCommand Interaction in Meets Component

sequenceDiagram
    actor User
    participant MeetsPage as "Meets.razor (UI)"
    participant MeetsComponent as "Meets (Component)"
    participant MeetService as "Meet (JitsiMeet Component)"

    User->>MeetsPage: Clicks "Execute Command" button
    MeetsPage->>MeetsComponent: RunCommand()
    MeetsComponent->>MeetService: ExecuteCommand("toggleChat")
Loading

Class Diagram for the new Meets Component

classDiagram
    class ComponentBase {
        <<abstract>>
    }
    class Meets {
        - _option: MeetOption
        - _meet: Meet
        - _domain: string
        + ToastService: ToastService
        + OnInitialized() void
        + OnLoad() void
        + RunCommand() Task
    }
    class MeetOption {
        + RoomName: string
        + Width: string
        + Height: int
        + ConfigOverwrite: object
        + UserInfo: UserInfo
    }
    class UserInfo {
        + DisplayName: string
        + Email: string
    }
    class Meet {
        + ExecuteCommand(string commandName) Task
    }
    class ToastService {
        + Information(string title, string message) void
    }

    Meets --|> ComponentBase
    Meets o-- MeetOption
    Meets o-- Meet
    Meets ..> ToastService : uses
    MeetOption o-- UserInfo
Loading

File-Level Changes

Change Details Files
Demo menu integration
  • Added a new “Meet” menu item marked as IsNew
  • Localized the menu text and configured its route
src/BootstrapBlazor.Server/Extensions/MenusLocalizerExtensions.cs
Localization updates
  • Introduced “Meet” key in English JSON
  • Introduced “Meet” key in Chinese JSON
src/BootstrapBlazor.Server/Locales/en-US.json
src/BootstrapBlazor.Server/Locales/zh-CN.json
Documentation registration
  • Registered the Meets sample component in docs.json
src/BootstrapBlazor.Server/docs.json
Project dependency
  • Added the JitsiMeet client package reference to the server project
src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj
Sample component markup
  • Created Meets.razor with DemoBlock, PackageTips, and Meet component usage
src/BootstrapBlazor.Server/Components/Samples/Meets.razor
Sample component logic
  • Implemented Meets.razor.cs: initialized MeetOption, injected ToastService, handled OnLoad callback and ExecuteCommand
src/BootstrapBlazor.Server/Components/Samples/Meets.razor.cs

Assessment against linked issues

Issue Objective Addressed Explanation
#6091 Add a Meeting component to the BootstrapBlazor project.

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@ArgoZhang ArgoZhang enabled auto-merge (squash) May 25, 2025 01:50
@codecov
Copy link

codecov bot commented May 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ea34fd6) to head (fb0721b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #6092   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          701       701           
  Lines        30968     30968           
  Branches      4380      4380           
=========================================
  Hits         30968     30968           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ArgoZhang ArgoZhang disabled auto-merge May 25, 2025 01:50
@ArgoZhang ArgoZhang merged commit 5246cce into main May 25, 2025
6 checks passed
@ArgoZhang ArgoZhang deleted the feat-meeting branch May 25, 2025 01:51
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @ArgoZhang - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

<DemoBlock Title="使用JitsiMeet创建会议室" Introduction="使用JitsiMeet创建会议室,支持执行命令,支持OnLoad回调(meet.jit.si不会触发回调也不会响应命令,请使用8x8.vc或子托管域名测试)。例子中隐藏了内置的邀请程序,无法在会议中找到邀请链接。" Name="Normal">
<section class="row form-inline g-3">
<div class="col-12 col-sm-6">
<Display Value="_domain" DisplayText="服务器地址" ShowLabel="true"></Display>
Copy link
Contributor

Choose a reason for hiding this comment

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

issue (bug_risk): Use @-prefixed C# binding for Value parameter

Value="_domain" sets the parameter to the string "_domain" instead of the variable's value. Use Value="@_domain" to bind the variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(Meeting): add Meeting component

3 participants