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

chore: pnpm run format #68

Merged
merged 1 commit into from
Sep 27, 2024
Merged

chore: pnpm run format #68

merged 1 commit into from
Sep 27, 2024

Conversation

krivahtoo
Copy link
Owner

@krivahtoo krivahtoo commented Sep 26, 2024

Summary by CodeRabbit

  • New Features
    • Improved HTML structure for better readability across various components.
  • Bug Fixes
    • Ensured proper formatting by adding newline characters in multiple files.
  • Documentation
    • Minor adjustments to comments and documentation formatting for clarity.
  • Style
    • Standardized quotation marks and indentation styles across multiple components for consistency.
  • Chores
    • General formatting improvements across numerous files to enhance code readability.

Copy link

coderabbitai bot commented Sep 26, 2024

📝 Walkthrough

Walkthrough

The changes primarily involve formatting adjustments across various Svelte and JavaScript files in the frontend codebase. These adjustments include standardizing quotation marks from double quotes to single quotes, adding newline characters for proper file termination, and rearranging class attributes for improved readability. No alterations to the functionality or logic of the components were made, ensuring that the overall behavior of the application remains unchanged.

Changes

Files Change Summary
frontend/src/app.html Reformatted <body> tag for readability; attributes split into multiple lines.
frontend/src/lib/components/chart/Metric.svelte Added a semicolon to the exported interval variable declaration; added newline at the end of the file.
frontend/src/lib/components/chart/gradients.svelte Added a newline before the closing </svg> tag.
frontend/src/lib/components/chart/helpers.js Changed string literals from double quotes to single quotes; added newline at the end of the file.
frontend/src/lib/components/chart/index.js Modified export statement to use single quotes.
frontend/src/lib/components/nav/notification-popover.svelte Added a newline before the closing tag of <Popover.Root>.
frontend/src/lib/components/nav/side-bar-card.svelte Condensed button declaration into a single line without changing functionality.
frontend/src/lib/components/table/status-cell.svelte Removed newline before closing {/if} tag.
frontend/src/lib/components/ui/badge/badge.svelte Adjusted quotation marks and indentation for consistency.
frontend/src/lib/components/ui/badge/index.js Changed string literals to single quotes; standardized indentation.
frontend/src/lib/components/ui/card/card.svelte Reformatted class attribute for readability; added newline at the end.
frontend/src/lib/components/ui/dialog/... (multiple files) Various formatting changes including consistent single quotes and indentation adjustments across dialog components.
frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte Removed newline before closing <DropdownMenuPrimitive.Content> tag.
frontend/src/lib/components/ui/popover/... (multiple files) Adjusted import statements and export structures for consistency; changed double quotes to single quotes.
frontend/src/lib/components/ui/scroll-area/... (multiple files) Reformatted imports and export structures; standardized indentation and quotation marks.
frontend/src/lib/components/ui/separator/... (multiple files) Adjusted import statements and export structures; changed double quotes to single quotes.
frontend/src/lib/components/ui/sonner/... (multiple files) Modified export statements to use single quotes; minor formatting changes.
frontend/src/lib/components/ui/table/... (multiple files) Adjusted import statements and class attributes; standardized quotation marks and indentation.
frontend/src/routes/(dashboard)/(components)/date-cell.svelte Added newline at the end of the file.
frontend/src/routes/(dashboard)/+layout.svelte Added newline at the end of the file.
frontend/src/routes/(dashboard)/+page.svelte Added newline at the end of the file.
frontend/src/routes/(dashboard)/notifications/+page.svelte Rearranged class attributes for readability within a <div> element.
frontend/src/routes/(dashboard)/services/(components)/data-table-checkbox.svelte Changed import statements to single quotes.
frontend/src/routes/(dashboard)/services/(components)/data-table-column-header.svelte Removed newline at the end of the file.
frontend/src/routes/(dashboard)/services/(components)/data-table-pagination.svelte Changed import statements to single quotes; adjusted layout of classes.
frontend/src/routes/(dashboard)/services/[id]/+page.js Added newline at the end of the file; no change to export declaration.
frontend/src/routes/(dashboard)/services/[id]/+page.svelte Added closing curly brace and semicolon in onMount function; added newline at the end.
frontend/src/routes/(dashboard)/status-pages/+page.svelte Rearranged class attributes for readability; added newline at the end.
frontend/src/routes/settings/(components)/sidebar-nav.svelte Removed blank line between import statements and JSDoc comment; added newline before closing </nav> tag.
frontend/src/routes/settings/+layout.svelte Adjusted indentation for import statements; reformatted <aside> element for readability.
frontend/src/routes/settings/account/+page.svelte Added newline at the end of the file.
frontend/src/routes/settings/appearance/+page.svelte Added newline at the end of the file.
frontend/src/routes/+layout.js Updated trailingSlash export to maintain value as 'always'; no change to logic.
frontend/src/routes/+layout.svelte Added newline at the end of the file.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant App
    participant Component

    User->>App: Request page
    App->>Component: Render component
    Component-->>App: Return rendered HTML
    App-->>User: Display page
Loading

🐰 "In code we trust, with quotes so neat,
Formatting changes, a tidy treat!
Newlines added, structure refined,
A rabbit hops on, with joy combined.
Clean and clear, our paths align,
In the world of code, all will be fine!" 🐇


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

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.

@krivahtoo krivahtoo merged commit c52dd81 into main Sep 27, 2024
5 checks passed
@krivahtoo krivahtoo deleted the chore/format branch September 27, 2024 04:55
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.

1 participant