Raids: Anforderungen bis 500 Zeichen (vorher 80) mit Zeilenumbruechen - Formulare, RAID_FIELD_LIMITS, Raid-Karte mit nl2br; Patchnote. Gleiche Grenze in den Bot-APIs (Nezekan api.py, Siel website_api.py)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
c22b7def76
commit
5a6a70a7de
4 changed files with 13 additions and 4 deletions
|
|
@ -19,6 +19,15 @@ const PATCHNOTE_TYPES = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const PATCHNOTES = [
|
const PATCHNOTES = [
|
||||||
|
[
|
||||||
|
'id' => '2026-11-06-a',
|
||||||
|
'date' => '2026-11-06',
|
||||||
|
'title' => 'Mehr Platz für Raid-Anforderungen',
|
||||||
|
'summary' => 'Die Anforderungen eines Raids dürfen jetzt bis zu 500 Zeichen lang sein, mit Zeilenumbrüchen.',
|
||||||
|
'changes' => [
|
||||||
|
['type' => 'verbessert', 'area' => 'Raids', 'text' => 'Beim Erstellen und Bearbeiten eines Raids passen in „Anforderungen“ jetzt 500 statt 80 Zeichen, Zeilenumbrüche bleiben erhalten – auf der Raid-Karte wie im Discord-Post. Gilt auch für Raid-Vorlagen und die Raids der Elyos Allianz.'],
|
||||||
|
],
|
||||||
|
],
|
||||||
[
|
[
|
||||||
'id' => '2026-11-05-a',
|
'id' => '2026-11-05-a',
|
||||||
'date' => '2026-11-05',
|
'date' => '2026-11-05',
|
||||||
|
|
|
||||||
|
|
@ -249,7 +249,7 @@ function render_raid_card(array $raid, array $ctx): void
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($requirements !== ''): ?>
|
<?php if ($requirements !== ''): ?>
|
||||||
<p class="raid-meta-line"><?= icon('list') ?> <strong>Anforderungen:</strong> <?= e($requirements) ?></p>
|
<p class="raid-meta-line"><?= icon('list') ?> <strong>Anforderungen:</strong> <?= nl2br(e($requirements)) ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($gearscore !== ''): ?>
|
<?php if ($gearscore !== ''): ?>
|
||||||
<p><strong>Gearscore:</strong> <?= e(raid_gearscore_label($gearscore)) ?></p>
|
<p><strong>Gearscore:</strong> <?= e(raid_gearscore_label($gearscore)) ?></p>
|
||||||
|
|
@ -278,7 +278,7 @@ function render_raid_card(array $raid, array $ctx): void
|
||||||
</div>
|
</div>
|
||||||
<div class="raid-edit-requirements">
|
<div class="raid-edit-requirements">
|
||||||
<label>Anforderungen</label>
|
<label>Anforderungen</label>
|
||||||
<textarea name="requirements" rows="3" maxlength="80" required><?= e($requirements) ?></textarea>
|
<textarea name="requirements" rows="4" maxlength="500" required><?= e($requirements) ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($isConsilium): ?>
|
<?php if ($isConsilium): ?>
|
||||||
<?php // Consilium-Raid: keine Lumipunkte einzustellen ?>
|
<?php // Consilium-Raid: keine Lumipunkte einzustellen ?>
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@ function raid_backend_request(int $raidId, string $method, string $path, ?array
|
||||||
// Laengengrenzen der Raid-API (RaidCreate/RaidUpdate in api.py des Bots).
|
// Laengengrenzen der Raid-API (RaidCreate/RaidUpdate in api.py des Bots).
|
||||||
const RAID_FIELD_LIMITS = [
|
const RAID_FIELD_LIMITS = [
|
||||||
'title' => ['Titel', 60],
|
'title' => ['Titel', 60],
|
||||||
'requirements' => ['Anforderungen', 80],
|
'requirements' => ['Anforderungen', 500], // seit 11/2026 mit Zeilenumbruechen (vorher 80)
|
||||||
'gearscore' => ['Gearscore', 50], // neue Werte sind nur noch Zahlen (raid_normalize_gearscore)
|
'gearscore' => ['Gearscore', 50], // neue Werte sind nur noch Zahlen (raid_normalize_gearscore)
|
||||||
'group_names' => ['Gruppennamen (zusammen)', 150],
|
'group_names' => ['Gruppennamen (zusammen)', 150],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,7 @@ include __DIR__ . '/includes/header.php';
|
||||||
</div>
|
</div>
|
||||||
<div class="raid-edit-requirements">
|
<div class="raid-edit-requirements">
|
||||||
<label>Anforderungen</label>
|
<label>Anforderungen</label>
|
||||||
<textarea name="requirements" rows="3" placeholder="Setup / Rollenvorgabe" maxlength="80" required></textarea>
|
<textarea name="requirements" rows="4" placeholder="Setup / Rollenvorgabe, gern mehrzeilig" maxlength="500" required></textarea>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($area === 'consilium'): ?>
|
<?php if ($area === 'consilium'): ?>
|
||||||
<?php // Consilium-Raids bringen keine Lumipunkte - nichts einzustellen ?>
|
<?php // Consilium-Raids bringen keine Lumipunkte - nichts einzustellen ?>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue