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

feat(docs): populate navbar menu with the content #81

Closed
wants to merge 2 commits into from

Conversation

desmondinho
Copy link
Contributor

@desmondinho desmondinho commented Oct 21, 2024

Summary by CodeRabbit

  • New Features

    • Enhanced color swatch representation with a structured approach.
    • Simplified navigation menu structure with a static NavMenu component.
    • Updated layout structure with a fixed navigation menu replacing the sidebar.
  • Bug Fixes

    • Improved error handling for color scale management.
  • Chores

    • Removed outdated example files related to layout configurations and styling.
  • Style

    • Increased intensity of the backdrop blur effect in the navbar.

@desmondinho desmondinho self-assigned this Oct 21, 2024
Copy link

coderabbitai bot commented Oct 21, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

The changes in this pull request involve significant modifications across several components in the LumexUI.Docs.Client namespace. Key updates include the restructuring of the ColorSwatches component to utilize a private array of Swatch records instead of external parameters, the simplification of the Header component by replacing dynamic navigation item generation with a static NavMenu, and the removal of a sidebar in favor of a more structured <aside> element in the DocsLayout. Additionally, several files related to layout configuration have been deleted, streamlining the overall structure.

Changes

File Path Change Summary
docs/LumexUI.Docs.Client/Components/ColorSwatches.razor Replaced Scale parameter with a private _swatches array of Swatch records; updated rendering logic accordingly; removed Title and Scale parameters.
docs/LumexUI.Docs.Client/Components/Header.razor Replaced dynamic generation of LumexNavbarMenuItem components with a static NavMenu component; added class pb-12 for styling.
docs/LumexUI.Docs.Client/Components/Layouts/DocsLayout.razor Removed <Sidebar /> component; added <NavMenu /> component; adjusted layout padding for new structure.
docs/LumexUI.Docs.Client/Components/NavMenu.razor Removed wrapping <aside> element; replaced with a direct <nav> element; internal rendering logic remains unchanged.
docs/LumexUI.Docs.Client/Components/NavMenu.razor.cs Renamed class from Sidebar to NavMenu; no changes to internal logic.
docs/LumexUI.Docs.Client/Pages/Customization/Colors.razor Removed dynamic iteration over _colorScales; replaced with static <ColorSwatches /> component; removed _colorScales field.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutConfigFontSize.html Deleted constructor for LayoutConfig class initializing FontSize.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutConfigFontSizeExample.html Deleted example HTML demonstrating text size classes.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutConfigFull.html Deleted constructor for LayoutConfig class initializing layout styling properties.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutConfigLineHeight.html Deleted constructor for LayoutConfig class initializing LineHeight.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutConfigLineHeightExample.html Deleted example HTML demonstrating line height classes.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutConfigOpacity.html Deleted constructor for LayoutConfig class initializing opacity properties.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutConfigOpacityExample.html Deleted example HTML demonstrating opacity configurations.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutConfigRadius.html Deleted constructor for LayoutConfig class initializing Radius.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutConfigRadiusExample.html Deleted example HTML demonstrating rounded corner classes.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutConfigShadow.html Deleted constructor for LayoutConfig class initializing Shadow.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutConfigShadowExample.html Deleted example HTML demonstrating shadow configurations.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutTypesBaseScale.html Deleted record definition for BaseScale.
docs/LumexUI.Docs/LumexUI.Docs.Client/Samples/Layout/layoutTypesFontScale.html Deleted record definition for FontScale.
src/LumexUI/Styles/Navbar.cs Updated _blurred string from "backdrop-blur-md" to "backdrop-blur-lg", affecting navbar styling.
src/LumexUI/Theme/Colors/Models/ColorScale.cs Changed ColorScale from a record to a class; updated constructor and added SetAsDefault method; implemented ICollection<KeyValuePair<string, string>>.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Header
    participant NavMenu
    participant ColorSwatches
    participant DocsLayout

    User->>Header: Request navigation
    Header->>NavMenu: Render static navigation
    NavMenu->>User: Display navigation items

    User->>DocsLayout: Access Colors page
    DocsLayout->>ColorSwatches: Render color swatches
    ColorSwatches-->>User: Display color options
Loading

🐇 "In the meadow where colors bloom,
Swatches dance and dispel the gloom.
Navigation's now a simple sight,
With menus clear, everything's right!
Hopping through the code, we cheer,
For changes bright, we hold so dear!" 🐇


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

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

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

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.37%. Comparing base (19b89dc) to head (d99239f).
Report is 24 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
- Coverage   96.95%   96.37%   -0.58%     
==========================================
  Files          70       70              
  Lines        1542     1543       +1     
  Branches      150      145       -5     
==========================================
- Hits         1495     1487       -8     
- Misses         28       37       +9     
  Partials       19       19              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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