Skip to content

Commit d8707d5

Browse files
committed
remove: custom slogan/heading customization
1 parent 472530f commit d8707d5

File tree

6 files changed

+13
-48
lines changed

6 files changed

+13
-48
lines changed

docs/changelog.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ Consider giving a star ⭐ on [Github](https://github.com/pnd280/complexity).
66

77
💖 Support the development via [Ko-fi](https://ko-fi.com/pnd280) or [Paypal](https://paypal.me/pnd280).
88

9+
## v0.0.3.6
10+
11+
_Release date: 23rd Sep, 2024_
12+
13+
- **CHANGE**: Removed custom slogan/heading customization.
14+
915
## v0.0.3.5
1016

11-
_Release date: 21th Sep, 2024_
17+
_Release date: 22nd Sep, 2024_
1218

1319
- **NEW** | **EXPERIMENTAL**: Explicitly keep track of the Pro Search state (Prevent auto-toggling off).
1420

@@ -17,7 +23,7 @@ _Release date: 21th Sep, 2024_
1723

1824
## v0.0.3.4
1925

20-
_Release date: 21th Sep, 2024_
26+
_Release date: 21st Sep, 2024_
2127

2228
- **IMPROVE**: Collections will now be fetched at instant speed.
2329

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "complexity",
33
"displayName": "Complexity - Perplexity.ai supercharged",
4-
"version": "0.0.3.5",
4+
"version": "0.0.3.6",
55
"author": "pnd280",
66
"description": "⚡ Supercharge your Perplexity.ai",
77
"type": "module",

src/assets/components.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/* Slogan fade in */
2-
.mb-lg.flex.items-center.justify-center.pb-xs.md\:text-center {
3-
transition : all;
4-
transition-duration: 0.3s;
5-
opacity : 0;
6-
}
7-
81
.text-shadow-hover:hover {
92
text-shadow: 0 0 10px var(--accent-foreground) !important;
103
}

src/cplx-user-settings/components/CustomTheme.tsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import ChromeStorage from "@/utils/ChromeStorage";
2222
import { jsonUtils } from "@/utils/utils";
2323

2424
const schema = z.object({
25-
slogan: z.string().optional(),
2625
uiFont: z.string().optional(),
2726
monoFont: z.string().optional(),
2827
accentColor: z
@@ -51,7 +50,6 @@ export default function CustomTheme() {
5150
const form = useForm<FormData>({
5251
resolver: zodResolver(schema),
5352
defaultValues: {
54-
slogan: "",
5553
uiFont: "",
5654
monoFont: "",
5755
accentColor: "",
@@ -91,7 +89,6 @@ export default function CustomTheme() {
9189

9290
if (savedSettings) {
9391
reset({
94-
slogan: savedSettings.slogan || "",
9592
uiFont: savedSettings.uiFont || "",
9693
monoFont: savedSettings.monoFont || "",
9794
accentColor: savedSettings.accentColor || "",
@@ -107,25 +104,6 @@ export default function CustomTheme() {
107104
className="tw-flex tw-flex-col tw-gap-4"
108105
onSubmit={handleSubmit(onSubmit)}
109106
>
110-
<FormField
111-
control={form.control}
112-
name="slogan"
113-
render={({ field }) => (
114-
<FormItem>
115-
<FormLabel htmlFor="slogan" className="tw-text-base">
116-
Custom slogan/heading
117-
</FormLabel>
118-
<FormControl>
119-
<Input
120-
id="slogan"
121-
placeholder="Where knowledge begins"
122-
{...field}
123-
/>
124-
</FormControl>
125-
<FormMessage />
126-
</FormItem>
127-
)}
128-
/>
129107
<div className="tw-flex tw-gap-2">
130108
<FormField
131109
control={form.control}

src/cplx-user-settings/components/GeneralSettings.tsx

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { LuExternalLink as ExternalLink } from "react-icons/lu";
32

43
import generalSettings, {
@@ -77,10 +76,6 @@ export default function GeneralSettings({
7776
return;
7877
}
7978

80-
console.log(
81-
draft.generalSettings[settingsKey][subSettingsKey],
82-
);
83-
8479
(draft.generalSettings[settingsKey][
8580
subSettingsKey
8681
] as boolean) = checked;
@@ -97,7 +92,6 @@ export default function GeneralSettings({
9792
</div>
9893
<Separator />
9994
<SettingGroup
100-
key={isAllSettingsEnabled.toString()}
10195
settings={queryBoxSelectors}
10296
settingStoreKey="queryBoxSelectors"
10397
/>
@@ -107,19 +101,14 @@ export default function GeneralSettings({
107101
QoL tweaks
108102
</div>
109103
<Separator />
110-
<SettingGroup
111-
key={isAllSettingsEnabled.toString()}
112-
settings={qolTweaks}
113-
settingStoreKey="qolTweaks"
114-
/>
104+
<SettingGroup settings={qolTweaks} settingStoreKey="qolTweaks" />
115105
</div>
116106
<div className="tw-flex tw-flex-col tw-gap-2">
117107
<div className="tw-text-lg tw-font-semibold tw-tracking-tight">
118108
Visual tweaks
119109
</div>
120110
<Separator />
121111
<SettingGroup
122-
key={isAllSettingsEnabled.toString()}
123112
settings={visualTweaks}
124113
settingStoreKey="visualTweaks"
125114
/>
@@ -165,7 +154,7 @@ function SettingGroup<
165154
versionRelease,
166155
onClick,
167156
}) => {
168-
const defaultChecked = Boolean(
157+
const enabled = Boolean(
169158
userSettings[settingStoreKey]?.[
170159
settingKey as keyof CplxUserSettings["generalSettings"][K]
171160
],
@@ -212,8 +201,8 @@ function SettingGroup<
212201
)}
213202
</div>
214203
}
215-
defaultChecked={!settingKey ? true : defaultChecked}
216-
checked={!settingKey ? true : undefined}
204+
defaultChecked={!settingKey ? true : enabled}
205+
checked={!settingKey ? true : enabled}
217206
onCheckedChange={({ checked }) => {
218207
if (!settingKey) return onClick?.();
219208
updateSettings(settingStoreKey, (draft) => {

src/cplx-user-settings/types/cplx-user-settings.types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export const cplxUserSettingsSchema = z.object({
4747
}),
4848
}),
4949
customTheme: z.object({
50-
slogan: z.string().optional(),
5150
uiFont: z.string().optional(),
5251
monoFont: z.string().optional(),
5352
accentColor: z.string().optional(),

0 commit comments

Comments
 (0)