Skip to content

chore: constant rollkit ignite app version #399

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

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

yarikbratashchuk
Copy link
Contributor

@yarikbratashchuk yarikbratashchuk commented Jun 20, 2024

Summary by CodeRabbit

  • New Features

    • Updated tutorials and guides to use dynamic versioning for installation scripts.
  • Documentation

    • Improved installation commands across tutorials to dynamically reference version constants.

@yarikbratashchuk yarikbratashchuk requested a review from jcstein June 20, 2024 08:32
@yarikbratashchuk yarikbratashchuk self-assigned this Jun 20, 2024
Copy link
Contributor

coderabbitai bot commented Jun 20, 2024

Walkthrough

This update introduces dynamic constants to various tutorial and guide files, replacing hardcoded version numbers with imported constants from a central constants.js file. This change ensures easier updates and maintains consistency across the documentation. New <script setup> blocks are added for importing these constants, simplifying version management in code snippets for installing and configuring the Rollkit app, Celestia DA, and tools in CosmWasm and Wordle tutorials.

Changes

File Change Summary
.vitepress/constants/constants.js Added rollkitIgniteAppVersion: "v0.2.1" to the constants object.
tutorials/celestia-da.md Added <script setup> block and used {{constants.rollkitIgniteAppVersion}} in installation script.
tutorials/cosmwasm.md Imported constants and used dynamic references {{constants.golangVersion}} and {{constants.localDALatestTag}}. Updated code block language.
tutorials/wordle.md Updated Rollkit app installation command to use {{constants.rollkitIgniteAppVersion}}.
guides/connect-local-da.md Added <script setup> block for importing constants to enhance guide instructions.

Poem

🐇
Across the code, constants aligned,
Versions dynamic, by script defined.
No more to search, no more to fret,
For every app stays up-to-date, I bet.
In harmony, the docs now sing,
With every Rollkit, let progress ring.
🌟


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>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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 as 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 resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration 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.

@RollkitBot RollkitBot requested review from gupadhyaya and tzdybal June 20, 2024 08:32
Copy link
Contributor

github-actions bot commented Jun 20, 2024

PR Preview Action v1.4.7
🚀 Deployed preview to https://rollkit.github.io/docs-preview/./pr-399/
on branch main at 2024-06-20 13:42 UTC

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: 3

Outside diff range and nitpick comments (6)
tutorials/celestia-da.md (3)

Line range hint 60-60: Remove unnecessary multiple blank lines to maintain consistency.

- 
-

Also applies to: 63-63


Line range hint 72-72: Specify the language for the code block to enhance markdown formatting.

-```bash
+```bash

Line range hint 113-114: Sensitive information leak detected: JSON Web Token (JWT) exposed in the documentation.

Please ensure that the JWT is not sensitive or replace it with a placeholder to prevent potential security risks.

tutorials/wordle.md (3)

Line range hint 572-572: Remove unnecessary multiple blank lines to maintain consistency.

-

Line range hint 155-155: Correct table formatting to include trailing pipes for consistency and proper rendering.

-| readme.md      | A readme file for your sovereign application-specific blockchain project.
+| readme.md      | A readme file for your sovereign application-specific blockchain project. |

Line range hint 761-761: Consider breaking long lines to adhere to markdown best practices.

It's a good practice to keep line lengths under 80 characters for better readability in markdown files.

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 43d07ac and b642691.

Files selected for processing (4)
  • .vitepress/constants/constants.js (1 hunks)
  • tutorials/celestia-da.md (2 hunks)
  • tutorials/cosmwasm.md (3 hunks)
  • tutorials/wordle.md (1 hunks)
Files skipped from review due to trivial changes (1)
  • .vitepress/constants/constants.js
Additional context used
Markdownlint
tutorials/celestia-da.md

60-60: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


63-63: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


72-72: null (MD040, fenced-code-language)
Fenced code blocks should have a language specified

tutorials/cosmwasm.md

139-139: Expected: 0 or 2; Actual: 1 (MD009, no-trailing-spaces)
Trailing spaces


251-251: Expected: 0 or 2; Actual: 1 (MD009, no-trailing-spaces)
Trailing spaces


145-145: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


178-178: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


251-251: Expected: 80; Actual: 90 (MD013, line-length)
Line length

tutorials/wordle.md

572-572: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


761-761: Expected: 80; Actual: 138 (MD013, line-length)
Line length


155-155: Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe (MD055, table-pipe-style)
Table pipe style

Gitleaks
tutorials/celestia-da.md

113-114: Uncovered a JSON Web Token, which may lead to unauthorized access to web applications and sensitive user data. (jwt)

LanguageTool
tutorials/cosmwasm.md

[style] ~139-~139: Consider a shorter alternative to avoid wordiness. (IN_ORDER_TO_PREMIUM)
Context: ... You will need a local-da node running in order to complete this tutorial. To start it, ru...


[grammar] ~148-~148: The word “setup” is a noun. The verb is spelled with a space. (NOUN_VERB_CONFUSION)
Context: ...the wasmd binary is built, we need to setup a local network that communicates betwe...


[style] ~219-~219: Consider a shorter alternative to avoid wordiness. (IN_ORDER_TO_PREMIUM)
Context: ...requires Docker in order to compile. <!-- markdownlint-enable MD051...


[style] ~248-~248: Consider a shorter alternative to avoid wordiness. (IN_ORDER_TO_PREMIUM)
Context: ... Let's now deploy our smart contract! In order to deploy a contract, you can use the comm...

tutorials/wordle.md

[style] ~35-~35: Consider a shorter alternative to avoid wordiness. (IN_ORDER_TO_PREMIUM)
Context: ...ld) You do not have to do those guides in order to follow this Wordle tutorial, but doing ...


[style] ~77-~77: Consider using a more formal and expressive alternative to ‘amazing’. (AWESOME)
Context: ...--> ### 🔥 Ignite {#ignite} Ignite is an amazing CLI tool to help us get started buildin...


[uncategorized] ~91-~91: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE)
Context: ...ocal machine. This tutorial uses a macOS but it should work for Windows. For Windows...


[uncategorized] ~104-~104: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...p ``` You should see an output of help commands meaning Ignite was installed successful...


[style] ~278-~278: Consider using “who” when you are referring to a person instead of an object. (THAT_WHO)
Context: ...submitter` is the address of the person that submitted the Wordle. The second type ...


[uncategorized] ~393-~393: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ... We then create a hash from the current day the moment the Wordle was submitted. ...


[uncategorized] ~393-~393: Possible missing preposition found. (AI_HYDRA_LEO_MISSING_TO)
Context: ...then create a hash from the current day the moment the Wordle was submitted. We s...


[uncategorized] ~513-~513: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...the hash string of the current day. * Next we create a hash string of current day ...


[uncategorized] ~513-~513: Possible missing article found. (AI_HYDRA_LEO_MISSING_THE)
Context: ... day. * Next we create a hash string of current day and the Submitter. This allows us...


[uncategorized] ~518-~518: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ... continue guessing a new wordle every day up to the max of 6 tries per day. * We ...


[style] ~543-~543: Consider a shorter alternative to avoid wordiness. (IN_ORDER_TO_PREMIUM)
Context: ...oins method to the BankKeeper interface in order to allow sending the reward to the right g...


[uncategorized] ~647-~647: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ... then get a response with a transaction hash as shown here: ```bash code: 0 codespa...


[grammar] ~718-~718: When ‘five-letter’ is used as a modifier, it is usually spelled with a hyphen. (WORD_ESSAY_HYPHEN)
Context: ... for the day. Now let’s try to guess a five letter word: <!-- markdownlint-disable MD013 ...


[style] ~748-~748: ‘prior to’ might be wordy. Consider a shorter alternative. (EN_WORDINESS_PREMIUM_PRIOR_TO)
Context: ... correct word. 2. You can hash the word prior to submitting it to the chain, ensuring ...


[uncategorized] ~754-~754: Possible missing article found. (AI_HYDRA_LEO_MISSING_THE)
Context: ...mblebun/wordle-cli). 4. You can improve current date to stick to a specific timezone. 5...


[style] ~756-~756: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...wordle every day at a specific time. 6. You can create a vue.js front-end with Igni...

Additional comments not posted (5)
tutorials/celestia-da.md (2)

41-42: Validate the dynamic version reference in the installation command.

Ensure that the {{constants.rollkitIgniteAppVersion}} is correctly replaced during the build process and reflects the intended version.


4-6: Ensure the import path for constants is correct and accessible.

Verification successful

The file constants.js does exist in the .vitepress/constants directory, confirming the import path is correct and accessible.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the import path for constants.js is correct and accessible.

# Test: Check if the file exists at the specified path.
if [[ -f "../.vitepress/constants/constants.js" ]]; then
  echo "The file exists."
else
  echo "The file does not exist."
fi

Length of output: 106



Script:

#!/bin/bash
# Description: Verify the existence of the .vitepress directory and constants.js file.

# Check if the .vitepress directory exists.
if fd --type d --hidden --exclude .git | grep -q '.vitepress'; then
  echo ".vitepress directory exists."
else
  echo ".vitepress directory does not exist."
fi

# Check for any constants.js file in the repository.
fd --type f --name 'constants.js' --hidden --exclude .git

Length of output: 434



Script:

#!/bin/bash
# Description: Verify the existence of the .vitepress directory and constants.js file.

# Check if the .vitepress directory exists.
if fd --type d --hidden --exclude .git | grep -q '.vitepress'; then
  echo ".vitepress directory exists."
else
  echo ".vitepress directory does not exist."
fi

# Correct the fd command syntax and search for constants.js file in the repository.
fd --type f 'constants.js' --hidden --exclude .git

Length of output: 210

tutorials/cosmwasm.md (2)

34-34: Validate the dynamic version reference in the installation script.

Ensure that the {{constants.golangVersion}} is correctly replaced during the build process and reflects the intended version.


141-142: Validate the dynamic version reference in the installation script for the local DA node.

Ensure that the {{constants.localDALatestTag}} is correctly replaced during the build process and reflects the intended version.

tutorials/wordle.md (1)

171-172: Validate the dynamic version reference in the installation command.

Ensure that the {{constants.rollkitIgniteAppVersion}} is correctly replaced during the build process and reflects the intended version.

@yarikbratashchuk yarikbratashchuk force-pushed the yarik/rollkit-app-constant branch from a85d529 to 39fd929 Compare June 20, 2024 13:14
Copy link
Member

@Manav-Aggarwal Manav-Aggarwal left a comment

Choose a reason for hiding this comment

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

Left comments

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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between b642691 and 08295ce.

Files selected for processing (2)
  • .vitepress/constants/constants.js (1 hunks)
  • guides/connect-local-da.md (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .vitepress/constants/constants.js
Additional comments not posted (1)
guides/connect-local-da.md (1)

4-6: The import of constants is correctly set up to facilitate dynamic content in the document.

@Manav-Aggarwal Manav-Aggarwal merged commit f4a47d3 into main Jun 20, 2024
4 checks passed
@Manav-Aggarwal Manav-Aggarwal deleted the yarik/rollkit-app-constant branch June 20, 2024 20:48
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