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: updated mobile header #1004

Merged
merged 24 commits into from
Apr 15, 2024
Merged

feat: updated mobile header #1004

merged 24 commits into from
Apr 15, 2024

Conversation

adithyaakrishna
Copy link
Contributor

@adithyaakrishna adithyaakrishna commented Mar 8, 2024

Description:

  • Updated mobile header with respect to latest designs

Summary by CodeRabbit

  • New Features

    • Added a new showText property to the MenuSwitcher component to control text visibility.
    • Added a textSectionClassName property to the AvatarWithText component for conditional text section styling.
    • Updated the CommandDialog and DialogContent components with new positioning and styling properties.
  • Style Updates

    • Adjusted text size responsiveness in the Hero component for various screen sizes.
    • Modified text truncation and input styling in the Widget component.
    • Changed the width of the SheetContent element in MobileNavigation and adjusted footer layout.
  • Documentation

    • Added instructions for certificate placement in SIGNING.md.
  • Refactor

    • Standardized type imports across various components and utilities for improved type checking.

Signed-off-by: Adithya Krishna <adithya@documenso.com>
@adithyaakrishna adithyaakrishna self-assigned this Mar 8, 2024
Copy link
Contributor

coderabbitai bot commented Mar 8, 2024

Walkthrough

The recent updates focus on refining type imports and enhancing UI components across marketing and dashboard applications. Changes include using type for type-only imports, adjusting UI component styling for consistency, adding new properties for UI flexibility, and clarifying steps for handling certificates in the signing process.

Changes

File Path Change Summary
.../fetcher.ts, .../metric-card.tsx, .../salary-bands.tsx, .../container.tsx, .../robots.ts, .../sitemap.ts, .../open-build-template-bento.tsx, .../form-error-message.tsx, .../background.tsx, .../next-theme.tsx Modified import statements to use type for type-only imports.
.../bar-metrics.tsx, .../funding-raised.tsx Added inline comments to disable specific ESLint rules.
.../hero.tsx, .../widget.tsx Adjusted className attributes for better responsiveness and text rendering.
.../menu-switcher.tsx, .../mobile-navigation.tsx Updated component properties and styles for improved layout and visibility.
.../avatar.tsx, .../command.tsx, .../dialog.tsx Introduced new props and updated class names for enhanced customization and positioning.
SIGNING.md Added clarification on creating paths for certificates.

Recent Review Details

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between f498ee8 and 9ecd438.
Files selected for processing (2)
  • apps/web/src/components/(dashboard)/layout/menu-switcher.tsx (2 hunks)
  • packages/ui/primitives/avatar.tsx (3 hunks)
Files skipped from review as they are similar to previous changes (2)
  • apps/web/src/components/(dashboard)/layout/menu-switcher.tsx
  • packages/ui/primitives/avatar.tsx

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.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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.

Copy link

vercel bot commented Mar 8, 2024

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

Name Status Preview Comments Updated (UTC)
prd-app 🔄 Building (Inspect) Visit Preview Apr 15, 2024 8:50am
stg-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2024 8:50am
stg-marketing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2024 8:50am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
prd-marketing ⬜️ Ignored (Inspect) Apr 15, 2024 8:50am

@github-actions github-actions bot added the apps: web Issues related to the webapp label Mar 8, 2024
Copy link

github-actions bot commented Mar 8, 2024

Thank you for following the naming conventions for pull request titles! 💚🚀

Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
@dguyen
Copy link
Collaborator

dguyen commented Mar 19, 2024

Please make sure build and CI passes before requesting reviews.

Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
@@ -65,7 +65,8 @@ const AvatarWithText = ({
primaryText,
secondaryText,
rightSideComponent,
showText = true,
// Optional class to hide/show the text beside avatar
Copy link
Collaborator

Choose a reason for hiding this comment

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

Put this in the type, not here

@@ -75,7 +76,7 @@ const AvatarWithText = ({
</Avatar>

<div
className={cn('hidden flex-col text-left text-sm font-normal lg:flex', showText && 'flex')}
className={cn('hidden flex-col text-left text-sm font-normal lg:flex', textSectionClassName)}
Copy link
Collaborator

@dguyen dguyen Apr 8, 2024

Choose a reason for hiding this comment

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

Why is hidden still here? Revert the lg:flex and hidden changes

It's causing text to not be visible in the actual switcher

image

Also if the design wants the avatars to be aligned try ml-3

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dguyen Actually for mobile, the text is hidden and for desktop screens it is shown according to the designs

Copy link
Collaborator

Choose a reason for hiding this comment

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

@adithyaakrishna can you please link me the designs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

@adithyaakrishna could you please compare the image I posted and the design you linked?

The text next to the avatars within the dialog is not visible. You have inadvertently broken all usage of this component on mobile due to hardcoding this hidden class onto the avatar.

I asked you to add a class prop for the avatar text section so you can hide it only for the header.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dguyen My bad, I missed the text next to the Avatars on the dropdown. I've added the classProp and also removed the hardcoded className

Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
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: 0

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between f551174 and a467a4a.
Files selected for processing (2)
  • apps/web/src/components/(dashboard)/layout/menu-switcher.tsx (1 hunks)
  • packages/ui/primitives/avatar.tsx (3 hunks)
Files skipped from review as they are similar to previous changes (2)
  • apps/web/src/components/(dashboard)/layout/menu-switcher.tsx
  • packages/ui/primitives/avatar.tsx

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

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between a467a4a and 3b7e73e.
Files selected for processing (1)
  • apps/web/src/components/(dashboard)/layout/menu-switcher.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • apps/web/src/components/(dashboard)/layout/menu-switcher.tsx

Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
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: 0

Actionable comments outside the diff hunks (7)
SIGNING.md (7)

Line range hint 34-34: Specify the language for fenced code blocks.

- ```
+ ```bash

Adding a language specification to the fenced code blocks improves readability and syntax highlighting in markdown renderers.


Line range hint 25-27: Use hyphens in compound adjectives.

- production ready docker image
+ production-ready docker image

When compound adjectives precede a noun, they should be hyphenated to improve readability and prevent misinterpretation.


Line range hint 29-29: Start sentences with an uppercase letter.

- cd into `docker` directory
+ Cd into the `docker` directory

Ensuring that sentences start with an uppercase letter follows standard writing conventions and improves the professionalism of the documentation.


Line range hint 40-40: Correct the contraction to enhance clarity.

- Let's you run the container in background
+ Lets you run the container in the background

"Let's" is a contraction for "let us," which is inappropriate in this context. "Lets" is the correct form for allowing or permitting something.


Line range hint 41-41: Capitalize only proper nouns.

- Second half is the app port
+ second half is the app port

In lists or mid-sentence, avoid capitalizing words unless they are proper nouns to maintain consistency and readability.


Line range hint 41-41: Add a missing preposition for clarity.

- you can change the first half anything you want
+ you can change the first half to anything you want

Adding the preposition "to" clarifies the intended meaning and ensures grammatical correctness.


Line range hint 42-42: Correct the contraction to enhance clarity.

- Volume let's you persist the data
+ Volume lets you persist the data

Similar to a previous correction, "let's" should be replaced with "lets" for grammatical accuracy.

@dguyen dguyen merged commit aa4b6f1 into main Apr 15, 2024
13 checks passed
@dguyen dguyen deleted the feat/mobile-header branch April 15, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apps: marketing Issues related to website or marketing app apps: web Issues related to the webapp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants