From 92a833b6dae510d1cb0487c5b6e20e1a87e255fb Mon Sep 17 00:00:00 2001 From: Aj Wazzan Date: Thu, 26 Jun 2025 11:21:09 -0700 Subject: [PATCH] minor fixes --- .github/dependabot.yml | 64 ---------- SECURITY.md | 25 ++++ .../app/(routes)/settings/general/page.tsx | 111 ++++++++---------- apps/server/src/lib/schemas.ts | 2 +- 4 files changed, 76 insertions(+), 126 deletions(-) delete mode 100644 .github/dependabot.yml create mode 100644 SECURITY.md diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index de941520d6..0000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,64 +0,0 @@ -version: 2 -updates: - # Enable version updates for npm - - package-ecosystem: "npm" - directory: "/" - schedule: - interval: "weekly" - open-pull-requests-limit: 10 - groups: - # Group all minor and patch updates for the main repo together - dependencies: - patterns: - - "*" - - # Enable version updates for the mail app - - package-ecosystem: "npm" - directory: "/apps/mail" - schedule: - interval: "weekly" - open-pull-requests-limit: 10 - groups: - # Group React ecosystem updates together - react: - patterns: - - "react*" - - "@types/react*" - # Group UI-related packages - ui-dependencies: - patterns: - - "@tiptap*" - - "@dnd-kit*" - - "@hookform*" - # Group all other dependencies - other-dependencies: - patterns: - - "*" - - # Enable version updates for the server app - - package-ecosystem: "npm" - directory: "/apps/server" - schedule: - interval: "weekly" - open-pull-requests-limit: 10 - - # Enable version updates for Docker - - package-ecosystem: "docker" - directory: "/docker/app" - schedule: - interval: "weekly" - open-pull-requests-limit: 5 - - # Enable version updates for Docker DB - - package-ecosystem: "docker" - directory: "/docker/db" - schedule: - interval: "weekly" - open-pull-requests-limit: 5 - - # Enable version updates for GitHub Actions - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" - open-pull-requests-limit: 5 diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000000..9a27640904 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,25 @@ +# Security Policy + +## Supported Versions + +Currently supported, maintained and updated versions: + +| Version | Supported | Support Status | +| ------- | ------------------ | ------------------------------------- | +| 4.x | :white_check_mark: | Active Development & Security Updates | +| < 4.0 | :x: | End of Life (no security updates) | + +## Security Updates + +We take security seriously. Security updates are released as soon as possible after a vulnerability is discovered and verified. + +## Reporting a Vulnerability + +If you discover a security vulnerability, please follow these steps: + +1. **DO NOT** disclose the vulnerability publicly. +2. Send a detailed report to: `cto@0.email`. +3. Include in your report: + - A description of the vulnerability + - Steps to reproduce the issue + - Potential impact diff --git a/apps/mail/app/(routes)/settings/general/page.tsx b/apps/mail/app/(routes)/settings/general/page.tsx index 190288fb8b..6b543fc800 100644 --- a/apps/mail/app/(routes)/settings/general/page.tsx +++ b/apps/mail/app/(routes)/settings/general/page.tsx @@ -13,15 +13,16 @@ import { SelectTrigger, SelectValue, } from '@/components/ui/select'; +import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'; import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; import { useForm, type ControllerRenderProps } from 'react-hook-form'; import { useMutation, useQueryClient } from '@tanstack/react-query'; import { SettingsCard } from '@/components/settings/settings-card'; +import { Globe, Clock, XIcon, Mail, InfoIcon } from 'lucide-react'; import { useEmailAliases } from '@/hooks/use-email-aliases'; import { useState, useEffect, useMemo, memo } from 'react'; import { userSettingsSchema } from '@zero/server/schemas'; import { ScrollArea } from '@/components/ui/scroll-area'; -import { Globe, Clock, XIcon, Mail } from 'lucide-react'; import { zodResolver } from '@hookform/resolvers/zod'; import { useTranslations, useLocale } from 'use-intl'; import { useTRPC } from '@/providers/query-provider'; @@ -200,7 +201,7 @@ export default function GeneralPage() { >
-
+
)} /> -
- {aliases && aliases.length > 0 && ( - ( - - {t('pages.settings.general.defaultEmailAlias')} - - - {t('pages.settings.general.defaultEmailDescription')} - - - )} - /> - )} - ( - - {t('pages.settings.general.customPrompt')} - -