Repository navigation
fix(plugin): Fix some typos in the SDK - #23155
Conversation
…es typos and misinformation in the official plugins documentation
## Walkthrough
This set of changes addresses naming and typographical consistency across multiple files. Several constants and enum values related to data channel subscriptions were updated to correct casing inconsistencies, specifically standardizing on uppercase naming (e.g., `PLUGIN_DATA_CHANNEL_ALL_ITEMS`, `DataChannelTypes.ALL_ITEMS`). A recurring typo in the identifier `LayoutPresentatioAreaUiDataNames` was corrected to `LayoutPresentationAreaUiDataNames` throughout relevant files and documentation. The package dependency for "bigbluebutton-html-plugin-sdk" was updated from version `0.0.79` to `0.0.82`. Documentation was revised to fix typographical errors and clarify descriptions, with no changes to functional content.
## Sequence Diagram(s)
```mermaid
sequenceDiagram
participant UI_Component
participant DataChannelManager
participant Subscriptions
UI_Component->>DataChannelManager: Request data channel (type: ALL_ITEMS)
DataChannelManager->>Subscriptions: Subscribe using PLUGIN_DATA_CHANNEL_ALL_ITEMS
Subscriptions-->>DataChannelManager: Subscription data
DataChannelManager-->>UI_Component: Provide data channel updatesSuggested reviewers
|
|
This pull request has conflicts ☹ |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (5)
docs/docs/plugins.md (5)
179-179: Fix article usage in documentation heading.The phrase "Here is as complete
manifest.jsonexample..." contains an extra word. Consider updating to "Here is a completemanifest.jsonexample..." for correct English.Diff:
- Here is as complete `manifest.json` example with all possible configurations: + Here is a complete `manifest.json` example with all possible configurations:
712-712: Remove trailing punctuation in heading.The Markdown heading "### Auxiliary functions:" ends with a colon, which is flagged by markdownlint (MD026). Consider removing the trailing colon for consistency:
- ### Auxiliary functions: + ### Auxiliary functions🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
712-712: Trailing punctuation in heading
Punctuation: ':'(MD026, no-trailing-punctuation)
727-727: Use stronger verb for clarity.Instead of "it gives you information on the user-voice data…", consider "it provides information on user-voice data…". This makes the wording more concise and professional.
- - `useTalkingIndicator` hook: it gives you information on the user-voice data, that is, who is talking or muted. + - `useTalkingIndicator` hook: it provides information on user-voice data, that is, who is talking or muted.🧰 Tools
🪛 LanguageTool
[style] ~727-~727: Consider using a different verb to strengthen your wording.
Context: ... from. -useTalkingIndicatorhook: it gives you information on the user-voice data,...(GIVE_INFORMATION)
759-759: Improve comment grammar.The inline comment "Function replace a specific item" is missing the preposition "to". For consistency with other comments, update to:
- replaceEntry: replaceEntryFunction, // Function replace a specific item + replaceEntry: replaceEntryFunction, // Function to replace a specific item
933-935: Standardize bullet punctuation.The sublist under
fetchModeuses semicolons at the end of each item. For consistency and readability, consider ending each bullet with a period:- - `fetchMode`: It tells the plugin-server if it should fetch the data only when creating the meeting, or every time the function is called in the plugin portion; - - If one chooses `onMeetingCreate`, the data will be fetched when the create endpoint of the meeting is called, then it's cached in the plugin-server so that every time the plugin wants that data, the plugin-server will respond with the cached data; - - On the other hand, if `onDemand` is selected, every time the plugin calls this method, the plugin-server will fetch the data and then proxy it to the plugin; + - `fetchMode`: It tells the plugin-server if it should fetch the data only when creating the meeting, or every time the function is called in the plugin portion. + - If one chooses `onMeetingCreate`, the data will be fetched when the create endpoint of the meeting is called, then it's cached in the plugin-server so that every time the plugin wants that data, the plugin-server will respond with the cached data. + - On the other hand, if `onDemand` is selected, every time the plugin calls this method, the plugin-server will fetch the data and then proxy it to the plugin.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
bigbluebutton-html5/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (5)
bigbluebutton-html5/imports/ui/components/plugins-engine/data-channel/channel-manager/reader-manager.tsx(2 hunks)bigbluebutton-html5/imports/ui/components/plugins-engine/data-channel/subscriptions.ts(2 hunks)bigbluebutton-html5/imports/ui/components/plugins-engine/ui-data-hooks/layout/presentation-area/utils.ts(3 hunks)bigbluebutton-html5/package.json(1 hunks)docs/docs/plugins.md(9 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
bigbluebutton-html5/imports/ui/components/plugins-engine/data-channel/channel-manager/reader-manager.tsx (1)
bigbluebutton-html5/imports/ui/components/plugins-engine/data-channel/subscriptions.ts (1)
PLUGIN_DATA_CHANNEL_ALL_ITEMS(75-75)
🪛 GitHub Actions: Plugin SDK - Match version of html5 package.json with bigbluebutton.properties
bigbluebutton-html5/package.json
[error] 1-1: The bigbluebutton-html-plugin-sdk dependency is pointing to a commit in the SDK's repository, which is not allowed. Please update the dependency version.
🪛 markdownlint-cli2 (0.17.2)
docs/docs/plugins.md
712-712: Trailing punctuation in heading
Punctuation: ':'
(MD026, no-trailing-punctuation)
🪛 LanguageTool
docs/docs/plugins.md
[style] ~727-~727: Consider using a different verb to strengthen your wording.
Context: ... from. - useTalkingIndicator hook: it gives you information on the user-voice data,...
(GIVE_INFORMATION)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: build-package (others)
- GitHub Check: build-package (bbb-html5)
- GitHub Check: build-package (bbb-graphql-server)
- GitHub Check: build-package (bbb-playback-record)
🔇 Additional comments (14)
bigbluebutton-html5/imports/ui/components/plugins-engine/ui-data-hooks/layout/presentation-area/utils.ts (4)
3-3: LGTM: Import statement typo fixed correctlyThe typo in
LayoutPresentatioAreaUiDataNameshas been corrected toLayoutPresentationAreaUiDataNames(added missing 'n').
10-10: LGTM: Type annotation updated consistentlyThe type annotation correctly uses the fixed identifier name.
47-47: LGTM: Event dispatch uses corrected identifierThe
CustomEventdispatch correctly references the fixed constant name.
56-56: LGTM: Event listener strings updated consistentlyBoth the addEventListener and removeEventListener calls correctly use the fixed identifier name, ensuring proper event handling.
Also applies to: 63-63
bigbluebutton-html5/imports/ui/components/plugins-engine/data-channel/subscriptions.ts (2)
26-26: LGTM: Constant naming convention improvedGood fix to enforce consistent uppercase naming by changing
PLUGIN_DATA_CHANNEL_All_ITEMStoPLUGIN_DATA_CHANNEL_ALL_ITEMS.
75-75: LGTM: Export statement updated consistentlyThe export statement correctly reflects the renamed constant.
bigbluebutton-html5/imports/ui/components/plugins-engine/data-channel/channel-manager/reader-manager.tsx (3)
12-12: LGTM: Import statement updated to match renamed constantThe import correctly references the renamed
PLUGIN_DATA_CHANNEL_ALL_ITEMSconstant from subscriptions.ts.
58-59: LGTM: Enum case and subscription assignment updated consistentlyBoth the switch case and subscription assignment correctly use the updated naming convention.
62-62: LGTM: Default case updated consistentlyThe default case correctly uses the renamed constant.
docs/docs/plugins.md (5)
747-749: Review bullet formatting for data-channel hooks.The new bullet items for ALL_ITEMS and LATEST_ITEM are correct in content and casing. The descriptions align with expected behavior and naming conventions. No issues found here.
762-762: Confirmed correct default enum usage.The comment indicating
ALL_ITEMSas the default value foruseDataChannelis accurate and clear.
771-771: Confirm clarity of configuration note.The sentence describing that the data-channel name must be in the
manifest.jsonalong with permissions is precise and well phrased.
808-808: Confirm correctness ofuseUiDatahook description.The description for the
useUiDatahook is clear and accurate. No changes needed.
815-815: Confirm enum identifier correction.The updated enum identifier
LayoutPresentationAreaUiDataNames.CURRENT_ELEMENTmatches the code changes and is correctly documented.
|
Automated tests Summary✅ All the CI tests have passed! |



What does this PR do?
It fixes some typos in the data-channel and in the ui-data-hooks along with some other typos in the plugins documentation file.
Motivation
This adds not only consistency to the code but also will prevent us from having huge failures in the future.
More
Closely related PR (from the SDK): bigbluebutton/bigbluebutton-html-plugin-sdk#181
After the merge of this PR, the plugins' PRs need to be tweaked (with the latest version of SDK) and merged: