Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Governance: set overview page as index #545

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

fadeev
Copy link
Member

@fadeev fadeev commented Feb 12, 2025

Summary by CodeRabbit

  • Documentation
    • Revamped the governance page with clearer sections detailing governance overviews, parameters, proposal stages, and submission instructions.
    • Added visual cues and alert messages to guide users through the proposal-making process.
  • Chores
    • Removed redundant metadata and an outdated overview document to streamline governance content.
    • Made minor textual adjustments for clarity in the deposit process documentation.

@fadeev fadeev requested a review from a team as a code owner February 12, 2025 08:04
Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview Feb 12, 2025 6:10pm

Copy link
Contributor

coderabbitai bot commented Feb 12, 2025

📝 Walkthrough

Walkthrough

The changes update the governance documentation. The metadata file now omits the "overview": "Governance" key. The main governance documentation page has been restructured to replace the previous navigation component with the GovParams component, adding new sections that detail proposal creation, proposal lifecycle stages, and include an instructional Alert component. Additionally, an overview file that previously explained the governance process has been removed.

Changes

File Changes Summary
src/pages/users/cli/governance/_meta.json Removed the "overview": "Governance" key from the JSON metadata structure.
src/pages/users/cli/governance/index.mdx Restructured the content: replaced the navigation component with GovParams, added new sections (Overview, Governance Parameters, Proposal Stages), and integrated an Alert component with instructions for proposal submission.
src/pages/users/cli/governance/overview.mdx Deleted the file that provided an overview of the governance process and explained the proposal lifecycle.
src/pages/users/cli/governance/deposit.mdx Minor textual adjustments for clarity regarding the deposit process; no structural changes made.

Suggested reviewers

  • bbbeeeee
  • brewmaster012
  • GMaiolo

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 95b3120 and 22329c9.

📒 Files selected for processing (1)
  • src/pages/users/cli/governance/index.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
src/pages/users/cli/governance/index.mdx

[typographical] ~23-~23: It seems that a comma is missing.
Context: ...ams /> ## Making a Proposal To make a proposal you will need to: - Create a `proposal...

(IN_ORDER_TO_VB_COMMA)


[grammar] ~25-~25: Possible subject-verb agreement error.
Context: ...file. The contents of the proposal file depends on the type of a proposal: [text prop...

(NNS_OF_SINGULAR_AGREEMENT)


[grammar] ~26-~26: If ‘type’ is a classification term, ‘a’ is not necessary. Use “type of”. (The phrases ‘kind of’ and ‘sort of’ are informal if they mean ‘to some extent’.)
Context: ...s of the proposal file depends on the type of a proposal: [text proposal](/users/cli/go...

(KIND_OF_A)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: build
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
src/pages/users/cli/governance/index.mdx (2)

11-15: LGTM! Documentation version correctly updated.

The overview section appropriately references the latest Cosmos SDK v0.50 documentation, aligning with the version bump discussed in previous comments.


25-28: Fix grammatical errors in proposal file description.

The text contains grammatical issues that need to be addressed:

  1. Subject-verb agreement needs correction
  2. Unnecessary article before "proposal"

Apply this diff:

-The contents of the proposal file depends on
-  the type of a proposal: [text proposal](/users/cli/governance/text),
+The contents of the proposal file depend on
+  the type of proposal: [text proposal](/users/cli/governance/text),
🧰 Tools
🪛 LanguageTool

[grammar] ~25-~25: Possible subject-verb agreement error.
Context: ...file. The contents of the proposal file depends on the type of a proposal: [text prop...

(NNS_OF_SINGULAR_AGREEMENT)


[grammar] ~26-~26: If ‘type’ is a classification term, ‘a’ is not necessary. Use “type of”. (The phrases ‘kind of’ and ‘sort of’ are informal if they mean ‘to some extent’.)
Context: ...s of the proposal file depends on the type of a proposal: [text proposal](/users/cli/go...

(KIND_OF_A)


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
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

🧹 Nitpick comments (2)
src/pages/users/cli/governance/index.mdx (2)

33-36: Improve Alert component readability.

The explicit empty space strings and curly braces are unnecessary and reduce readability.

Apply this diff:

-<Alert variant="tip">
-  {" "}
-  Check out the [text proposal](/users/cli/governance/text) doc to learn more about the basics of how proposals are structured.{" "}
-</Alert>
+<Alert variant="tip">
+  Check out the [text proposal](/users/cli/governance/text) doc to learn more about the basics of how proposals are structured.
+</Alert>

42-57: Consider adding status transition diagram.

The proposal lifecycle description is clear, but a visual representation could enhance understanding.

Consider adding a Mermaid diagram to visualize the status transitions. I can help generate the diagram code if you'd like.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ad935b2 and 6ff26c9.

📒 Files selected for processing (3)
  • src/pages/users/cli/governance/_meta.json (1 hunks)
  • src/pages/users/cli/governance/index.mdx (1 hunks)
  • src/pages/users/cli/governance/overview.mdx (0 hunks)
💤 Files with no reviewable changes (1)
  • src/pages/users/cli/governance/overview.mdx
🧰 Additional context used
🪛 LanguageTool
src/pages/users/cli/governance/index.mdx

[typographical] ~23-~23: It seems that a comma is missing.
Context: ...ams /> ## Making a Proposal To make a proposal you will need to: - Create a `proposal...

(IN_ORDER_TO_VB_COMMA)


[grammar] ~25-~25: Possible subject-verb agreement error.
Context: ...file. The contents of the proposal file depends on the type of a proposal: [text prop...

(NNS_OF_SINGULAR_AGREEMENT)


[grammar] ~26-~26: If ‘type’ is a classification term, ‘a’ is not necessary. Use “type of”. (The phrases ‘kind of’ and ‘sort of’ are informal if they mean ‘to some extent’.)
Context: ...s of the proposal file depends on the type of a proposal: [text proposal](/users/cli/go...

(KIND_OF_A)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build
🔇 Additional comments (1)
src/pages/users/cli/governance/_meta.json (1)

1-9: LGTM! Well-structured documentation navigation.

The metadata structure follows a logical progression from introduction through proposal types to specific actions, making it intuitive for users to navigate the governance documentation.

Comment on lines +25 to +28
- Create a `proposal.json` file. The contents of the proposal file depends on
the type of a proposal: [text proposal](/users/cli/governance/text),
[parameter change proposal](/users/cli/governance/parameter), [software
upgrade proposal](/users/cli/governance/upgrade), etc.
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Fix grammatical error in proposal file description.

The subject-verb agreement needs correction.

Apply this diff:

-The contents of the proposal file depends on
+The contents of the proposal file depend on
📝 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
- Create a `proposal.json` file. The contents of the proposal file depends on
the type of a proposal: [text proposal](/users/cli/governance/text),
[parameter change proposal](/users/cli/governance/parameter), [software
upgrade proposal](/users/cli/governance/upgrade), etc.
- Create a `proposal.json` file. The contents of the proposal file depends on
+ Create a `proposal.json` file. The contents of the proposal file depend on
the type of a proposal: [text proposal](/users/cli/governance/text),
[parameter change proposal](/users/cli/governance/parameter), [software
upgrade proposal](/users/cli/governance/upgrade), etc.
🧰 Tools
🪛 LanguageTool

[grammar] ~25-~25: Possible subject-verb agreement error.
Context: ...file. The contents of the proposal file depends on the type of a proposal: [text prop...

(NNS_OF_SINGULAR_AGREEMENT)


[grammar] ~26-~26: If ‘type’ is a classification term, ‘a’ is not necessary. Use “type of”. (The phrases ‘kind of’ and ‘sort of’ are informal if they mean ‘to some extent’.)
Context: ...s of the proposal file depends on the type of a proposal: [text proposal](/users/cli/go...

(KIND_OF_A)

Copy link
Member

@hernan-clich hernan-clich left a comment

Choose a reason for hiding this comment

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

Tested ACK

src/pages/users/cli/governance/index.mdx Outdated Show resolved Hide resolved
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.

3 participants