diff --git a/api/v1/models/server.py b/api/v1/models/server.py
index 005d1de..511ea37 100644
--- a/api/v1/models/server.py
+++ b/api/v1/models/server.py
@@ -16,15 +16,15 @@ required_settings = [
"LOGIN.LOGIN_LIMIT",
]
-recommended_settings = [
+summary_settings = [
"LOGIN.CLIENT_VER",
"MAIN.ENABLE_TRUST_CASTING",
+ "MAP.LEVEL_SYNC_ENABLE",
"MAIN.HOMEPOINT_TELEPORT",
"MAIN.ENABLE_SURVIVAL_GUIDE",
- "MAP.LEVEL_SYNC_ENABLE",
- "MAIN.ENABLE_ROE",
"MAIN.ENABLE_FIELD_MANUALS",
"MAIN.ENABLE_GROUNDS_TOMES",
+ "MAIN.ENABLE_ROE",
]
expansions_settings = {
@@ -146,14 +146,14 @@ class Server(models.Model):
)
settings_summary = {}
- for setting in recommended_settings:
+ for setting in summary_settings:
if server_settings[setting]:
settings_summary[setting] = server_settings[setting]
# Check customizations
for key, value in server_settings.items():
if (
key not in required_settings
- and key not in recommended_settings
+ and key not in summary_settings
and key not in expansions_settings
and (key not in default_settings or default_settings[key] != value)
):
diff --git a/client/src/components/Header/SearchServers.tsx b/client/src/components/Header/SearchServers.tsx
index b009920..e8329d6 100644
--- a/client/src/components/Header/SearchServers.tsx
+++ b/client/src/components/Header/SearchServers.tsx
@@ -1,4 +1,4 @@
-import { RestartAlt } from '@mui/icons-material';
+import { RestartAlt, Sort } from '@mui/icons-material';
import {
Box,
Container,
@@ -497,52 +497,10 @@ export default function SearchServers({
- {/* Records of Eminence */}
-
-
- Records of Eminence
-
- {
- handleChange('recordsOfEminence', value);
- }}
- size="small"
- aria-labelledby="records-of-eminence-button-group"
- exclusive
- sx={{
- display: 'flex',
- width: '100%',
- }}
- >
-
- Disabled
-
-
- Enabled
-
-
-
{/* Fields of Valor */}
-
-
- {
- setSearchState(SearchStateDefaults);
- }}
+ {/* Records of Eminence */}
+
+
+ Records of Eminence
+
+ {
+ handleChange('recordsOfEminence', value);
+ }}
+ size="small"
+ aria-labelledby="records-of-eminence-button-group"
+ exclusive
+ sx={{
+ display: 'flex',
+ width: '100%',
+ }}
+ >
+
-
-
-
-
+ Disabled
+
+
+ Enabled
+
+
+
+
+
+
+ {
+ // setSearchState(SearchStateDefaults);
+ // }}
+ >
+
+
+
+
+ {
+ setSearchState(SearchStateDefaults);
+ }}
+ >
+
+
+
+
+
);
diff --git a/client/src/components/Server/ExpansionsBar.tsx b/client/src/components/Server/ExpansionsBar.tsx
index d8001a8..b7429c3 100644
--- a/client/src/components/Server/ExpansionsBar.tsx
+++ b/client/src/components/Server/ExpansionsBar.tsx
@@ -1,7 +1,8 @@
-import { ToggleButton, ToggleButtonGroup } from '@mui/material';
+import { AddCircleOutline } from '@mui/icons-material';
+import { Box, ToggleButton, ToggleButtonGroup, Tooltip } from '@mui/material';
import { ServerData } from '../../data/ServerData';
-const expansions = [
+const expansionButtons = [
expansions[prop]);
+
+ enabledAddons = enabledAddons.map((prop) => {
+ if (prop === 'abyssea' || prop === 'voidwatch') {
+ return prop.charAt(0).toUpperCase() + prop.slice(1);
+ }
+ return prop.toUpperCase();
+ });
+
return (
-
- {expansions}
-
+
+
+ {expansionButtons}
+
+ {enabledAddons.length !== 0 && (
+
+ {enabledAddons.join('\n')}
+
+ }
+ placement="right"
+ disableInteractive
+ arrow
+ >
+
+
+ )}
+
);
}
diff --git a/client/src/components/Server/ServerCard.tsx b/client/src/components/Server/ServerCard.tsx
index 9ca65d9..a44ee91 100644
--- a/client/src/components/Server/ServerCard.tsx
+++ b/client/src/components/Server/ServerCard.tsx
@@ -186,7 +186,7 @@ export default function ServerCard({ server, children }: ServerCardProps) {
-
+
-
+
{server.settings_summary['MAIN.SERVER_MESSAGE'] && (
<>
+
+ alpha(theme.palette.divider, 0.6)}
+ >
+ Server Message
+
+
{server.settings_summary['MAIN.SERVER_MESSAGE']}
-
>
)}
+
+ alpha(theme.palette.divider, 0.6)}
+ >
+ Settings{!isSettingsDataGridChild && ' Summary'}
+
+
{children}
-
+
-
+
{server.active_sessions} active sessions
{server.login_limit !== 1 && (
@@ -307,9 +322,10 @@ export default function ServerCard({ server, children }: ServerCardProps) {
event.preventDefault()}
/>
@@ -318,6 +334,9 @@ export default function ServerCard({ server, children }: ServerCardProps) {
{/* */}
+
+ Updated: {new Date(server.updated).toLocaleString()}
+
{isSettingsDataGridChild ? (
-
+
) : (
-
+
)}
-
- Updated: {new Date(server.updated).toLocaleString()}
-