Skip to content

Commit

Permalink
Removed more reliability issues
Browse files Browse the repository at this point in the history
  • Loading branch information
anoopkarnik committed Feb 1, 2025
1 parent 947ea59 commit 961e9ca
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 51 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=anoopkarnik_turborepo-saas-boilerplate-code&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=anoopkarnik_turborepo-saas-boilerplate-code)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=anoopkarnik_turborepo-saas-boilerplate-code&metric=coverage)](https://sonarcloud.io/summary/new_code?id=anoopkarnik_turborepo-saas-boilerplate-code)
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=anoopkarnik_turborepo-saas-boilerplate-code&metric=bugs)](https://sonarcloud.io/summary/new_code?id=anoopkarnik_turborepo-saas-boilerplate-code)
https://img.shields.io/badge/clones-{count}-brightgreen

[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=anoopkarnik_turborepo-saas-boilerplate-code&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=anoopkarnik_turborepo-saas-boilerplate-code)
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=anoopkarnik_turborepo-saas-boilerplate-code&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=anoopkarnik_turborepo-saas-boilerplate-code)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const NodeCard = ({children,nodeId,isSelected}:{nodeId: string; children: React.
const hasInvalidInputs = invalidInputs.some((input)=>input.nodeId === nodeId);

return (
<div role='button' onDoubleClick={()=>{
<div role='button' tabIndex={0} onDoubleClick={()=>{
const node = getNode(nodeId)
if(!node) return;
const {position,measured } = node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ export const BreadcrumbsHeader = () => {
<Breadcrumb>
<BreadcrumbList>
<BreadcrumbItem>
<div role="button" className='capitalize cursor-pointer hover:dark:text-white hover:text-black' onClick={() => router.push("/")}>
<div tabIndex={0} role="button" className='capitalize cursor-pointer hover:dark:text-white hover:text-black' onClick={() => router.push("/")}>
Home
</div>
</BreadcrumbItem>
{paths.map((path, index) => (
<React.Fragment key={index}>
<BreadcrumbItem>
<div role="button" className='capitalize cursor-pointer hover:dark:text-white hover:text-black' onClick={() => router.push(getFullPath(index))}>
<div role="button" tabIndex={0} className='capitalize cursor-pointer hover:dark:text-white hover:text-black' onClick={() => router.push(getFullPath(index))}>
{path}
</div>
</BreadcrumbItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ const ContactUs = ({lastUpdated,companyName,address,email,contactNumber}:Contact
<p className="mb-4">Registered Address: {address}</p>
<p className="mb-4">Operational Address: {address}</p>
<p className="mb-4">Contact Number: {contactNumber}</p>
<p className="mb-4"> Email Id: &nbsp;
<a href={`https://mail.google.com/mail?view=cm&fs=1&to=${email}&su=SupportEmail`} className='text-blue-500 cursor-pointer'>
{email}
</a>
<p className="mb-4"> Email Id: &nbsp;
<a href={`https://mail.google.com/mail?view=cm&fs=1&to=${email}&su=SupportEmail`} className='text-blue-500 cursor-pointer'>
{email}
</a>
</p>

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const Pricing = ({pricingList,supportEmailAddress}: {pricingList: PricingProps[]
<h2 className="text-3xl md:text-4xl font-bold text-center">
Get
<span className="bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text">
{" "}
Premium{" "}
&nbsp;
Premium &nbsp;
</span>
Access
</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const Services = ({services}:{services:ServiceProps[]}) => {
<div>
<h2 className="text-3xl md:text-4xl font-bold">
<span className="bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text">
Client-Centric{" "}
Client-Centric &nbsp;
</span>
Services
</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const Team = ({teamList}:{teamList:TeamProps[]}) => {
>
<h2 className="text-3xl md:text-4xl font-bold">
<span className="bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text">
Our Dedicated{" "}
Our Dedicated &nbsp;
</span>
Crew
</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ const Testimonials = ({testimonials}: {testimonials: TestimonialProps[]}) => {
id="testimonials"
className="container py-24 sm:py-32 relative"
>
<h2 className="text-3xl md:text-4xl font-bold">
Discover Why
<span className="bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text">
{" "}
People Love{" "}
</span>
This Micro SaaS Boilerplate Code
</h2>
<h2 className="text-3xl md:text-4xl font-bold">
Discover Why &nbsp;
<span className="bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text">
People Love &nbsp;
</span>
This Micro SaaS Boilerplate Code
</h2>

<p className="text-xl text-muted-foreground pt-4 pb-8">
Tweets from our happy users who have used our product and loved it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,43 +40,41 @@ const Testimonials = ({testimonials}: {testimonials: TestimonialProps[]}) => {
<div className="flex flex-col gap-10">
<div>
<h2 className="text-3xl md:text-4xl font-bold">
Discover Why
Discover Why &nbsp;
<span className="bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text">
{" "}
People Love{" "}
People Love &nbsp;
</span>
This Micro SaaS Boilerplate Code
</h2>
<p className="text-xl text-muted-foreground pt-4 pb-8">
Tweets from our happy users who have used our product and loved it.
</p>
</div>

<Carousel setApi={setApi} className="w-full">
<CarouselContent>
{testimonials.map((testimonial: TestimonialProps) => (
<CarouselItem className="lg:basis-1/4" key={testimonial.name}>
<div className="bg-muted rounded-md p-6 min-h-[200px] ">
<div className="flex flex-col justify-between ">
<div className="flex flex-col">
<h3 className="text-exmphasis tracking-tight">
{testimonial.comment}
</h3>
</div>
<p className="flex flex-row gap-2 text-sm items-center">
<span className="text-muted-foreground">By</span>{" "}
<Avatar className="h-6 w-6">
<AvatarImage src={testimonial.image} />
<AvatarFallback>{testimonial.userName}</AvatarFallback>
</Avatar>
<span>{testimonial.name}</span>
</p>
</div>
</div>
</CarouselItem>
))}
</CarouselContent>
</Carousel>
<Carousel setApi={setApi} className="w-full">
<CarouselContent>
{testimonials.map((testimonial: TestimonialProps) => (
<CarouselItem className="lg:basis-1/4" key={testimonial.name}>
<div className="bg-muted rounded-md p-6 min-h-[200px] ">
<div className="flex flex-col justify-between ">
<div className="flex flex-col">
<h3 className="text-exmphasis tracking-tight">
{testimonial.comment}
</h3>
</div>
<p className="flex flex-row gap-2 text-sm items-center">
<span className="text-muted-foreground">By</span>{" "}
<Avatar className="h-6 w-6">
<AvatarImage src={testimonial.image} />
<AvatarFallback>{testimonial.userName}</AvatarFallback>
</Avatar>
<span>{testimonial.name}</span>
</p>
</div>
</div>
</CarouselItem>
))}
</CarouselContent>
</Carousel>
</div>
</div>
{/* Shadow effect */}
Expand Down
5 changes: 3 additions & 2 deletions packages/ui/src/components/templates/home/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import MyConnectionsSettings from "../../organisms/custom/home/MyConnectionsSett
import SessionSettings from "../../organisms/custom/home/SessionSettings"
import PlansBilling from "../../organisms/custom/home/PlansBilling"
import { useSession } from "next-auth/react"
import { Button } from "../../atoms/shadcn/button"

const data = {
nav: [
Expand Down Expand Up @@ -117,10 +118,10 @@ export function SettingsDialog({children, open: controlledOpen, onOpenChange: se
asChild
className={cn("cursor-pointer hover:bg-accent2", item.name === currentOpenedTab && "bg-accent2")}
>
<div className="cursor-pointer" onClick={()=>setCurrentOpenedTab(item.name)}>
<Button variant={'secondary'} className="cursor-pointer shadow-none" onClick={()=>setCurrentOpenedTab(item.name)}>
<item.icon />
<span>{item.name}</span>
</div>
</Button>
</SidebarMenuButton>
</SidebarMenuItem>
))}
Expand Down

0 comments on commit 961e9ca

Please sign in to comment.