Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 0 additions & 70 deletions .github/workflows/browser-tests.yml

This file was deleted.

6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ on:
branches:
- develop
- main
- master
- workos
pull_request:
branches:
- develop
- main
- master
- workos

permissions:
contents: write
Expand All @@ -17,7 +21,7 @@ jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ on:
branches:
- develop
- main
- master
- workos
pull_request:
branches:
- develop
- main
- master
- workos

jobs:
ci:
Expand Down Expand Up @@ -39,14 +43,14 @@ jobs:
- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Build Assets
run: npm run build

- name: Copy Environment File
run: cp .env.example .env

- name: Generate Application Key
run: php artisan key:generate

- name: Build Assets
run: npm run build

- name: Tests
run: ./vendor/bin/phpunit
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
/public/build
/public/hot
/public/storage
/storage/*.key
/storage/pail
/resources/js/actions
/resources/js/routes
/resources/js/wayfinder
/storage/*.key
/storage/pail
/vendor
.DS_Store
.env
Expand Down
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"htmlWhitespaceSensitivity": "css",
"printWidth": 80,
"plugins": [
"prettier-plugin-organize-imports",
"prettier-plugin-tailwindcss"
],
"tailwindFunctions": [
"clsx",
"cn"
"cn",
"cva"
],
"tailwindStylesheet": "resources/css/app.css",
"tabWidth": 4,
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Settings/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function edit(Request $request): Response
}

/**
* Update the user's profile settings.
* Update the user's profile information.
*/
public function update(ProfileUpdateRequest $request): RedirectResponse
{
Expand All @@ -42,7 +42,7 @@ public function update(ProfileUpdateRequest $request): RedirectResponse
}

/**
* Delete the user's account.
* Delete the user's profile.
*/
public function destroy(ProfileDeleteRequest $request): RedirectResponse
{
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-hooks": "^7.0.0",
"prettier": "^3.4.2",
"prettier-plugin-organize-imports": "^4.1.0",
"prettier-plugin-tailwindcss": "^0.6.11",
"typescript-eslint": "^8.23.0"
},
Expand Down
16 changes: 0 additions & 16 deletions public/logo.svg

This file was deleted.

2 changes: 1 addition & 1 deletion resources/js/components/alert-error.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
import { AlertCircleIcon } from 'lucide-react';
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';

export default function AlertError({
errors,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/app-content.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SidebarInset } from '@/components/ui/sidebar';
import * as React from 'react';
import { SidebarInset } from '@/components/ui/sidebar';

type Props = React.ComponentProps<'main'> & {
variant?: 'header' | 'sidebar';
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/app-header.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Link, usePage } from '@inertiajs/react';
import { BookOpen, Folder, LayoutGrid, Menu, Search } from 'lucide-react';
import { Breadcrumbs } from '@/components/breadcrumbs';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import { Button } from '@/components/ui/button';
Expand Down Expand Up @@ -31,8 +33,6 @@ import { useInitials } from '@/hooks/use-initials';
import { cn, toUrl } from '@/lib/utils';
import { dashboard } from '@/routes';
import type { BreadcrumbItem, NavItem, SharedData } from '@/types';
import { Link, usePage } from '@inertiajs/react';
import { BookOpen, Folder, LayoutGrid, Menu, Search } from 'lucide-react';
import AppLogo from './app-logo';
import AppLogoIcon from './app-logo-icon';

Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/app-shell.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SidebarProvider } from '@/components/ui/sidebar';
import type { SharedData } from '@/types';
import { usePage } from '@inertiajs/react';
import type { ReactNode } from 'react';
import { SidebarProvider } from '@/components/ui/sidebar';
import type { SharedData } from '@/types';

type Props = {
children: ReactNode;
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/app-sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Link } from '@inertiajs/react';
import { BookOpen, Folder, LayoutGrid } from 'lucide-react';
import { NavFooter } from '@/components/nav-footer';
import { NavMain } from '@/components/nav-main';
import { NavUser } from '@/components/nav-user';
Expand All @@ -12,8 +14,6 @@ import {
} from '@/components/ui/sidebar';
import { dashboard } from '@/routes';
import type { NavItem } from '@/types';
import { Link } from '@inertiajs/react';
import { BookOpen, Folder, LayoutGrid } from 'lucide-react';
import AppLogo from './app-logo';

const mainNavItems: NavItem[] = [
Expand Down
6 changes: 3 additions & 3 deletions resources/js/components/appearance-tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Appearance } from '@/hooks/use-appearance';
import { useAppearance } from '@/hooks/use-appearance';
import { cn } from '@/lib/utils';
import type { LucideIcon } from 'lucide-react';
import { Monitor, Moon, Sun } from 'lucide-react';
import type { HTMLAttributes } from 'react';
import type { Appearance } from '@/hooks/use-appearance';
import { useAppearance } from '@/hooks/use-appearance';
import { cn } from '@/lib/utils';

export default function AppearanceToggleTab({
className = '',
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/breadcrumbs.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Link } from '@inertiajs/react';
import { Fragment } from 'react';
import {
Breadcrumb,
BreadcrumbItem,
Expand All @@ -7,8 +9,6 @@ import {
BreadcrumbSeparator,
} from '@/components/ui/breadcrumb';
import type { BreadcrumbItem as BreadcrumbItemType } from '@/types';
import { Link } from '@inertiajs/react';
import { Fragment } from 'react';

export function Breadcrumbs({
breadcrumbs,
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/delete-user.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Form } from '@inertiajs/react';
import { useRef } from 'react';
import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController';
import Heading from '@/components/heading';
import InputError from '@/components/input-error';
Expand All @@ -13,8 +15,6 @@ import {
} from '@/components/ui/dialog';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Form } from '@inertiajs/react';
import { useRef } from 'react';

export default function DeleteUser() {
const passwordInput = useRef<HTMLInputElement>(null);
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/input-error.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cn } from '@/lib/utils';
import type { HTMLAttributes } from 'react';
import { cn } from '@/lib/utils';

export default function InputError({
message,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/nav-footer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { ComponentPropsWithoutRef } from 'react';
import {
SidebarGroup,
SidebarGroupContent,
Expand All @@ -7,7 +8,6 @@ import {
} from '@/components/ui/sidebar';
import { toUrl } from '@/lib/utils';
import type { NavItem } from '@/types';
import type { ComponentPropsWithoutRef } from 'react';

export function NavFooter({
items,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/nav-main.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Link } from '@inertiajs/react';
import {
SidebarGroup,
SidebarGroupLabel,
Expand All @@ -7,7 +8,6 @@ import {
} from '@/components/ui/sidebar';
import { useCurrentUrl } from '@/hooks/use-current-url';
import type { NavItem } from '@/types';
import { Link } from '@inertiajs/react';

export function NavMain({ items = [] }: { items: NavItem[] }) {
const { isCurrentUrl } = useCurrentUrl();
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/nav-user.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { usePage } from '@inertiajs/react';
import { ChevronsUpDown } from 'lucide-react';
import {
DropdownMenu,
DropdownMenuContent,
Expand All @@ -13,8 +15,6 @@ import { UserInfo } from '@/components/user-info';
import { UserMenuContent } from '@/components/user-menu-content';
import { useIsMobile } from '@/hooks/use-mobile';
import type { SharedData } from '@/types';
import { usePage } from '@inertiajs/react';
import { ChevronsUpDown } from 'lucide-react';

export function NavUser() {
const { auth } = usePage<SharedData>().props;
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/text-link.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { cn } from '@/lib/utils';
import { Link } from '@inertiajs/react';
import type { ComponentProps } from 'react';
import { cn } from '@/lib/utils';

type Props = ComponentProps<typeof Link>;

Expand Down
6 changes: 3 additions & 3 deletions resources/js/components/two-factor-recovery-codes.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { Form } from '@inertiajs/react';
import { Eye, EyeOff, LockKeyhole, RefreshCw } from 'lucide-react';
import { useCallback, useEffect, useRef, useState } from 'react';
import { Button } from '@/components/ui/button';
import {
Card,
Expand All @@ -7,9 +10,6 @@ import {
CardTitle,
} from '@/components/ui/card';
import { regenerateRecoveryCodes } from '@/routes/two-factor';
import { Form } from '@inertiajs/react';
import { Eye, EyeOff, LockKeyhole, RefreshCw } from 'lucide-react';
import { useCallback, useEffect, useRef, useState } from 'react';
import AlertError from './alert-error';

type Props = {
Expand Down
8 changes: 4 additions & 4 deletions resources/js/components/two-factor-setup-modal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { Form } from '@inertiajs/react';
import { REGEXP_ONLY_DIGITS } from 'input-otp';
import { Check, Copy, ScanLine } from 'lucide-react';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import InputError from '@/components/input-error';
import { Button } from '@/components/ui/button';
import {
Expand All @@ -16,10 +20,6 @@ import { useAppearance } from '@/hooks/use-appearance';
import { useClipboard } from '@/hooks/use-clipboard';
import { OTP_MAX_LENGTH } from '@/hooks/use-two-factor-auth';
import { confirm } from '@/routes/two-factor';
import { Form } from '@inertiajs/react';
import { REGEXP_ONLY_DIGITS } from 'input-otp';
import { Check, Copy, ScanLine } from 'lucide-react';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import AlertError from './alert-error';
import { Spinner } from './ui/spinner';

Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/user-menu-content.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Link, router } from '@inertiajs/react';
import { LogOut, Settings } from 'lucide-react';
import {
DropdownMenuGroup,
DropdownMenuItem,
Expand All @@ -9,8 +11,6 @@ import { useMobileNavigation } from '@/hooks/use-mobile-navigation';
import { logout } from '@/routes';
import { edit } from '@/routes/profile';
import type { User } from '@/types';
import { Link, router } from '@inertiajs/react';
import { LogOut, Settings } from 'lucide-react';

type Props = {
user: User;
Expand Down
2 changes: 1 addition & 1 deletion resources/js/hooks/use-current-url.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { toUrl } from '@/lib/utils';
import type { InertiaLinkProps } from '@inertiajs/react';
import { usePage } from '@inertiajs/react';
import { toUrl } from '@/lib/utils';

export type IsCurrentUrlFn = (
urlToCheck: NonNullable<InertiaLinkProps['href']>,
Expand Down
Loading
Loading