From dc26e15df173966d0f1e1d40b7d5562dc6877b7f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 13 May 2026 23:03:14 -0400 Subject: [PATCH] Audit fixes: Lotus URLs, branding, editor toolbar setting, dynamic version --- package.json | 4 ++-- public/manifest.json | 21 ++++++++++++++++++- src/app/features/settings/about/About.tsx | 3 ++- .../features/settings/devices/LocalBackup.tsx | 2 +- src/app/features/settings/general/General.tsx | 8 +++++++ src/app/pages/auth/AuthFooter.tsx | 11 +++++----- src/app/pages/client/WelcomePage.tsx | 5 +++-- 7 files changed, 42 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index ba2cd751e..d534d6e9e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "cinny", + "name": "lotus-chat", "version": "4.11.1", - "description": "Yet another matrix client", + "description": "Lotus Chat \u2014 Matrix client for Lotus Guild", "main": "index.js", "type": "module", "engines": { diff --git a/public/manifest.json b/public/manifest.json index 21bbfdee3..d618559d8 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -55,5 +55,24 @@ "sizes": "512x512", "type": "image/png" } + ], + "categories": [ + "social", + "communication", + "productivity" + ], + "shortcuts": [ + { + "name": "New Message", + "short_name": "DM", + "description": "Open a new direct message", + "url": "/", + "icons": [ + { + "src": "res/android/android-chrome-96x96.png", + "sizes": "96x96" + } + ] + } ] -} \ No newline at end of file +} diff --git a/src/app/features/settings/about/About.tsx b/src/app/features/settings/about/About.tsx index 7c8190ff4..b47acd179 100644 --- a/src/app/features/settings/about/About.tsx +++ b/src/app/features/settings/about/About.tsx @@ -5,6 +5,7 @@ import { SequenceCard } from '../../../components/sequence-card'; import { SequenceCardStyle } from '../styles.css'; import { SettingTile } from '../../../components/setting-tile'; import LotusLogo from '../../../../../public/res/Lotus.png'; +import pkg from '../../../../../package.json'; import { clearCacheAndReload } from '../../../../client/initMatrix'; import { useMatrixClient } from '../../../hooks/useMatrixClient'; @@ -46,7 +47,7 @@ export function About({ requestClose }: AboutProps) { Lotus Chat - v4.11.1 + v{pkg.version} A Matrix client for Lotus Guild. diff --git a/src/app/features/settings/devices/LocalBackup.tsx b/src/app/features/settings/devices/LocalBackup.tsx index 00128c8fe..c13b5b515 100644 --- a/src/app/features/settings/devices/LocalBackup.tsx +++ b/src/app/features/settings/devices/LocalBackup.tsx @@ -28,7 +28,7 @@ function ExportKeys() { const blob = new Blob([encKeys], { type: 'text/plain;charset=us-ascii', }); - FileSaver.saveAs(blob, 'cinny-keys.txt'); + FileSaver.saveAs(blob, 'lotus-keys.txt'); }, [mx] ) diff --git a/src/app/features/settings/general/General.tsx b/src/app/features/settings/general/General.tsx index f32fb6456..5b5254efe 100644 --- a/src/app/features/settings/general/General.tsx +++ b/src/app/features/settings/general/General.tsx @@ -766,6 +766,7 @@ function Editor() { const [enterForNewline, setEnterForNewline] = useSetting(settingsAtom, 'enterForNewline'); const [isMarkdown, setIsMarkdown] = useSetting(settingsAtom, 'isMarkdown'); const [hideActivity, setHideActivity] = useSetting(settingsAtom, 'hideActivity'); + const [editorToolbar, setEditorToolbar] = useSetting(settingsAtom, 'editorToolbar'); return ( @@ -785,6 +786,13 @@ function Editor() { after={} /> + + } + /> + - + About - v4.11.1 + v{pkg.version} - - Twitter + + Community Powered by Matrix diff --git a/src/app/pages/client/WelcomePage.tsx b/src/app/pages/client/WelcomePage.tsx index 2bd373069..226736a24 100644 --- a/src/app/pages/client/WelcomePage.tsx +++ b/src/app/pages/client/WelcomePage.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { Box, Button, Icon, Icons, Text, config, toRem } from 'folds'; import { Page, PageHero, PageHeroSection } from '../../components/page'; import LotusLogo from '../../../../public/res/Lotus.png'; +import pkg from '../../../../package.json'; export function WelcomePage() { return ( @@ -18,13 +19,13 @@ export function WelcomePage() { title="Welcome to Lotus Chat" subTitle={ - Yet another matrix client.{' '} + A Matrix client for Lotus Guild.{' '} - v4.11.1 + v{pkg.version} }