Skip to content

doc:Fix typo in form validation documentation#40163

Open
Pavani12314 wants to merge 1 commit intoRocketChat:developfrom
Pavani12314:patch-1
Open

doc:Fix typo in form validation documentation#40163
Pavani12314 wants to merge 1 commit intoRocketChat:developfrom
Pavani12314:patch-1

Conversation

@Pavani12314
Copy link
Copy Markdown

@Pavani12314 Pavani12314 commented Apr 15, 2026

Description

Fixes a small typo in documentation.

Changes

  • Improved grammar in form-validation.md

Notes

This is a minor documentation improvement.

Summary by CodeRabbit

  • Documentation
    • Updated form validation documentation with minor grammatical corrections and punctuation improvements for enhanced clarity and consistency.

Copilot AI review requested due to automatic review settings April 15, 2026 06:51
@dionisio-bot
Copy link
Copy Markdown
Contributor

dionisio-bot bot commented Apr 15, 2026

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label
  • This PR is missing the required milestone or project
  • This PR has an invalid title

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 15, 2026

⚠️ No Changeset found

Latest commit: 06a0ee3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 15, 2026

Walkthrough

A minor documentation update to docs/form-validation.md adjusting punctuation and grammar in a bullet point, adding "a" before "consistent UX" and a trailing period after "changes."

Changes

Cohort / File(s) Summary
Documentation
docs/form-validation.md
Minor punctuation and grammar adjustments to bullet point text; no structural or content changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

type: chore

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title directly matches the changeset - it correctly describes fixing a typo in the form validation documentation file.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

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

Updates the form validation guidelines documentation to correct wording in the “Overview” bullet list.

Changes:

  • Adjusted the UX-related bullet under “The form validation standardization aims to:” in docs/form-validation.md.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/form-validation.md
The form validation standardization aims to:
- **Improve accessibility** by keeping submit buttons enabled and letting validation run on submit
- **Provide consistent UX** with validation triggered on form submission and re-validation on field changes
- **Provide a consistent UX with validation triggered on form submission and re-validation on field changes.
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

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

This bullet’s Markdown formatting is broken: the bold marker (**) is opened but never closed, so the rest of the list may render incorrectly. Please restore the intended pattern (e.g., bold only the short heading like “Provide consistent UX”, then keep the explanatory text outside the bold) and align punctuation with the surrounding bullets.

Suggested change
- **Provide a consistent UX with validation triggered on form submission and re-validation on field changes.
- **Provide a consistent UX** with validation triggered on form submission and re-validation on field changes.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/form-validation.md`:
- Line 9: The bullet text that begins with "**Provide a consistent UX with
validation triggered on form submission and re-validation on field changes." has
an unclosed bold marker; fix it by closing the bold markers so only the lead
phrase is bold (e.g., surround "Provide a consistent UX" with ** ... **) and
leave the remainder of the sentence unbolded, updating the line that currently
starts with the unclosed ** to include the closing ** after the lead phrase.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 80d8bd38-25bb-4b0a-acd5-bab5cfd97398

📥 Commits

Reviewing files that changed from the base of the PR and between 41f6662 and 06a0ee3.

📒 Files selected for processing (1)
  • docs/form-validation.md
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: cubic · AI code reviewer
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: amitb0ra
Repo: RocketChat/Rocket.Chat PR: 39676
File: .changeset/migrate-users-register-openapi.md:3-3
Timestamp: 2026-03-16T21:50:42.118Z
Learning: In RocketChat/Rocket.Chat OpenAPI migration PRs, removing endpoint types and validators from `rocket.chat/rest-typings` (e.g., `UserRegisterParamsPOST`, `/v1/users.register` entry) is the *required* migration pattern per RocketChat/Rocket.Chat-Open-API#150 Rule 7 ("No More rest-typings or Manual Typings"). The endpoint type is re-exposed via a module augmentation `.d.ts` file in the consuming package (e.g., `packages/web-ui-registration/src/users-register.d.ts`). This is NOT a breaking change — the correct changeset bump for `rocket.chat/rest-typings` in this scenario is `minor`, not `major`. Do not flag this as a breaking change during OpenAPI migration reviews.
Learnt from: amitb0ra
Repo: RocketChat/Rocket.Chat PR: 39647
File: apps/meteor/app/api/server/v1/users.ts:710-757
Timestamp: 2026-03-15T14:31:28.969Z
Learning: In RocketChat/Rocket.Chat, the `UserCreateParamsPOST` type in `apps/meteor/app/api/server/v1/users.ts` (migrated from `packages/rest-typings/src/v1/users/UserCreateParamsPOST.ts`) intentionally has `fields: string` (non-optional) and `settings?: IUserSettings` without a corresponding AJV schema entry. This is a pre-existing divergence carried over verbatim from the original rest-typings source (PR `#39647`). Do not flag this type/schema misalignment during the OpenAPI migration review — it is tracked as a separate follow-up fix.

Comment thread docs/form-validation.md
The form validation standardization aims to:
- **Improve accessibility** by keeping submit buttons enabled and letting validation run on submit
- **Provide consistent UX** with validation triggered on form submission and re-validation on field changes
- **Provide a consistent UX with validation triggered on form submission and re-validation on field changes.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Fix unclosed bold marker in bullet text.

Line 9 opens ** but never closes it, so markdown emphasis is malformed. Please close bold around the lead phrase only.

✏️ Proposed fix
-- **Provide a consistent UX with validation triggered on form submission and re-validation on field changes.
+- **Provide a consistent UX** with validation triggered on form submission and re-validation on field changes.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- **Provide a consistent UX with validation triggered on form submission and re-validation on field changes.
- **Provide a consistent UX** with validation triggered on form submission and re-validation on field changes.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/form-validation.md` at line 9, The bullet text that begins with
"**Provide a consistent UX with validation triggered on form submission and
re-validation on field changes." has an unclosed bold marker; fix it by closing
the bold markers so only the lead phrase is bold (e.g., surround "Provide a
consistent UX" with ** ... **) and leave the remainder of the sentence unbolded,
updating the line that currently starts with the unclosed ** to include the
closing ** after the lead phrase.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-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.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="docs/form-validation.md">

<violation number="1" location="docs/form-validation.md:9">
P3: Malformed Markdown emphasis in overview bullet: opening `**` is missing a closing `**`.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread docs/form-validation.md
The form validation standardization aims to:
- **Improve accessibility** by keeping submit buttons enabled and letting validation run on submit
- **Provide consistent UX** with validation triggered on form submission and re-validation on field changes
- **Provide a consistent UX with validation triggered on form submission and re-validation on field changes.
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot Apr 15, 2026

Choose a reason for hiding this comment

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

P3: Malformed Markdown emphasis in overview bullet: opening ** is missing a closing **.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At docs/form-validation.md, line 9:

<comment>Malformed Markdown emphasis in overview bullet: opening `**` is missing a closing `**`.</comment>

<file context>
@@ -6,7 +6,7 @@ This document outlines the standardized form validation patterns and guidelines
 The form validation standardization aims to:
 - **Improve accessibility** by keeping submit buttons enabled and letting validation run on submit
-- **Provide consistent UX** with validation triggered on form submission and re-validation on field changes
+- **Provide a consistent UX with validation triggered on form submission and re-validation on field changes.
 - **Prevent unnecessary API calls** by using dirty-checks and appropriate revalidation modes
 - **Enhance user feedback** with clear error messages and proper ARIA attributes
</file context>
Suggested change
- **Provide a consistent UX with validation triggered on form submission and re-validation on field changes.
- **Provide a consistent UX** with validation triggered on form submission and re-validation on field changes.
Fix with Cubic

@Pavani12314 Pavani12314 changed the title Fix typo in form validation documentation doc:Fix typo in form validation documentation Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants