Commit graph

225 commits

Author SHA1 Message Date
Maaxxs
300dae4263 Events: new tab for the bot's scheduled event reminders
Mirrors the bot's event planner (/event_planen, /event_liste) on the
website: list all scheduled reminders with a filter for recurring/one-off,
create, edit and delete them. Both sides talk to the same bot database, so
a reminder scheduled in Discord shows up here right away and vice versa -
sending stays with the bot's background job.

Channel and role are real dropdowns pulled from the Discord server instead
of raw IDs (channels the bot cannot post in are disabled), and the form
shows a live preview of the later Discord message, like the bot does before
scheduling. The timestamp is sent as "TT.MM.JJJJ HH:MM" and converted on
the bot side, exactly like the raids, so both ends use the same timezone.

New permissions events.view / events.manage - existing installs have to
add and assign them once under Berechtigungsgruppen.

Needs the matching bot-side API additions (PATCH /api/events/{id},
GET /api/guilds/{id}/channels and /roles, next_run_raw on POST /api/events,
channel/role names in the event list), which live in the separate bot repo.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 12:40:56 +02:00
Maaxxs
a494015d97 README: document the bot's move-menu fix for benched players
The bot's "Verschieben" menu showed a flat "Bench/Aus" instead of the
class for players on the bench or marked as declined, so the class info
disappeared as soon as someone was moved to the bench. It now shows the
class emoji, the class name and where the player currently is, matching
the website, which always renders the class icon in every group.

The change itself lives in the separate bot repo (Aion2_RaidPlaner,
cogs/teamplaner.py) - the bot process needs a restart to pick it up.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 12:40:40 +02:00
Maaxxs
69b681495a Sidebar: fix the horizontal scrollbar at the bottom
The logo (aspect ratio 480:108) was rendered at a fixed height of 56px,
which makes it ~249px wide - wider than the sidebar's ~207px content box.
That overflow is what forced the horizontal scrollbar. It now scales by
width and keeps 56px only as an upper bound.

Also hide horizontal overflow on the sidebar itself and let long labels
like "Berechtigungsgruppen" wrap, so no future entry can bring the
scrollbar back.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 12:40:26 +02:00
Maaxxs
60230081fc README: document Discord sync for report archive/delete
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 03:05:22 +02:00
Maaxxs
f3e306f723 Reports: fix card hover color and missing spacing before settings
Hover now brightens the whole border to the same status color as the
left accent (green for active, muted for archived) instead of a
generic gold that clashed with it. Added margin-bottom to .report-list
(and the empty-filter message) so there is breathing room before the
Einstellungen panel.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 02:59:27 +02:00
Maaxxs
c720b0173d Reports: replace the table with a styled card list
The dense table row (avatar, name, time, reason/evidence, badges,
actions all crammed into one baseline-misaligned line) is now a
stacked list of report cards, matching the panel/avatar-chip language
used elsewhere on the site: a colored left border for quick status
scanning (green = active, muted = archived, gold on hover with a
slight lift), a header row with a 40px avatar and reporter subtitle,
reason/evidence in their own section, and a footer row for the
incident timestamp and the archive/delete actions.

Verified the user-filter dropdown still layers correctly above the new
cards, since each card now also uses backdrop-filter (same stacking-
context concern fixed previously via .panel-filter-bar's z-index).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 02:56:32 +02:00
Maaxxs
6333e0533d Reports: rebuild the user filter as a custom dropdown with avatars
Native <select> cannot show per-option avatars or custom styling in the
popup list, so this replaces it with a button+panel component matching
the site's existing modal/picker language: trigger shows the current
selection (avatar + name, or a generic users icon for "all"), the
panel lists every reported user with their avatar, a gold highlight and
checkmark on the active one, opens/closes with a fade+scale animation,
and closes on outside click or Escape.

Fixed two bugs found while building it: the trigger button picked up
the generic button:hover gold fill (same class-vs-button:hover
specificity gap as .icon-button elsewhere), and the panel was rendering
behind the next .panel because that sibling's backdrop-filter creates
its own stacking context that traps z-index descendants - fixed by
giving the filter bar's own .panel a raised z-index of its own.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 02:50:57 +02:00
Maaxxs
c3f2f61d3e Reports: replace free-text filter with a dropdown of reported users
Builds a deduplicated, alphabetically sorted list of reported users
from the currently status-filtered reports and renders it as a
<select>. Filtering is now an exact match on reported_id (via a
data-reported-id attribute per row) instead of substring matching
against lowercased names, so it no longer also matches on the
reporter's name.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 02:44:12 +02:00
Maaxxs
5a2ff73836 Reports: add a live filter by reported/reporter user
A text input above the table filters rows client-side as you type,
matching against both the reported and the reporter name (each row
carries lowercased data-reported-name/data-reporter-name attributes).
Shows a "no matches" message when the filter empties the table. Also
consolidated the previously duplicated reports.js <script> include into
a single unconditional one at the bottom of the page, since the filter
needs it regardless of reports.manage permission.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 02:41:09 +02:00
Maaxxs
0dae6298af Reports: clean up table styling, show non-URL evidence as plain text
Table cells now top-align (was baseline, which misaligned rows once a
cell wrapped to two lines - reason/evidence, timestamp, action icons
all drifted vertically against each other). Reason and evidence get
their own spacing with a subtle divider instead of a cramped <br>.
Evidence is only rendered as a clickable "Beweis-Link" when it actually
looks like a URL (http/https); otherwise it shows as plain descriptive
text with a note icon instead of a dead link.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 02:37:38 +02:00
Maaxxs
828befceb1 Show success flashes as a centered popup with an animated checkmark
Only the "success" flash type moves to the new popup (a self-dismissing
centered overlay with an SVG checkmark that draws itself in, closes
automatically after ~2.8s or on click). Error/other flash types keep
the existing top banner, since those usually carry details worth
reading rather than a quick confirmation. header.php now splits
get_flashes() once into success vs. other so both the logged-in and
guest layouts pick up the same split.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 02:32:23 +02:00
Maaxxs
8588c2fd58 Reports: exclude roles from auto-mute; wire up new landscape backgrounds
Adds a per-role opt-out from the auto-mute mechanic (e.g. Gildenleitung):
members with an excluded role keep accumulating report points normally,
but the timeout itself is skipped, same as the existing server-owner
exemption. Configured the same way as the point weighting - a list of
currently-excluded roles plus a green "+ Rolle ausschliessen" popup for
adding more. Split reports.js into two independently-guarded modal
initializers so the weights and exclusions popups do not depend on each
other being present.

Also wires in the 7 new landscape images as page backgrounds
(web-optimized JPEGs generated via Pillow): raids gets landscape6 as
requested, and the rest are split out for Premades, Mitglieder,
Berechtigungsgruppen, Reports and the logged-out login/homepage view,
which previously had no themed background at all.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 02:27:37 +02:00
Maaxxs
ed4116414f Reports: two-step popup for adding role weights instead of a full list
Roles at the default weight (1) are no longer listed - only roles with
an explicit, non-default point value show up, each editable/removable
inline. A new green "+ Rolle hinzufuegen" button opens a two-step popup:
pick one or more still-unconfigured roles, then set a single point
value applied to all of them at once (new report_action.php action
add_weights). Fixed two CSS specificity bugs while building this
(input[type=text] beating a plain class on width, and the generic
form{flex-direction:column} rule leaking into the inline edit row).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 02:15:09 +02:00
Maaxxs
60661ef5fc Add Reports tab: view/delete/archive reports, points-based mute weighting
New reports.php lists incoming Discord reports (active/archived/all
filter) with delete and archive actions, gated by new reports.view/
reports.manage permissions. Auto-mute weighting is now configurable
from the same page: a settings panel lets admins set the mute point
threshold and a per-Discord-role point value (a report counts as many
points as the highest-weighted role its reporter holds, unconfigured
roles default to 1). Talks to the bot's extended reports API via new
helpers in includes/raids_api.php.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 02:05:21 +02:00
Maaxxs
c8a1748ae5 Raids: use a real date/time picker instead of a free-text field
The "Datum & Uhrzeit" input in raid create/edit is now
<input type="datetime-local">, styled to match the dark theme. The
backend still expects "TT.MM.JJJJ HH:MM" (the Discord bot parses it
verbatim), so raids.js converts the picker's value to that format via a
plain string reshuffle (no Date object, so no timezone drift) before
posting it as date_raw. The edit form prefills the picker from the
raid's existing timestamp.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 01:42:53 +02:00
Maaxxs
3b7ee9bb8a Rename site brand from Aion2 Gilde to Lumina Ascendens
Updates every remaining "Aion2 Gilde" reference (page title, logo alt
text, homepage heading, README, schema header, example config) to the
actual site name shown in the logo wordmark.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 01:38:55 +02:00
Maaxxs
1fb6a5fabd Nav: group sidebar links, add mobile slide-out drawer
Sidebar now separates Dashboard/Mein Profil/Mitglieder from Raids/
Premades with a thin divider, keeping the existing Admin section as its
own group below. On narrow screens the sidebar no longer collapses into
a horizontal icon strip - it becomes a full off-canvas drawer (same
layout and labels as desktop) toggled by a hamburger button in a new
mobile top bar, with a backdrop and Escape/backdrop-click/link-click to
close (assets/js/nav.js).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 01:37:12 +02:00
Maaxxs
c8d9fb6baf Dashboard: show own premade in a read-only roster widget
Adds a "Meine Premade" panel to the dashboard when the user belongs to
one, reusing the same 5-slot roster markup as the Premades page (read
only, links to /premades.php for management). Extracted the premade
name/avatar/slot-building helpers that premades.php already had into
includes/raids_api.php so both pages can share them instead of
duplicating the logic.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 01:31:34 +02:00
Maaxxs
8d82065220 Premades: bigger class icons, distinct class-action design
Member class icons were too small to read - bumped from 14px to 20px.
The own-class action tile no longer reuses the angled member-card shape
(clip-path border trick); it is now a plain rounded button with a gold
dashed outline so it reads as an action, not another roster slot.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 01:25:29 +02:00
Maaxxs
742a3c72c7 Premades: class icon next to member class labels, invite tooltip
Members class label now shows the matching class icon to its left,
matching the class-action tile. The non-clickable placeholder on
non-invitable empty slots now carries a tooltip explaining why (no
manage rights, or no eligible members) instead of silently doing
nothing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 01:21:05 +02:00
Maaxxs
89ba2ebb35 Premades: move class action out of member cards into own grid slot
The own class control no longer sits inside the lead/member card. It now
renders as a dedicated 6th roster-grid tile (the cell left free next to
slot 5) showing the current class icon and a Festlegen/Aendern label,
opening the same class-picker popup as before.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 01:10:44 +02:00
Maaxxs
2d3a3562c2 Premades: replace inline invite/class selects with popup modals
Invite now opens a member-list popup instead of an inline auto-submit
select, and class selection reuses the raid-signup modal's class-picker
grid, triggered via a "Klasse festlegen/ändern" button.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 01:05:15 +02:00
Maaxxs
1ca3f2e339 Premades: own group first, inline invite from empty slots, optional class
- premades.php sorts the list so the premade you're a lead/member of
  always renders first, instead of arbitrary API order.
- Empty roster slots are no longer static placeholders for managers:
  if there are invite-eligible linked members left, the slot becomes
  an inline "+ Mitglied einladen" select that submits on change,
  replacing the old separate invite dropdown in the manage panel
  (redundant now that every empty slot doubles as one).
- Members can optionally self-declare which class they play; shown
  under their name. Editable inline (auto-submit select) only on your
  own slot, read-only text for everyone else's. New premade_action.php
  action "set_class" re-validates that the caller actually belongs to
  that premade before writing (never trusts the posted premade_id
  alone). Extracted the class list shared with raids.php into
  AION_CLASSES in functions.php instead of duplicating it.
- Requires the matching Aion2_RaidPlaner bot/API change (separate repo,
  not tracked here): premade_members.class column, GET /api/premades
  returning class per member, and a new PATCH .../members/{user_id}
  endpoint - already implemented and saved to disk, bot needs a
  restart to pick it up. The bot's own premade overview embed and
  admin select menus were updated to show class too, so the Discord
  side stays visually consistent with the website.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 18:32:19 +02:00
Maaxxs
43aa0e9c66 Redesign Premades roster as a fixed 5-slot grid of angled cards
Replaces the pill chips with bigger rectangular cards (two per row,
corners diagonally cut for a parallelogram-ish look via clip-path)
matching the request for something closer to a raid-group roster. A
premade always shows exactly 5 slots - lead, accepted members,
pending invites, then grayed-out empty placeholders (a muted "+"
card) for whatever's left, so a half-full group still reads as a
group with open spots rather than a short list.

The lead's card gets a solid gold outer frame with a dark gold-tinted
fill and a crown icon; getting the tint right took a second pass -
using rgba() on the inner fill blended against the gold "border"
layer underneath instead of the page background, which just looked
like solid gold, so it's a flat dark-gold hex instead. The border
itself is simulated with a two-layer trick (colored outer + inset
inner, both clip-path'd) since clip-path crops away any border drawn
on a single element's diagonal edges.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 15:43:33 +02:00
Maaxxs
fc0ba31ea2 Redesign Premades member list as avatar chips with a crown for the lead
Replaces the plain bordered-row list with pill-shaped chips (avatar +
name), matching the site's avatar system - shows a member's real
uploaded picture when they're a linked website account, otherwise the
usual letter placeholder. The lead now appears as a chip too (previously
only shown via a header badge) with a gold-tinted border and a crown
icon; pending invites get a dashed border. Dropped the now-redundant
"👑 owner" header badge since the lead's chip covers that.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 15:37:40 +02:00
Maaxxs
357ff7eb1e Redesign the site logo as a circular winged badge + two-line wordmark
Replaces the flat horizontal wing/star mark with something closer to
the original artwork's composition: a circular medallion (double
ring, radial dark fill) with layered swept-feather wings on both
sides, a central blade with a small gem, and a star breaking the top
of the ring - next to a two-line wordmark, "LUMINA" large over a
smaller letter-spaced "ASCENDENS", both in a serif face matching the
original's typography more closely than the previous sans-serif
version. Verified at 40/56px (actual sidebar/navbar size) and at
large size to check the wing/feather detail.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 15:32:20 +02:00
Maaxxs
976c0e23b2 Use the current logo as favicon, add a new compact site logo
The original logo.png (the full illustrated artwork) is now generated
into a proper favicon set (favicon.ico, 16/32/48px PNGs, apple-touch-
icon) and wired up via <link rel="icon"> tags - it was never used as
the browser tab icon before.

logo.png itself doesn't work as the actual site logo in the sidebar/
navbar: at 56px/40px tall it's illegible (dense illustration + small
wordmark). There's no image-generation tool available in this session,
so instead of a new illustrated piece, added assets/images/logo-mark.svg:
a hand-built vector wordmark ("LUMINA" + a gold sunburst/wing emblem
with a small center gem) in the site's existing gold/dark palette,
echoing the wings/sigil/gem motifs of the original artwork but
designed to stay crisp at small sizes. Replaces logo.png in both
sidebar-brand and navbar-brand; the original PNG is left in place
unreferenced, still the source the favicons were generated from.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 15:28:13 +02:00
Maaxxs
42ebc82e63 Add a role display name, separate from the internal identifier
Roles get a new optional display_name (roles.display_name): everywhere
a role name is shown to users (dashboard badges, member list section
headers/badges, admin user list, role checkboxes in user_form.php),
it's now COALESCE(NULLIF(display_name,''), name) - falls back to the
existing internal name when unset. The name field keeps its original
role as the unique technical identifier; admin/role_form.php's label
now says so explicitly, and admin/roles.php lists both columns since
that's the one screen actually managing the identifier.

Also drops "aktiven" from the member list's count line, since the
page already only lists active accounts without needing to say so.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 15:28:00 +02:00
Maaxxs
15098dd530 Add a member list, grouped by role with a configurable roster order
New members.view-gated page (members.php) lists all active guild
members with avatar and roles. Roles get a "Reihenfolge in der
Mitgliederliste" field in admin/role_form.php (roles.roster_order,
nullable int): a role with a number gets its own section on the
page, sorted ascending; members without any such role fall into a
general "Mitglieder" section at the end. A member with several
ordered roles is placed by whichever has the lowest number. Shown
alongside the existing role fields in admin/roles.php too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 14:11:03 +02:00
Maaxxs
40acaa7d8b Show real Discord names in Premades instead of raw user IDs
Members without a linked website account showed as "Discord-Nutzer
<id>" since the site had no way to resolve their name. The bot API's
GET /api/premades now resolves display names via its own Discord
cache (owner_name per premade, name per member) - premade_name_for()
prefers that API-provided name, falling back to the linked website
account and finally the raw ID only if both are unavailable (e.g.
bot offline at request time).

Requires the matching api.py update (Aion2_RaidPlaner, not part of
this repo) to be deployed and the bot restarted, otherwise the API
just omits the new fields and the existing fallbacks apply.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 14:06:52 +02:00
Maaxxs
f8d4d21fed Add a mobile-friendly move dropdown alongside raid editor drag&drop
Native HTML5 drag&drop doesn't work on touch devices at all, so
moving players between groups in editor mode was effectively unusable
on mobile. Each signup item now also gets a compact <select> (built
from the same data-groups/data-locked-groups already used for the
signup modal) that moves the player on change - works via tap on
mobile and click on desktop, and excludes locked groups as targets
except the player's own current one.

Extracted the shared move logic (API call + DOM patch for counts/
empty-state/header badge) from the drag&drop drop handler into
moveSignupTo(), reused by both the drop handler and the new dropdown
instead of duplicating it.

The select is hidden outside editor mode and switches to a full-width
row below the name under 480px so it's easier to tap; verified via a
local preview at both desktop and mobile (375px) viewport sizes,
including that locked groups are correctly excluded from the options.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 13:58:22 +02:00
Maaxxs
40d8bec259 Add raid creation from the website and handle auto-repost on save
The bot API now lets the website create raids without knowing a
Discord channel: POST /api/raids accepts guild_id and resolves the
target channel via the server's /set_raidchannel default. Adds a
"+ Neuer Raid" panel on raids.php (raids.manage only) with the same
title/date/max slots/gearscore grid and requirements textarea as the
edit form, plus the group-name row editor reused without its lock
toggle (data-locks="0" on .group-editor, since creation doesn't
support locked_groups) - one shared component instead of a second
implementation. Needs raids_api.guild_id in config.php, documented in
README.md.

Also updates the editor's "Speichern" flow for the API's other
change: PATCH /api/raids/{id} now auto-reposts the Discord message
(via sync_raid_message) if it was deleted manually, returning the new
raid_id. update_raid() now returns the API response instead of
discarding it, and raid_edit_action.php surfaces a distinct message
when the id changed - the page reload right after already picks up
the new id either way, since it re-fetches the raid list fresh.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 08:09:20 +02:00
Maaxxs
4d4a030b95 Add a Premades management page mirroring the Discord bot's /premade
Ports the bot's premade feature set (cogs/premades.py) to the
website using the raid API's existing, already-deployed premade
endpoints - no bot/API changes needed:

- Overview of all premades: lead, accepted members, open invites
- Found/rename/dissolve your own premade
- Invite a linked website member (sends the same Discord DM with
  Accept/Decline buttons the bot itself sends), remove a member,
  transfer leadership
- "Meine Einladungen": accept/decline invites addressed to you
- premades.manage lets admins manage any premade, not just their own,
  mirroring the bot's admin-only "Admin-Verwaltung" flow

New permissions premades.view/premades.manage (view granted to the
default Mitglied role on fresh installs; existing installs need to
add them manually, documented in README.md). Every mutation is
re-validated server-side against the current premade list (ownership,
one-premade-per-person, can't remove the lead, accept/decline only
for an invite that's actually pending for that user) since the UI's
button visibility alone isn't an authorization check.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 08:00:45 +02:00
Maaxxs
70f050dc19 Turn Archivieren/Wiederherstellen/Endgültig löschen into icon buttons
Replaces the three raid action text-buttons with icon-only buttons
(archive box, restore arrow, trash can) using the existing
icon-button style; the label now only shows as a native tooltip on
hover via the title attribute. The delete button gets a new
icon-button-danger modifier so it still reads as destructive (red on
hover) instead of the default gold.

Also fixes a pre-existing bug this surfaced: .icon-button:hover only
set color/border-color, so the global button:hover rule's gold
background bled through on hover for every icon-button on the site
(edit toggle, modal close, etc.), not just the new ones.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:51:56 +02:00
Maaxxs
26c94647e0 Give the raid edit form's Anforderungen field its own row
Moves it out of the 4-column grid into a full-width block below and
swaps the single-line input for a resizable 3-row textarea, so
there's actually room to write instead of scrolling a one-line field.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:49:15 +02:00
Maaxxs
b5fec1d3c7 Redesign raid group editor and keep editor mode open while dragging
Two changes to the raid editor (raids.php/raids.js):

- Moving a member via drag&drop no longer reloads the page. It now
  patches the DOM in place (moves the list item, updates each
  group's member count/empty-state, and adjusts the header's
  "X / Y angemeldet" badge when bench vs. a real group is involved),
  so the editor panel stays open and multiple members can be
  reshuffled without re-entering edit mode each time. The form's own
  "Speichern" still reloads on success, since that's the point where
  the edit is actually committed.
- Replaces the single comma-separated "Gruppennamen" text field and
  the separate "Gruppen sperren" checkbox grid with one row per
  group (name input + inline lock toggle + remove button), plus a
  "+ Gruppe hinzufügen" button to append a new row. Group names and
  locked_groups are now read from these rows on submit instead of
  parsing a comma-separated string.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:47:02 +02:00
Maaxxs
5bf1f271dc Enlarge the dashboard welcome avatar (72px -> 100px)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:38:29 +02:00
Maaxxs
00fb78b71d Show the profile picture on the dashboard welcome panel
Reuses the same avatar+heading layout as Mein Profil (.profile-header)
so the greeting matches the picture, badges and all.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:37:32 +02:00
Maaxxs
22a61d28be Allow permanently deleting archived raids
Wires up the bot API's existing DELETE /api/raids/{id}/permanent
endpoint: archived raids now get an "Endgültig löschen" button next
to "Wiederherstellen" (raids.manage only), gated by a confirmation
dialog since it's irreversible - unlike the existing archive action,
which only soft-deletes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:34:55 +02:00
Maaxxs
08db95f3a3 Replace Discord avatar sync with self-service profile picture upload
Drops the Discord-derived avatar entirely (discord_avatar,
discord_refresh_token, discord_avatar_synced_at and the background
refresh via OAuth refresh token) in favor of members uploading their
own picture. "Mein Profil" now shows a larger (120px) avatar with a
pencil button pinned to its top-right corner; picking a file uploads
it immediately. Uploads are validated by actual image content
(getimagesize, not the original filename/extension) and stored under
a randomly generated name in assets/uploads/avatars/, which ships
with its own .htaccess disabling script execution so a disguised
upload can never run as PHP. Falls back to the existing letter
placeholder when no picture is set.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:34:47 +02:00
Maaxxs
1c9aa0761f Auto-refresh Discord username/avatar via OAuth refresh token
Previously the stored Discord identity only updated when a member
manually unlinked and relinked their account, so a changed Discord
avatar never showed up. The OAuth exchange now also captures the
refresh_token; discord_sync_avatar_if_stale() uses it to silently
pull the current username/avatar (throttled to once per hour) and is
called from profile.php, so opening "Mein Profil" keeps it current
without any re-consent flow. Adds discord_refresh_token and
discord_avatar_synced_at columns.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:26:02 +02:00
Maaxxs
4eba8d1fef Add onerror fallback for avatars and show a large one on Mein Profil
The Discord CDN image is now paired with a hidden letter-placeholder
sibling; if the <img> fails to load (stale avatar hash, a tracking
blocker on cdn.discordapp.com, etc.) it swaps to the placeholder
instead of leaving a broken image icon. Also adds the same avatar,
at a larger size, next to the heading on the Mein Profil page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:20:33 +02:00
Maaxxs
fa05cf3ef0 Add profile pictures: Discord avatar or a letter placeholder
Adds a discord_avatar column (captured from Discord's OAuth /users/@me
response and stored alongside discord_id/discord_username) and a new
avatar_html() helper: it renders the linked Discord avatar when one is
set, otherwise a circular placeholder with the display name's first
letter on a color picked deterministically per user from a palette
tuned for the dark/gold Lumina theme. Shown on the Startseite hero for
logged-in members and next to "Angemeldet als" in the sidebar footer.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:12:45 +02:00
Maaxxs
5f64c6fe75 Block moving members into locked groups in the raid editor
Drag&drop moves and the underlying raid_move_action.php had no idea
about locked_groups, so an admin could still drag a member into a
group that was explicitly locked. Locked drop zones are now flagged
in the markup, the frontend refuses the drag/drop, and the endpoint
rejects the move server-side as well.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:12:34 +02:00
Maaxxs
73b670a305 Block joining locked groups and fall back to the bench when none are open
The Wunschgruppe picker let members select a locked group, and the
signup endpoint didn't check locked_groups at all, so the wish could
still go through. Locked groups are now passed to the frontend and
rendered disabled with a lock icon, and the server rejects a locked
group the same way it already rejects a role-capped one. When every
group is locked (or the raid has none), the signup is now assigned
straight to the Ersatzbank instead of relying on the bot's own
auto-assign to skip locked groups.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 06:57:45 +02:00
Maaxxs
b839146219 Make Wunschgruppe chips equal width via grid instead of flex-wrap
group-picker used flex-wrap, so each chip sized to its own text and
rows looked uneven. Switching to a grid with auto-fit columns (same
approach as the class-picker) makes every chip the same width
regardless of label length, including custom group names.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 06:52:31 +02:00
Maaxxs
3f98fe342d Fix inconsistent class-picker box sizes and modernize signup modal
The class-picker-option buttons were shrinking to their text width
(width: fit-content from the global button rule) instead of filling
their equal-width grid cell, so each class box ended up a different
size. Pins them to 100% width and adds hover/selected transitions,
subtle elevation and a focus-visible outline to both the class and
group pickers for a more polished, consistent look.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 06:50:17 +02:00
Maaxxs
89a0fd75db Remove Schnellzugriff and Administration panels from dashboard
Those links already live in the sidebar nav, so repeating them on the
dashboard was redundant.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 06:45:42 +02:00
Maaxxs
ae24579372 Trim dashboard stats and fix stat-card text overflow
Renames "Aktive Raids" to "Anstehende Raids", drops the redundant
"Meine Anmeldungen" tile, and lets stat-card labels wrap instead of
overflowing when a compound word like "Berechtigungsgruppen" is
wider than the card.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 06:44:30 +02:00
Maaxxs
60535d60f0 Rework dashboard with stat cards, role/Discord badges and upcoming raids
Adds an at-a-glance overview (active raids, own signups, member and
role counts) plus a next-raids table, all built from the existing
Lumina panel/stat-card/badge components.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 06:41:39 +02:00