Commit graph

255 commits

Author SHA1 Message Date
Maaxxs
188f2e6189 Raids: "wichtig" auch in der Discord-Nachricht (Nezekan: oranger Rand, "WICHTIGER RAID") - Markieren schickt es an den Bot, der Abgleich holt es nach
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 17:38:47 +02:00
Maaxxs
07b5f505f0 Raids: Raid-Leitung kann Raids als wichtig markieren (Faehnchen auf der Karte) - orange hervorgehoben auf der Raid-Seite und dem Dashboard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:50:23 +02:00
Maaxxs
c24a80c245 Charaktere aus dem Spiel: Gearscore mehrmals abfragen und den hoechsten Wert (der letzten drei Tage) behalten - NCSoft liefert ihn oft zu niedrig
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 21:59:33 +02:00
Maaxxs
e840f151c8 Charaktere aus dem Spiel: unvollstaendige Antworten von NCSoft (Ausruestung/Skills/Werte fehlen) nachfragen und sonst den letzten vollstaendigen Stand behalten
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 21:54:35 +02:00
Maaxxs
dbc7a8110d Raid-Vorlagen nur fuer die Raid-Leitung (raids.manage) - wer nur Raids erstellen darf, sieht keine Vorlagen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 21:16:54 +02:00
Maaxxs
f4d3dd9ae5 Raids: Vorlagen fuer das Erstellen (Titel, Uhrzeit, Plaetze, Anforderungen, Lumipunkte, Gruppen samt Sperren) und Gruppen schon beim Erstellen sperren
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 20:47:28 +02:00
Maaxxs
ca451b59d2 Checkliste: woechentlich 7h Abyss
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 19:01:01 +02:00
Maaxxs
023f1fde82 Charaktere aus dem Spiel: Abgleich beim Ansehen aktualisiert auch Name und Stufe der Karte, Speichern schreibt keine alte Stufe mehr zurueck, Abgleich nach 15 statt 60 Minuten
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 04:55:53 +02:00
Maaxxs
4e25365b4c Checkliste: persoenliche Notizen je Charakter und woechentliche Shop-Kaeufe
Notizfeld je Charakter auf der Checkliste (speichert beim Verlassen, eigene Tabelle checklist_notes,
nur fuer den Besitzer), Notiz auch im Charakter-Kaertchen im Dashboard. Neuer Abschnitt "Shop" unter
Woechentlich: Geiststein der Wiederbelebung, Event-Geiststein (bis 16.12.2026) und Seelenkristall.
Patchnotes, Datenauskunft und Datenschutz ergaenzt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 20:17:19 +02:00
Maaxxs
eae0dc381e Karte: Pets einzeln als erledigt abhaken (Popup am Pet-Symbol), erledigte blass mit Haken oder ausgeblendet
Ein Pet gilt an allen Fundorten auf allen Karten als erledigt (Kennung = Symbol-Datei). Gespeichert je Konto
in map_pets_done ueber map_pets_api.php (Recht map.view). Pet-Kategorien zeigen erledigt/gesamt,
Schalter "Erledigte Pets ausblenden". Patchnotes, Datenauskunft und Datenschutz ergaenzt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 07:21:59 +02:00
Maaxxs
3ab618fa32 Checkliste: taegliche und woechentliche Aion-2-Aufgaben je Charakter abhaken (eigene Seite und Karte im Dashboard)
Charaktere aus dem Profil (Hauptcharakter = Main, sonst Twink, je Charakter einstellbar oder ausblendbar),
Haken in der Datenbank (checklist_ticks) mit Reset taeglich 9 Uhr und mittwochs 9 Uhr, Countdown und
"Nur offene". Neues Recht checklist.view fuer alle Gruppen mit dashboard.view. Patchnotes, Tour,
Datenauskunft und Datenschutz ergaenzt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 06:54:06 +02:00
Maaxxs
8125489afb Live-Daten: Reiter Skills (aktiv, Stigma, passiv mit Stufe) und Daevanion (Board-Raster mit freigeschalteten Feldern und Effekten); Popup-Inhalt wird erst beim Oeffnen geladen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 10:38:38 +02:00
Maaxxs
cd51e04ca9 Kurzinfo der Live-Daten als ein einziges klickbares Kaestchen statt "Details"-Link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 10:26:42 +02:00
Maaxxs
eb86d62e61 Live-Daten auf der Profilseite kompakter: Kurzinfo (Stufe, Gearscore, Kampfkraft) an der Charakterkarte, alle Details im Popup; Kampfkraft als 98,9k
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 10:24:14 +02:00
Maaxxs
a4d08eefb6 Charaktere live aus dem Spiel: Profil-Charaktere mit Aion 2 verknuepfen, Profilseite zeigt Ausruestung, Kampfkraft, Werte und Daevanion (Daten von aion2.plaync.com ueber unseren Server)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 10:15:03 +02:00
Maaxxs
e4e7a4ede8 Persoenliche Nachrichten der Legionsleitung: Popup beim naechsten Besuch mit Dringlichkeit (Hinweis/Bald/Wichtig/Dringend), Lesebestaetigung in der Benutzerverwaltung
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 03:40:15 +02:00
Maaxxs
579a182ba4 Geheime PvP-Taktiken (nur Strategen sehen sie) und versteckte Premades (nur Mitglieder und Leitung)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 08:59:00 +02:00
Maaxxs
e5cf44f4ea Datenschutz: neuer Hoster MC-HOST24 fuer Website und Bots, Postfach weiter bei Living-Bots, Fehlerprotokolle 14 Tage
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 08:59:00 +02:00
Maaxxs
7594cf652f Aufnahmestopp: Startseite zeigt an, dass wir niemanden aufnehmen (schaltbar unter Wartung & Ankuendigung)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:53:15 +02:00
Maaxxs
4cc774fb64 Neues Recht roles.preview: Vorschau nutzen, ohne Berechtigungsgruppen bearbeiten zu koennen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 16:55:17 +02:00
Maaxxs
3fadef318f Berechtigungsgruppen: Vorschau - Website als Gruppe ansehen (nur zum Ansehen, Aenderungen gesperrt)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 16:46:25 +02:00
Maaxxs
7ea521c26d Kalender: Moderation kann Termine von Mitgliedern bearbeiten
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 15:47:47 +02:00
Maaxxs
03b8cef5ba Elyos Allianz: versehentlich angelegte eigene Legion entfernt der Abgleich wieder
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 09:48:44 +02:00
Maaxxs
20a68921aa Benutzerverwaltung: Reiter Legion und Elyos Allianz; Legionsrolle stellt unsere Leute in die Allianz-Liste
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 09:44:39 +02:00
Maaxxs
dd4c2b4e47 Elyos Allianz: unsere Legion auch bei anders geschriebener Rolle erkennen
Eine Legionsrolle, deren Konten mehrheitlich zur Legion gehören, gilt als Lumina Ascendens und wird
nicht als verbündete Legion angelegt. Mitglieder der Legion bekommen nie eine verbündete Legion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 09:23:18 +02:00
Maaxxs
156c681542 Elyos Allianz: Legion folgt der Legionsrolle auf Discord (von Siel gemeldet)
Siel meldet über bot_api.php?action=consilium_legions, wer welche Legionsrolle hat. Die
Website ordnet diese Mitglieder ohne Login der passenden Legion zu (neue Legionen werden
angelegt, Lumina Ascendens übergangen). Im Profil und in der Verwaltung ist die Legion
dann gesperrt, bis die Rolle wegfällt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 09:11:07 +02:00
Maaxxs
74fdf2bbf8 Elyos Allianz: Raids, Kanäle und Rollen kommen von Siel
Neue Raids der Elyos Allianz postet Siel (config.php: siel_api), die Website holt die Raids
beider Bots und schickt Anfragen zu einem Raid an den Bot, der ihn gepostet hat. Kanäle und
Rollen des Servers der Elyos Allianz liefert Siel. Premades nur noch bei Legions-Raids.
Ohne siel_api-Block bleibt alles wie vorher bei Nezekan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 07:58:44 +02:00
Maaxxs
3a27c214c6 Elyos Allianz: DACH Elyos heißt jetzt Elyos Allianz, mit eigenem Logo in der Allianz-Ansicht
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 06:41:44 +02:00
Maaxxs
e810a58577 Members: cards without characters say that the profile is not set up yet
Asked for: a visual sign in the member list whether someone has set up their profile - variant A of the proposals
(a hint where the characters would be).

- members.php: a card without characters shows a dashed gold hint instead of the empty spot - "Profil noch nicht
  eingerichtet" while the whole profile page is empty, "Noch keine Charaktere" when it already has something else
  (Über mich, a visible gallery picture or a gear set shown on the profile; one UNION query, empty on error like
  the characters). Grid and list view.
- style.css: .member-profile-missing - a pill on one line; in narrow cards (phones) it wraps into a rounded box with
  the icon on the first line.
- Patch note and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 19:26:30 +02:00
Maaxxs
8b59cb503b DACH Elyos: the Consilium Elyseum is now called DACH Elyos across the website
Asked for: "das consilium elyseum wurde umbenannt zu DACH Elyos. pass das bitte an auf der website".

- CONSILIUM_NAME is 'DACH Elyos', and every visible text follows it: sidebar, the alliance page, member tab, raid
  area, calendar audience and badge, iCal note, map live sessions and share buttons, admin pages (Verwaltung ->
  DACH Elyos, Discord-Bot, Berechtigungsgruppen), flash messages, log entries, permission descriptions (synced to
  the database by schema_sync_core_permissions()) and the privacy page.
- The name takes no article, so the sentences around it changed too: "von DACH Elyos", "in DACH Elyos", "für DACH
  Elyos" instead of "des Consiliums", "im Consilium", "für das Consilium". The bot channel label is now
  "Raid-Kanal DACH Elyos".
- Internal names stay "consilium": permission keys, tables, settings, files and URLs (?bereich=consilium,
  ?tab=consilium), so nothing in the database or in existing links changes. includes/consilium.php says so.
- README: section renamed to "DACH Elyos" (anchor #dach-elyos).
- No patch note (alliance topics stay out of them). The bot's two "Consilium" error texts in live_tactics.py never
  reach the page - the map only reads the status code - so the bot needs no update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 14:15:10 +02:00
Maaxxs
a62dc8cb25 Developers: Damaskar is a developer of the website too
Asked for: give Damaskar the developer tag. The tag comes with developer status (DEVELOPER_DISCORD_IDS): always all
permissions, account editable only by developers, approved right away at the Discord login.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 03:08:41 +02:00
Maaxxs
81274e70d7 Discord sync: wait briefly and retry when Discord rate-limits, and name the real reason when a sync fails
Reported: the manual Discord sync said "Discord war gerade nicht erreichbar". Since the Consilium has its own server,
every sync asks Discord twice in a row (legion and Consilium server), and setting up linked groups triggers extra
syncs - most likely Discord answered 429.

- discord_fetch_member(): on 429 wait retry_after (up to 5 s) and try once more; if Discord still refuses, a clear
  message ("Discord bremst gerade zu viele Abfragen - in N Sekunden noch einmal versuchen").
- discord_live_check() remembers the reason (discord_last_error(), only own messages, no database errors) and writes
  it to the error log; the manual sync in the user form and in the profile show it instead of "nicht erreichbar".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 03:06:18 +02:00
Maaxxs
b96bbd1780 Consilium: own Discord server - its roles decide who sees the Consilium; rights for Consilium raids and entries
Asked for: the alliances move to their own Discord server with the roles Force Commander, Legion Lead, Legion
Officer and Legionär. Decided: everyone with a role there sees the Consilium (our members too), no role per legion
(assignment stays on the website), new accounts are approved by our admins, rights per role as planned, a
permission for Consilium calendar entries that is assigned later. Server ID 1553882046793777283.

- Two Discord servers: settings.consilium_guild_id (seeded, Verwaltung -> Discord-Bot with a check whether the bot
  is there); a group's role lies on one of them (roles.discord_guild_id, NULL = legion, schema 71). Login and the
  periodic sync read both memberships (discord_fetch_memberships/discord_apply_memberships) and sync groups per
  server; name, avatar, joined date and classes come from the legion server, for allies from the Consilium server.
- Leaving: whoever leaves a server loses its groups; an account is deactivated only when it is on neither
  (discord_member_left_guild; bot_api.php takes in_guilds from the bot, the sync checks all servers, older bot
  versions cannot deactivate Consilium members). Logout text no longer names a server.
- Group form lists the roles of both servers, the group list marks Consilium roles; Consilium-Raids channel is
  chosen from the Consilium server's channels.
- Rights per area: consilium.raids / consilium.raids.manage for Consilium raids (create, manage, restore, delete),
  raids.create / raids.manage only for legion raids (raid_area_can_create, raid_area_can_manage_all,
  raid_can_manage asks the raid's area). consilium.calendar: only with it Consilium calendar entries (allies without
  it cannot add entries; legion members with it get "Für wen?" with legion/Consilium).
- Consilium member list: everyone with a role on the Consilium server - our legion as its own section, allied legions,
  without legion - with the Consilium ranks as tags; legion list and profiles leave the Consilium groups out for
  those who do not see the Consilium. Allies pick their class in the profile.
- Consilium admin page: setup checklist for the new structure with the groups of the Consilium server and their
  rights (setup only for roles.manage). Privacy page, README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 02:55:59 +02:00
Maaxxs
9eb340684e Consilium: only accounts with consilium.view see it - normal legion members see nothing of it
Asked for: normal members must not see anything of the alliances - not the alliance member list, not their
calendar entries - and the alliance things out of the patch notes.

- consilium_can_view() is now consilium.view only (before: every legion member). Normal members get no menu entry,
  no Consilium page, no member-list tab, no Consilium raids (raids page, dashboard, calendar) and no share button
  or Consilium hints on the map (tactics_api.php: consilium flag and consilium_share need consilium.view).
- Calendar: Consilium entries only with consilium.view - calendar_can_view(), the iCal subscription, the "Für wen?"
  option and the moderation queue and its counter.
- member.php: profiles of allied members only for those who see the Consilium.
- Allies no longer counted in legion lists: Lumipunkte rank on the dashboard, premade invite candidates, class
  counts on the professions page.
- Map: normal members in a shared session see guests like other participants, without 🤝 and legion.
- Patch note about the Consilium removed; permission description updated (schema 70); admin setup hint and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 02:14:44 +02:00
Maaxxs
342301b082 Consilium: guests see only their shared tactic and go back to the session list when the share ends
Asked for: when the share for the Consilium ends, everyone from the Consilium is sent back to the live overview
(so far only the live view ended and the map stayed open); during the session they may not switch maps or see the
categories - really only the tactic.

- map_frame.php: Consilium guests get the map viewer only for a running shared session (?karte=...&taktik=...),
  otherwise the whole page goes back to the session list; the viewer gets LUMINA_GUEST.
- Viewer guest mode (body.guest-mode): no map picker, no markers or categories (not even loaded), no location
  sharing, no tactic list - only the tactic of the session (tactics_api.php ?taktik=).
- When the share ends (relay event, tactic gone, no ticket), TacticController.endGuestSession() sends the top page
  to map.php?beendet=stopped|ended with a note why; the page around the map also checks every 15 s.
- Calendar: no location picker for guests, meeting points are plain text for them (map_link_html()).
- README, patch note text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 02:04:24 +02:00
Maaxxs
5aaf44eaec Consilium Elyseum: allied legions get their own view - own raids, calendar entries, member tab and shared live map sessions
Asked for: alliances ("Consilium Elyseum") with their own view, a member-list tab with the allied legions and their
members, an own raid area, a calendar that shows them only alliance entries, and live map sessions the legion can
share with them - watching only, or drawing only with an extra permission. There is one Discord role "Consilium
Elyseum" for all allies, so which legion each ally belongs to is stored on the website.

- Permissions consilium.view / consilium.draw / consilium.manage. An account with consilium.view but without
  dashboard.view is a guest of the Consilium (consilium_only(), sql_is_consilium_only()) and sees only the alliance
  area; raids, calendar and map stay restricted even with extra rights like raids.view or map.view.
- includes/consilium.php; consilium.php is the allies' start page instead of the dashboard (next raids and entries,
  legions, running shared map sessions); admin/consilium.php: setup hints, allied legions, member assignment.
  users.consilium_legion_id, table consilium_legions (schema 69); allies pick their legion under Mein Profil.
- Members: new tab "Consilium Elyseum" (legions with their members), the only tab allies see. Legion-only lists
  (dues, Lumipunkte, member pickers, raid and activity points) leave allies out.
- Raids: two areas, legion and Consilium, told apart by the Discord channel ("Consilium-Raids" under Verwaltung ->
  Discord-Bot, settings.consilium_raid_channel; the bot API returns channel_id). Allies only see and sign up for
  Consilium raids, which give no Lumipunkte; raids created in the Consilium area are posted to its channel.
- Calendar: audience "Consilium Elyseum". Allies see only those entries and the Consilium raids (also in their iCal
  subscription), their own entries are always Consilium entries; the public calendar shows no Consilium raids; the
  legion sees them marked with 🤝.
- Map: whoever may edit a public tactic shares its running live session with the Consilium (consilium_share, logged).
  The share lives in the bot's live relay and only for that session: it ends with "Freigabe beenden" or 60 s after
  the last legion member left; making the tactic private or deleting it ends it as well. Allies see only running
  shared sessions under Karte (and on their start page), join and watch; with consilium.draw they add strokes,
  areas, points and text - no figures, nothing moved, erased or undone, no tactics, steps, copies or history.
  Enforced in tactics_api.php (guest branch: shared tactics only, only live_token and shape_create) and in the relay
  (guest tickets, event whitelist, guests are disconnected when the share ends). Needs the bot update (api.py,
  database/db.py, live_tactics.py).
- Navigation, privacy page, patch note, README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 01:36:49 +02:00
Maaxxs
719dc82fb5 Wiki: pictures open in the large view on click; the editor previews the page as it will look
Asked for: "wenn man eingebundene bilder anklickt, maximiert werden (Großansicht)" and "im editor eine Vorschau
haben. damit ich sehe wie es dann am ende aussieht".

- assets/js/lightbox.js: event delegation for containers with data-lightbox-images - every picture in a wiki page
  opens the gallery's large view, paging through all pictures of the page with the alt text as caption; a picture
  that is itself a link keeps following the link. wiki.php loads it for the page content.
- wiki_edit.php / assets/js/wiki-editor.js: view switch "Schreiben" / "Nebeneinander" / "Vorschau" (side by side is
  hidden below 900 px). The preview shows the page as the wiki will: same width next to a note instead of the table
  of contents, with path, number (new pages get the next free one), title and WIP mark from the form.
- 'eye' icon, styles, patch note, README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 01:36:30 +02:00
Maaxxs
27470d0fd7 Accounts: whoever leaves the Discord server is deactivated; on return the account waits for approval again
Asked for: "wenn ein mitglied die legion verlässt, soll das benutzerprofil deaktiviert werden" - decided: leaving the
Discord server (also kick or ban) counts as leaving the legion; a returning member goes back to "Wartet auf
Freischaltung".

- includes/discord_auth.php: discord_member_left() disables active/pending accounts (status disabled, users.left_server_at,
  session_epoch + 1, Discord groups removed, log entry "Automatisch (...)"); developers stay untouched.
  discord_member_returned() puts such accounts back to pending (left_server_at cleared); accounts disabled by hand
  stay locked. discord_live_check() calls both, so the session check and "Jetzt mit Discord abgleichen" deactivate too.
- bot_api.php for the new bot cog (cogs/legion_members.py): member_left, member_joined, legion_accounts (Discord IDs of
  active/pending accounts) and legion_sync (the ones the bot misses on the server). Other guilds are ignored; a sync
  that would disable more than half of the accounts is refused with a warning in the log (at most once a day).
- discord_callback.php: a Discord login of a returned member puts the account back to pending instead of "gesperrt".
- includes/auth.php: logout message says the account was deactivated.
- Admin: users list shows "Discord verlassen am ...", the user form a hint; setting the status by hand clears the mark.
- Schema version 67 (users.left_server_at); account deletion clears it.
- Privacy page (automatic deactivation, bot sync), patch note, README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 23:30:37 +02:00
Maaxxs
6e486b07ef Uploads: pictures no longer arrive black when the browser cannot shrink them (Firefox)
Asked for: a member's 4K screenshot (7.8 MB) arrived as a black picture in the gallery and as portrait - with Firefox;
the same file worked for others.

- assets/js/image-resize.js: the shrunken picture is checked before sending. The canvas is tested for readback first
  (fingerprinting protection returns placeholders), the result is sampled, and the encoded blob is decoded again. An
  empty, invisible or single-colour result gets a second try via WebGL, otherwise the original goes to the server,
  which shrinks it itself. The old code sent a 12 KB black JPEG in these cases.
- Transparent pictures stay PNG (as JPEG the transparent parts turned black). A broken alpha channel (almost all
  transparent, but a whole picture underneath - some games save screenshots like that) is read without the alpha
  channel through WebGL, since a 2D canvas loses the colours at transparent spots.
- includes/functions.php: store_uploaded_image() makes pictures with a broken alpha channel opaque before resampling
  (image_alpha_is_broken(), GD colorize with alpha -127) and, with $rejectBlank, refuses completely black or
  invisible pictures with a hint to try another browser (image_is_blank()); profile_store_upload() uses it for
  gallery, portraits, character pictures, backgrounds and premade banners.
- "Das Bild ist zu groß" names the webspace limit (upload_max_filesize, php_ini_bytes()).
- Patch note and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 23:17:37 +02:00
Maaxxs
9fe7b4d1db Members: ranks keep their tag in the rank view, also a group with its own section like Brigadegeneral
Asked for (Gurkenking via Discord): "bei mir gerne auch briga anzeigen, wie bei anderen auch tribun etc".

- members.php: sorted by rank, the list still hides the tags of groups with their own section, except groups that
  are also a rank (roles.rank_order) - those show their tag like Tribun or Centurio. Other sort orders and the
  profile pages show all tags as before.
- admin/roles.php: the Rangordnung now offers every group, also those with their own section in the member list
  (e.g. Brigadegeneral as the highest rank); the help text explains the tags. admin/role_form.php: the hint at
  "Reihenfolge in der Mitgliederliste" says the tag drops in the rank view unless the group is a rank.
- Takes effect once Brigadegeneral is added under Berechtigungsgruppen -> Rangordnung.
- Leadership patch note and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 22:40:27 +02:00
Maaxxs
406b7643cd Calendar: personal iCal subscription for Google, Outlook and Apple with the raids and entries you can sign up for
Asked for: Damaskar's proposal (iCalendar/webcal feed with a personal token URL in the profile, "Feed-URL neu
generieren", token blocked when a member leaves or is banned) - "da soll man aber nur die synchronisiert werden für
die man sich auch anmelden kann".

- calendar_feed.php + includes/calendar_feed.php: calendar_feed.php?t=<48 hex> returns an .ics (RFC 5545, UTC, folded
  lines, ETag/304) without login, also in maintenance mode. Content = what you can sign up for: active raids
  (raids.view + linked Discord) with your own state (signed up with class and group, bench, declined, invite pending),
  archived ones only if you were in; member entries where "Bin dabei" is possible (audience rules of
  calendar_audience.php), your own and joined ones. Past entries stay 90 days if you took part. No bot event
  reminders and no names of other members; TRANSP busy/free by participation.
- New table calendar_feeds (one per account, schema version 66): token in plain text so the profile can show it
  again, looked up by its SHA-256; bound to users.session_epoch like "Angemeldet bleiben" (forced logout, lock and
  deletion request invalidate it). Unknown address 404; invalid address, locked account or no rights 403; leaving the
  Discord server (checked at most hourly via discord_live_check) deletes the feed; 60 fetches per hour and feed
  (audit log entry); bot down 503 so the apps keep their last state. No lockout per IP - shared fetchers like Google
  would be hit by stale addresses.
- profile.php: "Kalender-Abo" panel - set up, copy, one-click links for Google Kalender, Outlook and webcal, manual
  steps per app, last fetch with the app type, new address / end subscription with confirmation; calendar.php links
  to it.
- Privacy page, data export (kalender_abo without the address), account deletion, patch note and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 14:11:43 +02:00
Maaxxs
42e3fede77 Premades: overview grouped by lead, collapsed by default; leads and their premades in the leadership's order
Asked for: "baue ein, dass die Premade-Übersicht in Web bei der Standardsortierung gestaffelt aufgereiht wird nach
nutzer. standartmäßig ist alles eingeklappt ... reihenfolge der benutzer und den premaids innerhalb des benutzers
können wir frei konfigurieren".

- premades.php: without a chosen sort, one collapsible row per lead (<details class="premade-group">: avatar, name,
  number of premades and how many have a free slot, "Du bist dabei" for own premades, open applications for those who
  decide on them), premades without a lead in their own group "Ohne Lead". With a sort chip the cards stand flat in
  #premade-list as before.
- includes/premade_order.php: premade_order_groups() groups by lead; new table premade_lead_order (Discord ID of the
  lead, 0 = without lead; schema version 65) next to premade_options.sort_order. Leads and premades without a place
  stand at the end. premade_action.php "order" saves lead_order[] and order[] (log entry lead by lead).
- Editor "Standard-Reihenfolge festlegen": nested list, leads with their premades below; assets/js/tag-order.js now
  orders every list of a form on its own (arrows, drag & drop), the roles page works as before.
- assets/js/premades.js: open groups are remembered in sessionStorage (premades-open) only for reloads (live update,
  after an action on the page, back/forward) - a new visit shows everything collapsed. The search opens the groups with
  hits and hides the others, afterwards the own state returns. Links to a premade (#premade-5, also the bot's
  "Bewerbung ansehen") open its group. assets/js/live.js ignores details with data-live-restore, so an open group
  does not block the automatic reload.
- Live fingerprint, data reset and account deletion include premade_lead_order; privacy page lists premades-open;
  patch note and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 02:37:17 +02:00
Maaxxs
25394fdfae Accounts: the website username follows the Discord username (Discord-only logins)
Asked for: "der benutzername muss auch automatisch angepasst werden".

- discord_apply_member() (session check every 5 minutes, "Jetzt mit Discord abgleichen", Discord login) now also
  calls discord_sync_username(): accounts without password login get the username from the current Discord name,
  cleaned like at account creation (discord_username_base()) and unique (discord_unique_username() skips the own
  account, a taken name gets _2 and stays stable). Accounts with password login keep their login name.
- Members who renamed before are caught up at their next check, since their username no longer fits the Discord
  name. Profile links use the account id and stay valid.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 02:06:00 +02:00
Maaxxs
9d5daf8451 Profile: the Discord username follows renames on Discord
Reported: "bei mein profil muss der benutzername vom discord auch immer aktuell sein, wenn man sich umbenennt steht
noch der alte benutzername da".

users.discord_username ("Verknüpft als …" in "Mein Profil") was only set when logging in with Discord - whoever stays
logged in kept the old name after renaming. The session check (every 5 minutes, or "Jetzt mit Discord abgleichen")
already gets the username from Discord; discord_apply_member() now stores it as well, if Discord sends one. The
message after the manual check says that name, classes and groups are up to date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 02:00:24 +02:00
Maaxxs
5c986aac7a Gear planner: autosave gets its own rate limit; patch notes about the legion dues removed
Asked for: "was machen wir bezüglich des Aktionslimit ... wenn man den gearplaner nutzt stößt man schnell an das
limit" and "lösche alle patchnotes in bezug auf legionsbeiträge".

- includes/security.php: the gear planner saves every change at once (save_slot, save_skills, save_plan,
  save_macro in gear_action.php) - clicking through a Daevanion board or levelling skills filled the general limit
  of 120 actions in 5 minutes, and then nothing worked on the whole site for minutes. These actions now count in
  their own bucket "gear" with 1,200 in 5 minutes (SECURITY_GEAR_AUTOSAVE) and no longer against "post"; hitting
  it only pauses the planner (429 with a message in its status line, log entry "Tempolimit erreicht").
- includes/patchnotes.php: entry for the gear planner; the entries "Legionsbeiträge" (2026-09-26-h) and
  "Erinnerung an den Legionsbeitrag" (2026-09-27-e) are deleted.
- README: the limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 01:57:22 +02:00
Maaxxs
a7efc668f7 Premades: members may lead up to three premades instead of one
Asked for: "das limit für leitung in einer premade soll bei standard leuten von 1 auf 3 gehoben werden".

- includes/raids_api.php: PREMADE_LEAD_MAX = 3 and premade_may_lead_another() - fewer than three led premades, or
  premades.lead_multiple for any number.
- premade_action.php: founding (for oneself or by the leadership with a lead) and "Leitung übertragen" use it; for
  a transfer the website tells the bot allow_multiple_lead, since the bot only knows "no other" or "any".
- premades.php: founding form, lead picker and transfer candidates follow the same rule; texts name the limit.
- premades.lead_multiple now means more than three (description in includes/permissions.php, synced on the next
  page view). Patch notes and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 01:43:04 +02:00
Maaxxs
f02b980a97 Legion dues: the bot reminds open members by DM; premades open in the leadership's order
Asked for: "bei den Legionsbeiträgen soll der bot auch die leute drauf erinnern dass ihr beitrag fällig ist ...
die nachricht ist frei definierbar über die website (mit markierungen und erwähnungen) ... eine standardnachricht,
welche zur Legion passt" and "es soll wenn man die seite aufruft standardmäßig die von uns definierte reihenfolge
angezeigt werden".

Dues reminders (includes/dues_reminders.php, admin/dues.php "Erinnerungen per Discord"):
- Who: everyone still open in the running cycle with a linked Discord - not who paid, is exempt or sits in a
  suspended cycle. Automatic (switch, off by default) at the start of the cycle and/or N days before its end, at
  a set hour (settings dues_remind_*); a missed moment is caught up for 24 hours at most, so switching it on in the
  middle of a cycle sends nothing. "Jetzt erinnern" for everyone open right now and "Testnachricht an mich" with
  the text from the form, saved or not.
- The text is free: Discord formatting, placeholders {name}, {erwähnung}, {betrag}, {zyklus}, {bis}, mentions of
  members and channels (channel list from the bot API), toolbar and live preview with the own values
  (assets/js/dues-remind.js). The default text greets with "Arieluma" and is stored empty so improvements arrive.
- Flow: the bot (new cogs/dues_reminders.py, already deployed) asks bot_api.php?action=dues_reminders every minute;
  the website queues due reminders in dues_reminders (at most once per member, cycle and kind) and hands out the
  waiting ones with the finished text, the bot sends them without pings and reports back via
  action=dues_reminders_done, then logs to the log channel. The text is dropped after sending, the log stays 90
  days. The section lists the runs of the running cycle with delivered and not deliverable (with reason).
- Schema version 64 (table also in sql/schema.sql); privacy policy (what is stored, the bot, retention), data export
  section, account deletion, data reset, audit log; patch notes and README.

Premades:
- The page opens in the order the leadership set: own premades are no longer pulled to the top. A chosen sort only
  lives in the address (?sort=) - it survives a reload, not a new visit; the former browser entry
  lumina_premades_sort is removed (and left the privacy policy). Patch notes of the sort and order entries adjusted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 01:32:43 +02:00
Maaxxs
1c673a86f1 Premades: find players on the page, and a standard order the leadership sets by drag and drop
Asked for: "füge noch ein, dass man nach nutzern suchen kann" and "es soll zusätzlich eine standard sortierung
geben, da ist dann oben bei der sortierung nichts angewählt. diese standard sortierung kann von der gildenleitung
angepasst werden per drag und drop was die reihenfolge angeht".

- Search (premades.php, assets/js/premades.js): a search field above the sort chips finds players by the shown
  name, website and Discord name and the names of their characters (lead, members, reserve, open invitations)
  and premades by their name. Premades without a match are hidden; found players get a gold frame while the
  other places of the card step back (the gold lead would look like a hit otherwise). The term stays in the
  address (?q=) so it survives a reload; count and an empty note like on the raid page.
- Standard order (includes/premade_order.php): premade_options.sort_order per premade, schema version 63. The
  leadership (premades.manage) arranges it below the chips under "Standard-Reihenfolge festlegen" with the same
  list as the tag order (assets/js/tag-order.js: handle, arrows, unsaved note). premade_action.php "order" keeps
  premades founded meanwhile at the end, drops dissolved ones and logs before/after. Premades without a place
  follow in founding order. The server delivers the page in this order (own premades still first), each card
  carries data-sort-default.
- Sorting: no chip is active by default any more - then the standard order applies, and a second click on the
  active chip goes back to it.
- Live updates also watch sort_order, the data reset area mentions the order. Patch notes and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 00:56:11 +02:00
Maaxxs
867e1cd7fd Premades: the page can be sorted by founding, name, free places or members
Asked for: "baue bei der premaids seite eine sortierung ein".

- premades.php: chips above the list (from two premades on, hidden without JavaScript) - Älteste (founding
  order, as the server sends it), Neueste, Name, Freie Plätze (most free places in the group first, then a free
  reserve place) and Mitglieder (biggest first). Each card carries data-sort-name/-members/-free/-reserve and
  data-mine; the cards now sit in #premade-list.
- assets/js/premades.js: sorts the cards, the own premades (lead or member) stay on top in every order. The
  choice is kept in localStorage (lumina_premades_sort). After an action the page jumps to a premade
  (#premade-5) that may stand elsewhere after sorting, so a fresh navigation scrolls to it again; on a reload
  (also by the live updates) the browser restores the position.
- Privacy policy lists the new browser key, patch notes and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 00:39:37 +02:00
Maaxxs
d8ce29efc9 Premades: the leadership sees the apply button too, others decide on its own applications
Asked for: "füge ein, dass auch admins den bewerbenknopf bei den premaids sehen". Until now the button was
hidden for everyone with premades.manage, since they can put anyone into a premade directly.

- premades.php: the apply row shows for everyone who is not in the premade yet (the lead is), also below the
  list of open applications. A manager's list and the badge on the card leave out the own application.
- premade_action.php: application_accept/_decline refuse the own application - the lead decides, for premades
  without a lead someone else from the leadership.
- premade_applications_badge(): own applications don't count at the menu item "Premades".
- README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 00:31:08 +02:00
Maaxxs
1c0109264a Premades: apply for a place in the group or on the reserve, leads accept or decline on the website
Asked for: "füge ein, dass man sich für premaids auch bewerben kann" - every premade with a free place takes
applications unless its lead switches them off, and the bot sends DMs (a new application to the lead, a decline
to the applicant). Later: "man soll sich auch auf reserveplätze bewerben können".

- includes/premade_applications.php: the applications live on the website (premade_applications: premade ID and
  name, lead at that time, applicant, class, wished place group/reserve, message, status open/accepted/declined/
  withdrawn/closed, reason, who decided when; premade_options.applications_open). Rules: one open application
  per premade, at most 3 open in total, 7 days pause after a decline by the same premade, none while invited,
  when full or switched off. premade_applications_sync() matches them with the bot: applications of dissolved
  premades are closed, whoever is in the premade by now counts as accepted, name and lead stay current,
  decisions expire after 30 days.
- premades.php: "Bewerben" under every other premade with a free place. The popup asks for the place (group or
  reserve, taken places greyed out; the group is preselected unless it is full), the class (main preselected)
  and an optional message. "Meine Bewerbungen" lists the own ones with the answer for 14 days, withdrawing
  works there and on the card. Leads and the leadership (premades.manage) see open applications on the card,
  also outside the edit mode, with a "Reserve" tag and a confirmation that names the place; their number shows
  at the menu item "Premades" (premades without a lead count for the leadership). The edit mode switches
  applications off and on.
- premade_action.php: apply (checks the rules and the chosen place again), withdraw, application_accept (the
  bot puts the applicant on the wished place, on the other one if it was taken meanwhile; an open invitation
  becomes the membership on its place), application_decline (optional reason), applications_toggle. An
  invitation to someone with an open application carries its class, also when accepted in Discord.
  Dissolving a premade closes its applications, a new lead takes over the open ones.
- includes/raids_api.php: add_premade_member() passes the wished place and returns the place the bot gave;
  premade_free_slots().
- Bot (already deployed, with a backup): POST /api/premades/{id}/applications sends the DMs (to the lead with
  place, class, message and a link to the card; to the applicant with the reason), POST /members with source
  "application" tells the applicant where they ended up and, when the leadership accepted, the lead;
  add_premade_member() takes the wished place. If the bot cannot send a DM, the application is stored anyway.
- Live updates of the page and the menu number, schema version 62 (tables also in sql/schema.sql).
- Privacy: privacy policy (what is stored, who sees it, for how long), data export section premade_bewerbungen,
  account deletion, data reset area "Premade-Bewerbungen".
- Patch notes and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 00:25:13 +02:00
Maaxxs
785eab611e Legion dues: an admin page tracks who paid, with a rhythm, exemptions and suspended cycles
Asked for: the legion collects dues in Kina; a separate, purely administrative page to set a cycle and an
amount, tick off who has paid, exempt members for one or more cycles and suspend a cycle for everyone. On
the site it is called "Legionsbeiträge" and the currency "Kina", like everywhere else.

- includes/dues.php: settings dues_amount/_unit/_every/_start/_anchor (every 1-12 weeks or months). The
  cycles (dues_cycles) form a series from the anchor (months on the same day, in shorter months the last
  one) and exist up to the running one plus the next. Until something is ticked or suspended, a new setting
  rebuilds all cycles; afterwards a new amount applies to the coming cycles (optionally the running one) and
  a new rhythm starts after the last cycle that has begun or has data. The amount also takes 500k, 1,5kk or
  2 Mio.
- Who owes: every active account that was a member when the cycle started (Discord join, else account
  creation), unless exempt or the cycle is suspended; a ticked payment always counts. Former members only
  show up with payments in the visible cycles.
- admin/dues.php: key figures (running cycle, paid, collected of expected, arrears), a table of members x
  the last six cycles with paging, a click toggles a payment (dues_entries with who and when; without
  reload via assets/js/dues.js, the button sends the state it sets), search and filters (open, paid,
  exempt, arrears), suspend/resume per cycle with an optional reason, exemptions (dues_exemptions:
  members, from which cycle, 1-12 cycles or until further notice, reason; end or delete) and the settings.
  On phones the table opens at the running cycle, the exemption list stacks.
- admin/dues_action.php: settings, toggle (JSON with the redrawn cell, column figures, arrears and key
  figures), cycle, exempt_add/_end/_delete. Settings, suspensions and exemptions go to the audit log and the
  Discord log channel, ticks only to the audit log (area "Legionsbeiträge"); ticking is exempt from the
  general form rate limit.
- New right dues.manage (Administrator and the groups with roles.manage), menu item in the admin section
  with a coins icon, schema version 61 (tables also in sql/schema.sql).
- Privacy: privacy policy (what is stored, only the leadership sees it, account deletion), data export
  section legionsbeitraege, account deletion removes exemptions and keeps payments without the name, data
  reset area.
- Patch notes (leadership) and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 23:33:22 +02:00
Maaxxs
247dad4cf4 Gear planner: macro entries point to a key of the skill bar, like in the game
Reported in the bug tracker: "Es stehen die einzelnen Skills zur Auswahl. Das ist so falsch. Richtig kann
man lediglich die Schnellzugriffstaste auswählen." In Aion 2 a macro entry chains buttons, not skills: it
points to a slot of the skill bar, and when the macro gets there, the game uses the skills stacked on that
slot (rows 0-3) one after another.

- Skill bar per skill preset (includes/gear_macro.php): the 12 slots of the game with their default keys
  (GEAR_MACRO_KEYS: 1-8, Q, E, left and right mouse button, in three groups of four) and up to
  GEAR_MACRO_KEY_ROWS = 4 active or stigma skills per key in rows 0-3 (row 0 is the one the bar shows).
  Drawn like the skill window: one column per key with rows 3 to 0 and the key below; on narrow screens
  (container query) two lines of six keys.
- A click on a field opens the skill picker below the bar: place, replace (a skill already on the key
  swaps rows), use earlier/later, remove. Skills that are already on a key carry its label. "Leiste von
  Preset N übernehmen" copies the bar of another preset (asks first if the bar is not empty). Without
  JavaScript the field submits cell=Key:Row and the page comes back with the picker open.
- Macro entries are {"k": key, "d": delay}. "Makro hinzufügen" and the icon of an entry open the key
  picker (the 12 keys with their row 0 skill and "+N" for the stacked ones, empty keys disabled). An entry
  shows the key, the row 0 skill and "dann ..." with the other skills of the key; "Als Text kopieren"
  writes each key with all its skills.
- gear_action.php save_macro: entries from key[] and delay[], new ops slot, unslot, slotup, slotdown and
  copybar; skills of other classes drop off the bar with a note.
- Stored in gear_set_plans "macro" as presets + bars. Macros from before (entries with a skill "s") are
  converted when read: each skill goes to the key where it already is in row 0, else to the next free key,
  and is saved that way with the next change.
- Patch notes (with thanks for the report) and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 22:50:09 +02:00
Maaxxs
03597f14ad Raidplaner: tactics on the maps of all dungeons and raids, with tokens that move from step to step
Asked for in Discord: "raidplan.io bitte einbauen für die harten Dungeons". raidplan.io has no Aion 2
(only WoW, FFXIV, Lost Ark, New World), so the map tactics got what it offers.

- Dungeon maps: the in-game map textures of 11 expeditions, 7 transcendence dungeons, the 3 sanctuaries
  (Ludra, Corroded Decontamination Facility, Chalice of Muspel), the 6 awakening towers and 3
  subjugations, as published by the DPS meter Waffle-ens/waffle_meter (dotnet/Assets/Maps, pinned
  commit). assets/map/dungeons/dungeons.json is kept by hand: groups, slugs (= tactics.map_slug),
  German names from the Global client (aion2.app), KR/TW-only dungeons marked as unavailable, boss
  hints for the awakening towers. scripts/download_dungeon_maps.py fetches the images, writes
  dungeons/<slug>.webp (2048 px, about 3 MB in total, in Git) and the previews, and finds the dungeon
  area (bounds) by comparing each map with the shared background of all maps. Two empty arenas
  (round, square) are drawn in code.
- Viewer: image maps and arenas next to the tile maps (MapView.drawImageMap/drawArena, half zoom
  steps, opens fitted to the dungeon beside the tactic panel), map picker with the tabs "Welt" and
  "Dungeons & Raids", each area remembers its last map, no category panel without markers. The mouse
  wheel zooms to the cursor.
- New page raidplan.php ("Raidplaner" in the menu, map.view) = map.php started in the dungeon area.
  Location links on dungeon maps point to /raidplan.php and are recognized in texts and by the
  calendar picker.
- Tokens (shape type 'token', TokenIcons.js): classes, roles, players 1-8, markers A-D and symbols,
  boss, add, danger, stack, spread, tower, orb, bomb. Colour and size come from the toolbar, numbers
  and letters count up while placing, tokens are drawn above areas. Server whitelist
  TACTIC_TOKEN_ICONS.
- Move tool (✥) with label/delete actions above the selected shape, double click and Del; new action
  shape_update in tactics_api.php (points and label, same permissions, snapshot before). Undo also
  reverts moves and labels. Rectangle and cone tools, saved as areas.
- Step transitions: tactic_shapes.ref is kept by "Kopie dieses Schritts", tactic copies and restores
  (existing shapes get s<id>), so the same shape glides to its new place when stepping or playing;
  play button (and space) runs through all steps. 🔗 copies a link to the tactic and step
  (?taktik=&schritt=), which opens it after loading.
- Live view: the bot relay only knows the old shape types and events, so placing tokens and moving
  send "changed" and the others reload - no bot deploy needed.
- Schema version 60 (tactic_shapes.icon, .ref, enum 'token'; also in sql/schema.sql), tour step on the
  dashboard, patch notes and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 12:45:00 +02:00
Maaxxs
525bd0d4b5 Gear planner: sets can be shared by link or build code and imported as your own
Asked for: share a build with a link or build code, and an import tool that takes such a code.

- "Teilen" on an own set creates a link (gear.php?build=CODE) and the same code as build code: 10
  characters without 0/O and 1/I/L, shown as K7QX2-M9FRT, stored in gear_sets.share_code (schema
  version 59, unique; also in sql/schema.sql). Whoever opens it sees the set even if it is not on the
  profile, always in its current state; the session remembers the code so tabs, slots and compare
  work, and a renewed or withdrawn code ends that access. "Neuen Code erzeugen" and "Nicht mehr
  teilen" invalidate the old one. The dialog reopens after creating (#teilen) with copy buttons.
- "Build importieren" on "Meine Sets" takes the code (with or without dash, any case) or the whole
  link; viewing someone else's set (shared or on the profile) offers "In meine Sets übernehmen".
  Both copy the set with gear, skills, macros and all planner pages via gear_set_copy() (also used
  by "Kopieren" now); the copy is neither shared nor on the profile. Errors reopen the dialog (#import).
- Members only (gear.view). Opening any page without being logged in now brings you back to it after
  the login (auth_login_return_target) - only for page views in the browser, not for background
  requests like live updates or autosave.
- Privacy policy (shared sets), patch notes and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 01:44:52 +02:00
Maaxxs
6f2f44d960 Members: the list is sorted by rank within its sections, the rank order is configurable
Asked for: the Lumina Ascendens are divided into ranks (Veteranus, Legionär, Rekrut) and should be lined
up accordingly; the rank order should be adjustable.

- New column roles.rank_order (schema version 58, also in sql/schema.sql): 1 = highest rank, NULL = no
  rank. The upgrade fills it once with the groups that have "Veteranus", "Legionär" or "Rekrut" as a
  word of their own in the name (so not "Rekrutierung").
- Member list, sort "Rang": section first, then the member's highest rank (data-tier), then the name;
  members without a rank come after the ranked ones.
- Berechtigungsgruppen: new panel "Rangordnung" below "Reihenfolge der Tags" - move ranks by drag &
  drop or arrows, remove them with x, add groups from a select (groups with their own section are not
  offered). Saved by admin/role_rank_action.php (roles.manage, audit log). tag-order.js now handles
  both lists, including add/remove; the list rows share role_order_item().
- User administration sorts by rank after the section as well.
- Live updates of the member list include rank_order; README and patch notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 01:23:48 +02:00
Maaxxs
fcab700971 Premades: players can be reordered within the group (drag & drop, arrows on phones)
Asked for: move members to another position inside a premade, not only between group and reserve.
The order lives in the bot (premade_members.position, already deployed with PUT
/api/premades/{id}/order), so it also applies to the premade overview in Discord.

- Edit mode: a group member dragged onto another member swaps places with them, dropped on a free
  group slot it moves to the end; the lead always stays first, the reserve stays the reserve.
  Without a mouse the small up/down arrows in the slot move a player one place (disabled at the ends).
- premade_action.php: new action "reorder" (target_user_id = swap, direction up/down/end) builds the
  new group order from the bot's data and sends it via set_premade_member_order(); only the lead or
  premades.manage may do it, leadership changes in foreign premades go to the audit log. No success
  popup - the new order is visible right away and would get in the way of repeated arrow clicks.
- A bot without the endpoint (404/405 from FastAPI) gives "Der Discord-Bot kann die Reihenfolge noch
  nicht speichern"; its own "Premade nicht gefunden" still comes through as is.
- build_premade_slots() keeps the bot's order in one pass, so pending invites keep their place.
- Moving and reordering jump back to the premade (#premade-ID) instead of the top of the page.
- Phones: the edit buttons sit in one compact group and the roster columns may shrink
  (minmax(0, 1fr)), so cards no longer stick out of the panel in edit mode - long names get "...".
- chevron-up icon; hint text, README, patch notes and one word in the privacy policy (order in the
  group).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 01:00:40 +02:00
Maaxxs
b7f170432c Gear planner: skill icons are checked against the game client and replaced where aion2hub is wrong
A member reported a wrong icon for the Chanter skill Zauber der Genesung (18120000). The file on the
site is byte-identical to what aion2hub still serves for that ID; the game icon is ICON_CH_SKILL_013
(named by aion2.app after the official NCSOFT API, same on questlog).

- gear_source_parse_skill_info reads the 64 px skill icon's file name from the aion2.app page.
- "Beschreibungen übernehmen" replaces the icon file where the image differs
  (gear_skill_icon_replace): from aion2.app/db-item-icons/, and if the file is missing there (as for
  ICON_CH_SKILL_013) the same file from the questlog CDN. The name is stored in gear_skills.info
  (icon), so later runs only load on a new name; skills without a checked icon count as missing, a
  failed download is retried. gear_source_fetch allows cdn.questlog.gg for this.
- Icon URLs carry their modification time (?v=), so a replaced icon shows up right away.
- The import log and audit summary count replaced icons; admin hint, README and patch notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 00:22:34 +02:00
Maaxxs
ee7a3a2e8e Professions: members enter their characters' professions, a new page shows who can craft what
Asked for in Discord: profession management within the legion for a good balance. Aion 2 has five
crafting professions (Blacksmithing, Armorsmithing, Handicrafting, Alchemy, Cooking) with the stages
Beginner, Expert and Master; gathering is one shared skill for six raw materials that players
specialize in with points. Professions belong to characters, so they are entered per character.

- includes/professions.php: PROFESSIONS (German name, client name, icon, products, weapon classes),
  PROFESSION_STAGES, GATHERING_MATERIALS, loading/saving, counts per member, targets and "wanted".
  German names are not confirmed by the German client yet; only keys are stored.
- New table character_professions (stage, optional level, main profession - at most one per
  character) and member_characters.gathering (schema version 57, also in sql/schema.sql).
- Profile editor: per character a professions fieldset (stage, level, main-profession tick - a
  single profession becomes the main one) and the gathering specialization; saved with the
  character (member_action.php), invalid levels are rejected.
- Profile page shows them per character; the member list shows icons on the cards (main
  profession with a gold ring), gets a "Beruf" filter and finds professions in the search.
- New page professions.php ("Berufe" in the menu, members.view): per profession how many members
  have it as main profession and at all, characters per stage, which classes' weapons it makes and
  how many members play them, everyone with stage; below the gathering specializations.
- New permission professions.manage (initially for groups with roles.manage): targets per
  profession (professions_action.php, setting profession_targets, audit log). Professions below
  their target show as "Gerade gesucht" on the page and in the profile editor.
- Hammer icon; live updates for the new page, the member list and profile pages; the data export
  includes professions per character; privacy policy (as of 26.09.), patch notes and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 00:01:11 +02:00
Maaxxs
cf5f9966a7 Macro planner: every gear set gets a "Makro" tab built like the in-game macro window
A member asked for a macro planner. Aion 2's skill window (K -> Macro) has one macro per skill preset
1-3, each with up to 20 numbered entries (skill icon with level, name, trash can) and a delay in ms
after each entry (10 ms minimum); held down, the macro runs top to bottom, skipping skills on
cooldown, and starts over. The new tab rebuilds that window and its look: star ornament, big
numbers, "Verzögerung [10] ms" on a thin line, gold "Makro hinzufügen", preset buttons 1/2/3 with a
dot for the used ones.

- includes/gear_macro.php: active and stigma skills of the set's class, the level planned in the set
  (with Daevanion/Arcana bonuses; unplanned stigmas are marked), up to GEAR_MACRO_MAX_ENTRIES = 20
  entries per preset, delays 10-9999 ms. Stored in gear_set_plans under "macro" (not a
  GEAR_PLAN_SECTIONS page), so copying a set and the data export include it.
- gear_action.php save_macro: takes the preset as it stands in the form plus one change (add,
  replace, remove, up, down), drops skills of other classes with a note and returns the redrawn
  preset. Without JavaScript the buttons submit the form.
- assets/js/gear-macro.js: switch presets without reload, picker to add skills (stays open for the
  next one) or to replace an entry's skill right below it, delays saved shortly after typing, focus
  follows moved entries, "Als Text kopieren" puts the macro on the clipboard as a list for Discord.
  gear.js finds skill tooltips via data-tip-ref, so each description is on the page only once.
- Sets shown on a profile show their macros read-only. No DPS value: damage formulas, cooldowns and
  animation times are not available.
- README and patch notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 23:32:09 +02:00
Maaxxs
d97268f0e9 Ranking: after a tie the next place follows (1, 1, 2 instead of 1, 1, 3)
The Lumipunkte ranking counted places like a competition, so ten members with the same points were
all #1 and the next one #11. Places are now dense: equal points share a place, the next lower
score gets the next place.

- contributions.php counts the place up by one per new score; the dashboard's "Platz X von Y" is
  1 + the number of distinct higher scores.
- Silver and bronze frames now go to everyone on #2 and #3.
- The note for the limited view says "die besten 24 Mitglieder" instead of "Plätze"; patch notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 23:03:22 +02:00
Maaxxs
0e00f35923 Tag order: the leadership sets the order of the group tags
Until now the tags of a member were sorted by rank group first and then by the internal name, so
"Legionär" came before PvE while "Veteranus" came last. Verwaltung -> Berechtigungsgruppen now has
"Reihenfolge der Tags": move groups by drag & drop (mouse: whole row, finger: grip) or with the
arrows, then save.

- New column roles.tag_order (schema version 56, also in sql/schema.sql), saved by
  admin/role_order_action.php (roles.manage) with before/after in the audit log.
- ROLE_TAG_ORDER_SQL and role_tags_sorted() in includes/permissions.php sort the tags in the member
  list and its group filter, on the profile page, in the dashboard and in the user admin. Groups
  without a position (before the first save, or created later) follow in the old order.
- The rank of a member (sections of the member list) still depends only on roster_order.
- Live updates of the member list react to a new order; README and patch notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 22:59:25 +02:00
Maaxxs
044c314ceb Privacy policy: the mailbox info@lumina-ascendens.de is at Living-Bots
The hosting section (now "Hosting, Zugriffsdaten und E-Mail") says that the mailbox is at the
hoster too and what emails to us are used for, with the legal basis. The retention table lists them
("sobald dein Anliegen erledigt ist"). The hoster hint in admin/legal.php and the comment in
includes/legal.php mention the mailbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 22:59:25 +02:00
Maaxxs
9eae3af1af Impressum: contact mail is info@lumina-ascendens.de, remaining "Ascendes" typos fixed
The legion is "Lumina Ascendens". The visible texts already had it right; the missing "n" was
only left in addresses.

- The default operator email (Impressum, privacy policy) is now info@lumina-ascendens.de instead
  of the forwarding address of Online-Impressum.de. The privacy policy, the hint in
  Verwaltung -> Impressum & Datenschutz and the README now say that the service only forwards
  post.
- The placeholder in admin/legal.php and the HTTP_HOST fallbacks for map links and Twitch embeds
  use lumina-ascendens.de.
- The link to online-impressum.de/lumina-ascendes stays: the page there still has that name
  (/lumina-ascendens is a 404).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 22:40:12 +02:00
Maaxxs
f8beaebdcf Report panel: explains the rules with the real values, pings a chosen role, names the leadership
The report panel in Discord ("Mitglied melden", bot deployed with this change) now says what it is
for and how reports count: points per report (from the role weights, e.g. Veteranus 3), the mute
threshold, 48 hours on the "Stille Treppe" and that reports expire after 10 days. The bot updates
the panel by itself when the threshold or the role weights change here.

- Verwaltung -> Discord-Bot: when posting the report panel, pick the role that gets pinged
  ("Arieluma @Rolle!" above the panel - only that text pings) and the leadership role that is named
  in the text (without ping). Both are sent as ping_role_id / lead_role_id, stored by the bot and
  preselected next time; the audit log names them. Unknown roles are rejected.
- Texts say "Mitglied melden" instead of "Spieler melden"; the reports settings mention that the
  panel follows threshold and weights.
- README and patch notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 12:43:32 +02:00
Maaxxs
3fa3a7310d Group icons: groups get an icon in front of their name, like the role icons in Discord
In Berechtigungsgruppen -> Gruppe bearbeiten the new field "Symbol" takes an uploaded image or a
link to one, with a checkbox to remove it and a live preview in the tag.

- A link is downloaded once when saving (includes/role_icons.php): public http(s) addresses only,
  nothing in the local network (redirects checked one by one, the checked IP is pinned), at most
  2 MB, PNG/JPG/GIF/WEBP. Like uploads the image is re-encoded, scaled to 128 px and stored under
  assets/uploads/roles/ (with .htaccess), so visitors never load anything from other servers and
  expiring links (Discord attachments) don't break the icon.
- Shown in the group tags (member list, profile, group admin), the group filter chips and the
  rank section headings of the member list, and the group badges on the dashboard.
- Replaced or removed icons and the icon of a deleted group are deleted from disk; the new file
  is only stored once all other fields are valid and removed again if saving fails.
- New column roles.tag_icon (schema version 55, also in sql/schema.sql); README.
- file-input.js: "Entfernen" fires a change event, so previews of other scripts clear too.
- Live updates of the member list also react to changes of tag_bg2 and tag_icon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 12:35:02 +02:00
Maaxxs
944935075a Premade banners: leads give their premade a banner, shown on the card, dashboard and raids
The lead of a premade (or the leadership with premades.manage) picks one of the landscapes or
uploads an own image in edit mode under "Banner" and moves the crop with a slider (live preview).

- Shown on top of the premade card (name on the banner), above the roster under "Meine
  Premade" on the dashboard, and behind the heading of the raid group that carries the
  premade's name (invited premade groups are named after it).
- New table premade_banners (per premade ID of the bot, with the name for the raid groups, the
  choice and the crop; schema 54, also in sql/schema.sql). Own images are member_gallery rows
  with is_background = 1 and the new column premade_id, so they go through the same
  moderation (badge "Premade-Banner"), data export and account deletion as gallery pictures.
  The own profile background and the profile reset ignore banner rows.
- premade_action.php: banner_save, banner_upload, banner_delete_upload; renaming updates the
  name, dissolving removes banner and upload. premade_banners_sync() on premades.php cleans up
  banners of premades that no longer exist. Leadership changes to other premades are logged.
- Live updates of the premades page include banner changes; privacy policy, patch notes and
  README mention the banners.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 03:34:24 +02:00
Maaxxs
17ccd3e26f Discord bot as overview: everything is managed on the website, raid signup in one click
The bot (Aion2_RaidPlaner, deployed 2026-09-25) has no slash commands any more. Raids,
premades, events, activity checks and reports are created and managed only here; in Discord
members sign up for raids, answer invitations and activity checks and report players.

- Raid signup works the same in Discord and here: the bot assigns the group (perform_signup),
  the website only sends the wish (raid_signup(..., $wish)) and shows the reason when it did
  not fit (locked, role full, raid full). raid_wish_is_sensible() and the role constants are
  gone. Declining ("Abmelden") now keeps the player under "Abgemeldet" (raid_decline, new bot
  endpoint .../decline) like in Discord; the raid card shows "Du hast dich abgemeldet" with
  "Doch anmelden". Class input is checked against AION_CLASSES.
- The Discord message shows the raid lead and the Lumipunkte: raid_create_action/raid_edit_action
  send lead_id/lead_name/points_text, raid_sync_extras() on raids.php pushes them for raids
  where the bot is missing them (at most 3 per page view, follows changed raid IDs).
- bot_api.php?action=member: main class (profile choice) and whether the person has an
  (active) account - the bot preselects the class and hints that Lumipunkte need an account.
- New page Verwaltung -> Discord-Bot (admin/bot.php, includes/discord_bot.php, permission
  bot.manage, on update granted to groups with raids.manage; schema 53): raid, log and report
  channel, post the premade overview (updates itself) and the report panel (the bot replaces
  the previous one), resync all raid messages (reposted raids move their settings via
  raid_rename_id). Audit area "Discord-Bot", sidebar entry with a new bot icon.
- Reports: after picking a player in the filter, delete all of their reports at once
  (DELETE /api/reports/user/{id}), which also lifts the auto-mute.
- Calendar and raid logs no longer count declined players as signed up / on the bench.
- Texts that mentioned bot commands (events, activity check, config example, README) updated;
  privacy policy mentions the main-class lookup and that declines stay visible. Patch notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 03:15:55 +02:00
Maaxxs
592269d300 Permissions per person: grant single permissions to users in addition to their groups
In the user form (admin/user_form.php) a new section "Einzelne Berechtigungen" lists all
permissions, with the group-assign rights (roles.assign.<ID>) shown by group name as in the role
form. It opens by itself when the user already has some. A shield marks what the user already
gets through one of the ticked groups; the tooltip says who granted a permission and when.

- New table user_permissions (user, permission, granted_by, created_at; schema 52, also in
  sql/schema.sql). user_has_permission() now resolves through user_permission_keys() (groups UNION
  direct permissions, falls back to groups only while the table is missing), and
  discord_ids_with_permission() and the raids.manage recipients in bot_api.php include direct
  permissions too.
- New core permission users.permissions: only with it can someone grant or revoke direct
  permissions, and only ones they have themselves (current_user_permission_ids()); others are
  greyed out and ignored on the server even if submitted. Your own direct permissions can only be
  changed by someone else (except developers). Without the right the section is a read-only list.
  On update, groups with roles.manage get users.permissions.
- Saving applies only the changes, so the remaining entries keep who granted them and when.
  Grants and revokes go into the audit log ("Einzelrechte erteilt/entzogen/jetzt").
- User list: "+N Einzelrechte" badge next to the groups (title lists them), searchable; the live
  fingerprint of the page includes user_permissions.
- Data export gets a section "einzelrechte", account deletion removes them, and the privacy
  policy mentions both. Patch notes, README and the roles page intro updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 02:20:58 +02:00
Maaxxs
c8c9ca2285 Item tooltips show the game data from aion2hub instead of warehouse and shop details
The info bubble in the warehouse and the Lumishop now shows only what an Aion 2 database says
about the item: name in the grade colour, grade, slot, type, binding, item level and required
level, description, base stats, item info (sockets, max stack, sell price, effect when used) and
the highest enchant. Stock, price, last movement and the gear-catalogue match are gone.

- includes/item_db.php finds the item on aion2hub by its name (/database?q=..., exact name, else
  the bound variant), reads the item page and caches both: the values in item_db, the name -> item
  id mapping in item_db_names (schema 51, also in sql/schema.sql). Data is fetched on the first
  hover only, refreshed after 30 days; names not found are searched again after 7 days.
- At most 20 aion2hub pages per minute for the whole site (rate_limits, bucket aion2hub), only
  names that exist in the warehouse or the shop, fetched via gear_source_fetch() like the gear
  planner. aion2hub allows these pages in robots.txt, only /api/ is disallowed.
- item_info.php answers the bubble (JSON: ok, missing, busy, error), assets/js/item-tooltip.js
  shows "Lade Spieldaten ..." until then and keeps the result for the page. Placeholders aion2hub
  leaves unresolved in descriptions ({abe:...}) are shown as "...".
- Shop offers linked to a warehouse item are looked up under the warehouse name.
- includes/item_tooltip.php removed; patch notes and README updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 02:03:23 +02:00
Maaxxs
6f8040c397 Menu counts for open reports and moderation, item tooltips in warehouse and Lumishop
- Reports: the menu item shows how many reports are still open (not archived), for everyone with
  reports.view. The reports live in the bot, so the count sits in settings.reports_nav_cache and is
  fetched at most every 2 minutes with a short timeout (reports_nav_open()); the reports page
  refreshes it right away, also after archiving. reports_api_request() takes a timeout.
- Moderation: the menu count now matches the "Freigabe" tab - waiting items plus reported items that
  are still visible (moderation_open_counts(), internal calendar entries only for
  calendar.leadership), with a title like "2 warten auf Freigabe, 1 gemeldet".
- Warehouse and Lumishop cards get an info bubble on mouse hover or keyboard focus (not on touch):
  large image, category, stock, Lumishop price and the last movement in the warehouse; price,
  availability, amount in open requests and whether the own Lumipunkte suffice in the shop. Weapons
  and armour with the same name in the gear catalogue also show grade, level and base stats.
  Content is rendered as a <template> per card (includes/item_tooltip.php), shown and placed by
  assets/js/item-tooltip.js; the old native title on warehouse cards is gone.
- Patch notes and README updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 01:48:08 +02:00
Maaxxs
d984918b8c Map live view: names no longer stick to finished strokes when drawing quickly
With line, arrow, circle and area, the stroke being saved stayed the current draft until the save
finished, and every mouse movement in that moment sent it live again - after "saved" had gone out.
The others then saw the stroke with the drawer's name again until the bot dropped it after 20 s.
Drawing quickly (short breaks between strokes) hit this almost every time.

- A stroke that is being saved no longer follows the mouse and is never sent live again; the live
  service also ignores updates for strokes it has already ended.
- Viewers remember finished strokes and ignore late updates for them. If someone leaves in the
  middle of a stroke (reason "left"), the others reload once to get what was saved meanwhile.
- The bot (live_tactics.py) ignores late updates of finished strokes too, which also covers browsers
  still running the previous map version - deployed on 2026-09-25.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 01:31:14 +02:00
Maaxxs
df656209c9 Map tactics live: strokes appear for everyone while they are drawn, several people can draw at once
- Whoever has a tactic open sees the strokes of the others while they are being drawn (with the
  name at the pen tip); saved and erased shapes appear at once, and after changes to steps or the
  tactic the map reloads by itself. Several people can draw in parallel, also in the same step.
- The panel shows who is in the tactic (a click jumps to their step), dots in the step list show
  who is where and blink while someone draws there; the step bar shows "✏️ Name" for the shown step.
- The Discord bot relays it (live_tactics.py in the bot repo, only in memory): tactics_api.php
  issues a ticket (action live_token: account, display name, tactic, may draw, 30 minutes, signed
  with raids_api.key via HMAC-SHA256, tactic_live_ticket() in includes/tactics.php). The browser
  receives via Server-Sent Events and sends batched strokes (at most every 70 ms), saved/removed
  shapes, changes and its own step via POST (assets/map/js/services/TacticLiveService.js).
  Only who may edit the tactic may draw live. Saving still happens only on the website.
- On a lost connection the panel says so, the map reconnects with a fresh ticket (backoff up to
  15 s), reloads the tactic and hands in what was drawn meanwhile. Reloads triggered by the live
  view keep the current state on network errors instead of closing the tactic.
- Optional config raids_api.live_url for a public bot address that differs from raids_api.url.
- Privacy policy (live view: direct connection to the bot server, what others see, nothing stored),
  patch notes and README updated.

Needs the matching bot update (live_tactics.py, api.py, main.py), deployed on 2026-09-25.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 01:16:19 +02:00
Maaxxs
6ea447c6a4 Premades: reserve slot with drag & drop, membership in several premades, class preselected from Discord
- Every premade has a 6th slot, the reserve (bench). New players get a free slot in the group,
  otherwise the reserve; the bot assigns it (premade_members.reserve). Pending invites count.
- In edit mode the lead / leadership drags players between group and reserve: onto the reserve a
  previous reservist swaps into the group, the reservist dropped onto a member swaps with them, the
  lead always stays in the group. Without a mouse the same works with the arrow button in the slot
  (premade_action.php "move" -> PATCH /api/premades/{id}/members/{user_id} {reserve}).
- Players can be members of several premades: inviting and accepting no longer check other groups.
  Leading stays limited to one premade unless the new permission premades.lead_multiple allows more
  (founding, lead picked by the leadership, lead transfer; the website sends allow_multiple_lead).
  discord_ids_with_permission() answers that for other players.
- The class in a premade is preselected with the main class from the Discord roles when founding,
  inviting/assigning and accepting; members who joined in Discord get it on the next visit of the
  premades page. The own slot has a swap icon that opens the class picker (replaces the separate
  "Deine Klasse" tile).
- Dashboard lists all own premades (led ones first) with the reserve slot.
- Privacy policy (slot, preselected class), data export (platz), patch notes and README updated;
  schema v50 syncs the new permission. The live reload waits while a drag is running.

Needs the matching bot update (reserve column, PATCH reserve, class on add, allow_multiple_lead),
deployed to the bot server on 2026-09-25.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 00:42:14 +02:00
Maaxxs
2623236173 Members create raids as raid lead; points, restore and deletion stay with the leadership
- New permission raids.create (granted on update to every group that has raids.view): whoever
  creates a raid on the website becomes its raid lead (raid_settings.lead_user_id, schema v49),
  shown with a crown on the raid card and in the signup list.
- The raid lead manages their own raid: edit, move players, invite premades, fill in the attendance
  list and archive it. Restoring, deleting for good and the Lumipunkte stay with the leadership
  (raids.manage, raids.points). Checked on the server via raid_can_manage() in every raid action.
- Raids created by a member without raids.points bring no automatic points (0/0) until the
  leadership sets them when editing; raids of the leadership keep the fixed +1.
- The attendance reminder of the bot (bot_api.php) goes to the raid lead, even if not signed up;
  raids without a lead (created in Discord) remind the signed-up raids.manage members as before.
- Core permission descriptions are cut to the 255 characters of the column when synced - a longer
  one made the schema sync throw on every request (found while testing this change).
- Privacy policy (raid lead is visible to all), data export, patch notes, README and the tour updated;
  raid_created_at() folded into raid_posted_at().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 00:04:53 +02:00
Maaxxs
7daffd5523 Live updates: sidebar counts refresh themselves, pages reload when something new arrives
- Every open page in the member area asks live.php every 20 s while it is visible
  (assets/js/live.js). The counts at the menu items and the own Lumipunkte are replaced in
  place; header.php and live.php compute them with the same functions (nav_badges(),
  nav_points() in includes/live_updates.php, links marked with data-badge).
- Dashboard, gallery, picture page, profile, member list, calendar, shop, shop orders,
  Lumipunkte, warehouse, premades, bug reports, moderation, user management and wiki get a
  fingerprint of the data they show (count, highest id, checksum of the shown columns - no
  "last active"). When it changes, the page reloads - but only while nobody is typing, has a
  form started, a dialog, lightbox or menu open or clicked in the last 8 s; otherwise a notice
  "Es gibt Neues auf dieser Seite" with a reload button, and it reloads once things are quiet.
  At most 3 automatic reloads per minute.
- Tools and forms (map, gear planner, edit pages) never reload on their own; the raid page keeps
  its own live updates. The dashboard notices new raids and signups through the raid cache
  (now also stores a fingerprint of dates, slots and signups); premades ask the bot with a 3 s
  timeout (new timeout parameter for premades_api_request/fetch_premades).
- README and patch notes updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 23:47:42 +02:00
Maaxxs
809e88d028 Start page pictures are chosen by the leadership (site.homepage), not by the members
- New permission site.homepage: in the gallery every picture gets a button to put it on the start
  page or take it off again (gallery_home_action.php, logged); the filter "Startseite" shows the
  current selection. Schema v48 so the permission gets synced (administrators get it).
- Members can no longer release pictures themselves: the checkboxes and their handling in
  member_action.php are gone. Their selected pictures are marked "Startseite" in the profile
  editor, with a hint to tell the leadership if they don't want that.
- Privacy policy: legitimate interest instead of consent, objection via the leadership. Patch note,
  README, tour and comments updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 23:30:12 +02:00
Maaxxs
b62f1213c0 Raid count in the sidebar, member screenshots on the start page, clickable dashboard tiles
- Sidebar: number of upcoming raids next to "Raids" (all not archived, same as the dashboard
  tile). Gold while a raid was posted since the last visit of the raid page (users.raids_seen_at,
  schema v46; the posting time comes from the raid id = Discord message id). New raids are
  marked "Neu" on the raid page, also in live updates; your own new raid is not. The raid ids
  are cached in settings.raids_nav_cache: every raid fetch refreshes it, otherwise the sidebar
  asks the bot after 5 minutes with a 3 s timeout and keeps the last state if it is down.
- Start page: the group photo alternates every 6 s with gallery pictures that members released
  themselves ("Auf der Startseite zeigen", member_gallery.show_on_home, schema v47) - without
  name or caption, only visible pictures of active members, with a pause button, only while
  the photo is in view. Only the member can release a picture; leadership can only take it off
  (logged).
- Dashboard: the tiles "Mitglieder" and "Berechtigungsgruppen" link to the user management and
  the roles, like "Anstehende Raids".
- Tour: new steps for gallery, calendar, gear planner and patch notes; menu customization,
  profile page, daily reward and the raid count mentioned.
- Privacy policy (activity, start page, withdrawal), account anonymization (resets
  raids_seen_at), README and patch notes updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 23:20:32 +02:00
Maaxxs
b748d380ce Gallery: screenshots of all members on one page, with a "new" count in the sidebar
- New menu item "Galerie" (gallery.php, permission members.view): all visible gallery pictures of active
  members, 48 per page, without profile backgrounds.
  - Sort by newest, oldest, most reactions or member (?sort=neu|alt|reaktionen|mitglied), optionally one
    member only (?mitglied=ID, dropdown with picture counts).
  - Lightbox through the page; comments and reactions only where the member allows them (like the profile).
  - "Eigene Bilder hochladen" links to the gallery section of member_edit.php (#galerie).
  - Two pictures per row on phones.
- Pictures by others since the last visit (users.gallery_seen_at, set when the page is opened, schema v45)
  are marked "Neu", and their number shows in the sidebar; without a visit, the last 7 days count.
- Privacy policy (Aktivität), account anonymization (resets gallery_seen_at), README and a member patch
  note are updated. Idea from the legion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 17:37:15 +02:00
Maaxxs
9c01cd5fe1 Account deletion also anonymizes the member at the Discord bot, runs after the response
- account_anonymize() first calls the bot's new POST /api/privacy/anonymize (account_deletion_bot()):
  - Running raid sign-ups and premade memberships are removed; a premade the member leads keeps going
    without a lead.
  - Archived raids, activity checks, own reports and created events keep the account number instead of the
    Discord ID. Reports about the member stay and expire after 10 days as before.
- If the bot is unreachable, the job goes into the setting account_deletion_bot_queue and is retried on every
  run (not in the same run, read straight from the DB because setting_get() caches per request); after a
  week there is a warning in the log. The deletion log says whether the bot part is done or pending.
- Due deletions now run in a shutdown function after the response (session closed, fastcgi_finish_request),
  like admin_log_flush, so no visitor waits for the bot.
- Privacy policy, admin page and README describe the bot part.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 17:10:27 +02:00
Maaxxs
cd8716e791 Data export and account deletion (anonymization) with a grace period
- Data export (Art. 15/20 GDPR, includes/data_export.php): ZIP with daten.json, LIESMICH.txt and the
  member's own images (avatar, characters, gallery, bug reports). It covers every table related to the
  account plus, via the bot API, raid sign-ups, premades, created events and activity checks. Password hash,
  tokens and player reports (they name the reporters) are left out. The ZIP is written by data_export_zip(),
  so the PHP zip extension is not needed.
- Members find export and deletion under "Mein Profil" at the very bottom in a collapsed "Konto & Daten"
  section (data_export.php, account_delete.php).
- Leadership: new icon "Daten & Löschung" in the user admin (admin/user_export.php, permission users.export).
  It downloads the export or creates a download link for someone without access (datenauskunft.php?t=...,
  7 days, 5 downloads, only the SHA-256 hash stored in data_export_links). The link page shows a button first,
  so link previews don't use up downloads. It also works in maintenance mode.
- Account deletion (includes/account_deletion.php): the account is anonymized instead of removed.
  - Deleted: profile, avatar, characters, gallery, gear sets, private tactics, groups, tokens, calendar
    participations and bug report images.
  - Contributions remain as "Ehemaliges Mitglied" without name or Discord ID.
  - Requested by the member (type LÖSCHEN) or by the leadership (users.delete, also immediately).
  - Executed after 7 days by account_deletion_run_due(); logging in before that cancels it and tells the member.
- The user admin shows "Löschung am ..." and "Gelöscht (unkenntlich)". Privacy policy, README and a
  leadership patch note are updated. Schema v44 (users.deletion_scheduled_at, users.deleted_at, data_export_links).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 17:02:42 +02:00
Maaxxs
62d6634829 Impressum and privacy policy, third-party videos and images load only after a click
- impressum.php (§ 18 MStV) and datenschutz.php, which describes what the website and the Discord bot
  actually process: Discord login scopes, member area, bot data (raids, premades, player reports with the
  automatic 48 h timeout, activity checks), cookies and browser storage keys, retention periods and rights.
  Both stay reachable in maintenance mode and are noindex. Operator data defaults to the c/o address of the
  Impressum service Online-Impressum.de (LEGAL_OPERATOR_DEFAULT), the hoster to Living-Bots; both can be
  changed under Admin -> Impressum & Datenschutz (new permission site.legal, schema v43). The audit/Discord
  log only records which fields changed, not the name or address.
- Links in the footer of all public pages, the start page footer, the sidebar and the maintenance page,
  plus a short data notice on the login page.
- Wiki and profile texts: YouTube, Twitch and Vimeo players and images or video files from other servers
  render as placeholders and load only after a click (embed_consent_html(), assets/js/embed-consent.js).
  "immer direkt laden" is remembered per provider in localStorage and can be reset in the privacy policy.
  Image URLs are now protected from inline formatting (e.g. _underscores_ in the address).
- map_frame.php only serves logged-in, active members.
- Deleting a user also removes the avatar file; audit_log entries older than 12 months are deleted
  automatically (AUDIT_LOG_KEEP_MONTHS).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 16:26:54 +02:00
Maaxxs
1dec879de2 Skill tooltips with values at the planned level, page background no longer zooms, 150+ members
- Skill and stigma tooltips show their values at the reached level (own level plus Daevanion/Arcana bonus)
  and update live with - and +; values that grow with the level are green. The aion2.app import now also
  stores the description template and the values per level (from the page's React data): equal ranges
  become one value, German number format, time units (Sek./Min.), undivided ":divide1000" values fixed.
  "nur fehlende" also fetches descriptions imported before, which lack the level values.
- Page background: a fixed layer of window height behind the content instead of cover over the whole page
  height, which rescaled the image whenever the content height changed (e.g. Daevanion stats list).
- Start page: 150+ active members.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 01:44:44 +02:00
Maaxxs
73236836bd Skill descriptions from the German client, hover info, centered Daevanion board, aligned user admin buttons
- Skills and stigmas show their description on hover (icon or name): official German text from aion2.app
  (damage type, range, tags, values at level 1). New admin import "Beschreibungen übernehmen" stores it in
  gear_skills.info (schema v42) and fills the official German name and specialization texts where the
  leadership has not entered their own.
- Daevanion boards are centered with a fixed width and their stats below, so selecting fields no longer
  resizes the board; hovering a field shows what it gives, its cost and whether it can be activated.
- User admin: "Neuen Benutzer anlegen" and "Jetzt mit Discord abgleichen" share one width and height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 01:16:39 +02:00
Maaxxs
8f535b5fe1 Gear planner: larger Daevanion boards of equal size, skill cards of equal height when expanded
All five boards fill the same square (up to 640px, cells adapt to 11x11, 13x13 or 15x15). Specialization and
stigma bonus rows are two lines high (longer texts clamped, full text in the tooltip) and card heads have a fixed
height, so collapsed and expanded skill cards line up; wide single-column cards keep single-line rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 00:56:27 +02:00
Maaxxs
f0d8411fac Pantheon: no faction choice, only decorations Elyos can place (the legion is Elyos-only)
The faction toggle is removed; Asmodian-only decorations are hidden and no longer counted. This also fixes
switching the faction, which was lost when no decoration was placed yet (the plan counted as empty).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 00:40:36 +02:00
Maaxxs
0977ef4f37 Skill planner: levels with - and + like aion2hub, self-leveled up to 10, bonuses from Daevanion and Arcana
Active and passive skills are planned only up to level 10 (stigmas 20); the levels above come from the
Daevanion and Arcana pages and show as "+4 → 14" (effective level, also used for specializations and the
compare view). Skill points and stigma points are limited to aion2hub's budget at character level 45
(3,723 / 304), at most 4 stigmas can be leveled - checked in the page and on the server. Stored levels
above 10 are set to 10 by the schema update (v41).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 00:34:13 +02:00
Maaxxs
4ff71fe163 Gear planner: set pages Arcana, Pets, Daevanion, Pantheon and Closet modelled on the aion2hub build planner
Data (cards, enchant points, skill pools, sets, pets, genus insight, daevanion boards, pantheon decorations,
closet skins, stat names and units) is read from the build planner's JS chunks and recognised by content;
one admin import "Planer-Daten übernehmen" (also brings the specializations) plus "Bilder laden".
Plans are stored per set and page (gear_set_plans, schema v40), saved instantly, shown in the compare view,
copied with the set and transferable from another own set. The skills page shows the skill bonuses from
Daevanion and Arcana.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 00:10:04 +02:00
Maaxxs
3cc60c7f7e Skill planner: set pages Ausrüstung / Skills / Stigmen, specializations and stigma bonuses with their effects from the aion2hub build planner
- Each set has three pages (tabs with counters): equipment, skills (active and passive) and stigmas; the skill pages live in includes/gear_skills_view.php
- Specializations of active skills like in the aion2hub planner: collapsible list with unlock level and effect, three from level 8, one from 12, one from 16; one slot at 8, two at 12, three at 20; locked options are disabled, lowering the level drops options that no longer fit (checked on the server too, stored as bitmask gear_set_skills.specs)
- Stigmas: the chosen ones as the 4 slots on top, each stigma lists its four bonuses at 5/10/15/20 with effect, reached ones are highlighted
- Admin: "Spezialisierungen & Stigma-Boni übernehmen" reads the build planner page, finds the JavaScript file with the data set (one request per second, remembers the file) and stores the effects of all classes (gear_skills.spec_effects); new page "Namen & Spezialisierungen" (admin/gear_skills.php) for German skill names and texts
- Autosave sends level and specializations per skill card, the tab counter updates live; compare shows specializations, copies keep them
- Schema version 39 (gear_skills.name_de, spec_effects, spec_names; gear_set_skills.specs), patch notes, README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 20:00:11 +02:00
Maaxxs
e1d39bcf2d Group tags: optional gradient background like Discord, rank view hides the tags of all groups that have a member list order
- Berechtigungsgruppen -> edit: "Verlauf zu" adds a second background colour, the tag background runs from left to right into it (the border runs along); picking it also ticks the background, which is the start colour; live preview and admin log ("Verlauf #a–#b")
- Tags use --tag-fill for the gradient; only #rrggbb values are stored (roles.tag_bg2, schema version 38)
- Member list sorted by rank: tags of every group with a roster order (the sections) are hidden, not only the own section's; other sort orders and profile pages still show all tags
- README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 17:55:33 +02:00
Maaxxs
7f96dbf967 Member list: no tag for the section's own group while the list is split into rank sections
- Cards in a rank section (e.g. "Sedes Luminis") hide that group's tag, the other tags stay; a tag row with nothing left is hidden too
- With another sort order (name, class, ...) there are no sections, so the tag is shown again; profile pages and the group filter are unchanged
- role_tag_html() takes an extra CSS class

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 17:49:51 +02:00
Maaxxs
6f19ca29a4 Group tags: optional custom background and text colour per permission group, no dot in front of the tags
- Berechtigungsgruppen -> edit: "Farben des Tags (optional)" with separate background/text colour (each only with its checkbox, otherwise the default), live preview, change recorded in the admin log
- Tags in the member list, on profile pages and in the group overview use the colours (CSS variables --tag-bg / --tag-color, only #rrggbb values are stored)
- The gold dot in front of the tags is gone
- Schema version 37 (roles.tag_bg, roles.tag_color), README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 17:46:24 +02:00
Maaxxs
9032118b6a Classes come from Discord: all class roles are taken over automatically, members pick their main class, the main class is listed first everywhere
- Discord sync (login and live check) stores every class role of a member in users.classes (role names match the classes, German and English names are recognised); users.class_name is the main class: the one chosen in the profile (users.main_class) while the member still has it, otherwise the highest class role; no class role means no class
- The guild role list is fetched once per request and kept when the bot is briefly unreachable (it used to be emptied); nothing is changed while the role list is unknown
- Profile: the manual class select is gone; new "Klassen" card with the detected classes, main class choice for members with several classes and a "Jetzt mit Discord abgleichen" button (at most every 30 s and 10 per hour, new security bucket discord_sync with a log entry)
- Main class first on the profile page, in the member list (the class filter also finds secondary classes), in the raid signup and premade class pickers (own classes first, main preselected for new raid signups)
- Berechtigungsgruppen shows which Discord roles count as classes
- Schema version 36 (users.classes filled from class_name until the first sync, users.main_class), patch notes, README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 17:34:37 +02:00
Maaxxs
fab66f64d0 Gear planner: skill planner - skills of the set's class with planned level, stigma limit, point/shard costs, import from aion2hub
- Skills per class come from the aion2hub class pages (Global client core list only, Korea/Taiwan extras left out): 12 normal actives, then Dodge (no levels, dropped), then the stigma skills - matches the Global client's mastery and stigma lists for all 8 classes
- New tables gear_skills and gear_set_skills (schema version 35), skill icons stored under assets/uploads/skills/ (existing files are reused on re-import)
- Admin: "Skills" section on admin/gear_items.php imports/compares all classes (one request per second), marks skills aion2hub no longer lists and can remove them
- Set page: skill grid (active / stigma / passive) with level select and instant save; normal skills 1-10 by skill points, above that only with bonuses (Daevanion up to +4, gear and Arcana up to 20); stigmas up to 20, at most 4 at once (checked on the server too); shows skill point and stigma shard costs
- Planned skills on set cards, the profile page and in the comparison; copies take the skills along, a class change keeps the old levels hidden
- Patch notes entry, README section for the gear planner

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 17:17:59 +02:00
Maaxxs
487b56d649 Gear planner: the off-hand only takes a guard (no dual wielding in Aion 2), older sets keep a weapon there but it is marked
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 16:22:53 +02:00
Maaxxs
c4f94bf84a Member feedback: raid input checks and fixed raid points, premades in the raid form, live raid page, Lumina-style dialogs, leadership calendar entries, class-based weapon picker, map and tactics fixes
- Raids: "Max. Spieler" only whole numbers up to groups x 5 (max. 10 groups / 50), gearscore only a number; fixed +1 Lumipunkt per participation, other values only with the new raids.points permission; pick an existing premade per group when creating a raid; unchanged legacy values no longer block editing
- Raid page updates itself every 15 s while visible (raids_live.php, cards rendered by includes/raid_card.php), open editors and confirm dialogs are kept
- Restore takes the new raid_id from the bot (archived messages are now deleted in Discord) and moves settings, attendance and awards; website signups send the server display name
- Premades: dissolve by leadership needs a reason, lead gets DMs on join/assign/decline/remove (source/actor_id sent to the bot), transfer picker skips players who already lead a group, website accept keeps the one-group rule, no commas in names
- Site-wide Lumina dialog (assets/js/confirm-dialog.js) replaces confirm/prompt/alert via data-confirm; error flashes are a dialog you confirm with OK
- Calendar: audience per entry (all / leadership takes part / internal) with the new calendar.leadership permission; day cells list all entries and scroll
- Gear planner: main-hand picker filtered by the set's class, mismatches marked, "keine Klasse" option, link to an external skill/Daevanion plan per set
- Map: correct kisk icons (Elyos on Verteron/Abyss, Altgard fixed), per-map max zoom and bounded panning, German texts, data source note
- Tactics: toolbar as a uniform grid, whole-tactic copy, automatic versions with restore and a 90-day trash, official tactics protected
- Global thin gold scrollbars, readable hover colours, "Sedes Luminis" spelling, patch notes and README, schema version 34

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 16:12:18 +02:00
Maaxxs
5428d869ea Sidebar: Aktivitätscheck moves into the admin section by default
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 18:17:49 +02:00
Maaxxs
8f15909ab0 Announcements: option to hide the author name on the banner (still recorded in the audit log)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 18:06:42 +02:00
Maaxxs
e52ba40625 Maintenance mode and announcement banner, managed on the new 'Wartung & Ankündigung' admin page (site.maintenance, site.announce)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 17:57:09 +02:00
Maaxxs
a8b31f8648 Patchnotes page with all fundamental changes so far, 'Neu' badge in the sidebar until the latest entry is read
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 17:43:47 +02:00