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>
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>
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>
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>
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>
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>
- 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>
- 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>
- 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>
- 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>