Commit graph

51 commits

Author SHA1 Message Date
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
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
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
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
Maaxxs
c547e00a81 Gear planner autosave, extra dividers in the customizable menu
- Gear planner: slot changes save automatically (selects right away, numbers/text shortly after
  typing) with a status instead of the save button; totals and slot tile update without a reload,
  a different item reloads once for its fields; slot labels no longer uppercase (Füße, not FÜSSE)
- Menu editor: "+ Trennlinie" adds extra dividers (up to 10), removable with ×

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 11:06:49 +02:00
Maaxxs
9ad013b4ab Customizable sidebar: reorder menu items per member via drag and drop, darker wiki chapter hover
- "Menü anpassen" at the bottom of the sidebar starts an edit mode: drag items (and the divider)
  with mouse or touch, save, reset to default or cancel; admin items stay in the admin section
- Order stored per member (users.sidebar_order) and applied via CSS order, no reflow on load
- Wiki chapter tiles get the same dark hover with gold border as the subpage tiles

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:57:08 +02:00
Maaxxs
1c58a463f7 Darker wiki tile hover, spacing and background image on the raid attendance page
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:49:58 +02:00
Maaxxs
0ace02f6e0 Wiki: subpage tiles spread evenly across rows (4/4 instead of 5/3), Wiki below the divider above Raids in the menu
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:44:43 +02:00
Maaxxs
f22ab97947 Wiki subpage tiles all the same size, 'Mitgliederbereich' button with the Lumishop hover effect
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:41:21 +02:00
Maaxxs
83e858987c Lumipunkte for activity checks and a daily reward, Lumishop layout polish
- Activity check: configurable Lumipunkte for "Ich bin da", awarded once after the check is
  closed (on the website right away, otherwise on the next dashboard/points/activity page load)
- Daily reward: 5 Lumipunkte on the first page view of the day, one shared award per day
- Lumishop: equal hero buttons, category box as tall as the item list, "Meine Anträge" as tiles,
  spacing between the tabs and the order list in the management view

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:25:56 +02:00
Maaxxs
2a0e5c6fbc Own profile background image, hover borders on buttons, members below profile in the menu
- Profile background: upload an image only for the background (not part of the gallery),
  same moderation as gallery pictures, one per member, replace or delete it
- Hover border on buttons: black on gold buttons, gold on dark ones (dashboard points
  buttons keep their own effect)
- Sidebar: "Mitglieder" directly below "Mein Profil", tour follows the new order

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 09:57:53 +02:00
Maaxxs
5dabbccbd7 Gear planner, dashboard polish, images on bug reports
Gear planner:
- Personal gear sets (18 slots) with enchant, exceed, soul imprint and manastones,
  stat totals by source and side-by-side comparison of 2-4 sets
- Sets can be shown on the own profile page (read-only for other members)
- Admin catalog: import items from aion2hub.com (Global client), compare stored
  values with the source one by one or all at once, at most one request per second
- New permissions gear.view (all with dashboard access) and gear.manage

Dashboard:
- Role badges ordered like the member list (roster_order)
- Stronger hover effect on "Rangliste & Verlauf" / "Zum Lumishop", no more blue
  hover on secondary buttons
- "Anstehende Raids" box links to the raids page, next raids link to the raid
  and to the calendar day
- Raid attendance only knows present/absent (old "excused" entries count as unset)

Bug reports:
- Up to 5 images per report, pasting copied images with Ctrl+V (also for the gallery)
- Images are only served to the reporter and bugs.manage via bug_image.php

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 09:27:09 +02:00
Maaxxs
e1c08783c1 Developer page to reset test data by area (points, shop, warehouse, gallery, wiki, audit log, ...)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 08:33:38 +02:00
Maaxxs
ad6813d65d New tab icon (Lumina Ascendens crest), homepage: 100+ active members
- favicon.ico and favicon 16/32/48 plus apple-touch-icon generated from the new crest, links with a version tag against the browser cache
- Homepage: "Active members" 100+

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 01:44:17 +02:00
Maaxxs
392994e1cd Activity check (website + bot), videos in the wiki, contributor search list
- Activity check: created on the website (activity.php, activity.manage) or with /aktivitaetscheck; the bot posts "I'm in" / "I'm out" buttons; title, text, color, image and button labels are configurable with a live preview; deadline; consequences for non-responders (DM, remove/add role, optionally also for "I'm out"); close early or cancel; overview of in / out / pending
- Wiki: a video link alone on a line (YouTube incl. Shorts/start time, Twitch, Vimeo, .mp4/.webm) becomes an embedded player, plus a "Video" button in the editor
- Wiki: "Add contributor" as a search list with avatar, group and class instead of a dropdown

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 01:11:49 +02:00
Maaxxs
905e954118 Profile background selectable; picture page arrows centered, comment field side by side
- Members pick the background of their profile page: 11 landscapes or one of their own approved gallery pictures (users.profile_background, small preview images)
- Picture page: arrows as icons, centered on the image itself (not on image + caption)
- Comment field: avatar next to the input, normal font

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 22:45:34 +02:00
Maaxxs
0f097dda87 Calendar: raids and events as a monthly view plus member entries with "I'm in"
- calendar.php: raids and events live from the bot API (no duplicate data), recurring events projected forward, agenda list, mobile view with dots
- Optionally public (without login, titles and times only), linked on the homepage
- Members add their own entries (calendar_entries), participants via "I'm in", same protections as comments (filter, approval, report button, rate limit)
- Moderation also covers calendar entries

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 22:26:17 +02:00
Maaxxs
e4f23fcde4 Audit log, abuse protection, gallery comments with moderation, safe image uploads, 404 page
- Audit log: every admin_log entry is also stored permanently in the database (admin/audit.php, audit.view)
- Rate limits per account, login throttling per IP (not per account), emergency lock after mass deletions, force logout / lock in user management
- Comments under gallery pictures (picture page, report button, owner can disable them)
- Moderation: new members, links, reported content and a "moderate everything" switch go to the approval list (moderation.php)
- Every uploaded image is re-encoded (strips appended code and EXIF data)
- Custom 404 page, also shown for pages without permission

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 21:57:34 +02:00
Maaxxs
5f8b86663f Member profiles with characters and gallery, member list search/filter/sort/view toggle, Discord join date
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 20:45:37 +02:00
Maaxxs
beff58981a Wiki with the beginner guide: chapters, editor with preview, history, contributors, guide import
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 20:33:17 +02:00
Maaxxs
db4c614dca Bug reports: members report website bugs on the dashboard, leadership handles them under /bugs.php
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 18:38:59 +02:00
Maaxxs
fcb7154dc7 Homepage redesign: full-width banner, about/fact sheet, Discord section with live counts
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 17:38:42 +02:00
Maaxxs
793a0293dc Public homepage: banner, member count, legion values, Discord invite
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 17:29:50 +02:00
Maaxxs
17dea6d41f Lumishop partial approval, Lumipunkte on dashboard and in sidebar box
Members may now request more than is in stock (or items that are sold
out); only their points have to cover the full request. When approving,
the manager can approve fewer than requested. The quantity field is
prefilled with what is in stock, the cost updates as you type, and only
the approved part is charged and taken from stock. The order keeps the
requested quantity, so the member sees e.g. "3 von 10 bewilligt". The
order list also shows the current stock and flags when it isn't enough.

The column upgrade check now covers every table that has upgrades,
instead of only users and roles. Tables that are about to be created
fresh are skipped.

The dashboard gets a card with your Lumipunkte and your rank. In the
sidebar, the points move from under your name into a gold box above the
profile.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 10:56:59 +02:00
Maaxxs
ebc9e2367e Lumishop: trade Lumipunkte for items, with approval
Members request items from the shop. Their points and the stock are
earmarked but not taken until someone with shop.manage approves. Approving
books a negative "Lumishop" entry in the Lumipunkte history and takes the
stock. For warehouse-backed items it also books a withdrawal to the member
in the warehouse. Approved orders are then marked as handed over in the
game, or can be reversed, which restores points, stock and the warehouse
withdrawal.

The management page handles categories and items (price, description,
stock). Stock is either the shop's own count, unlimited, or live from a
linked warehouse item. Items in stock can be imported from the warehouse,
and an item's own stock can be moved into the warehouse to link it there.
Warehouse cards show when an item is sold in the shop.

Shop bookings can't be deleted from the Lumipunkte page, only reversed in
the shop, so orders and points stay in sync. The new permissions go to the
Administrator group only, so the shop stays hidden until it is assigned.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 10:49:05 +02:00
Maaxxs
5f25e20900 Kina in the warehouse, Lumipunkte, new logo, versioned assets
Warehouse: Kina (the game currency) can be paid in and out, shown in its own
box with the in-game coin icon (Icon_Currency_Coin_GoldNonbinding from the
game client via aion2.app, since the wiki has none). It is a catalog item in
the new "Währung" category, kept out of the item cards and totals, and
allows up to a trillion per entry; warehouse_movements.quantity becomes
BIGINT for that. A leftover "Kinah" entry is merged into "Kina".

Beitragspunkte are renamed to Lumipunkte in every visible text, the coin is
now lumipunkt.svg, and the schema sync also updates the descriptions of
existing core permissions so the new name reaches the role editor.

The sidebar, login page and mobile top bar show the new Lumina Ascendens
logo, cropped and with its dark background made transparent.

Scripts and the stylesheet are included with a ?v=<mtime> query
(asset_url()), so browsers pick up new versions after an upload instead of
running stale JavaScript - the cause of raid points not being saved.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 10:25:28 +02:00
Maaxxs
dd7ad2a25b Beitragspunkte: switch for public history, old logo back
Above the history, people with contributions.manage can switch "Verlauf für
alle sichtbar" (default on). Turned off, everyone else sees only the ranking,
without history and without links on the cards. Settings now carry their own
permission and return page, so the same action serves this switch and the
Discord unlink switch in the user list.

The sidebar, login page and mobile top bar show the previous logo again;
the new logo files are removed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 09:31:19 +02:00
Maaxxs
852eee357d Beitragspunkte for members, new Lumina logo
Members can be awarded contribution points for raids, events and other
activities, shown with a golden heart-shaped coin. An award has an occasion,
reason, date and points per member; members are picked with search and
select all/none, and choosing a raid preselects its participants (signed up
in a group and linked to a website account), fills in reason and date and
names participants without an account. The + on a member's card awards to
that member alone, negative points deduct, and awards can be deleted whole
or per member. Balances are always computed from the awards.

The ranking shows members as cards with gold/silver/bronze for the top three
and the viewer's own balance in the header and sidebar. With only
contributions.view it lists the best 25 places plus the viewer's own place;
contributions.view_all or contributions.manage show everyone. The history of
awards is paginated, using pagination now shared with the warehouse.

The sidebar shows the new logo, and the login page and mobile top bar a
wordmark cut from it with soft edges.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 09:23:55 +02:00
Maaxxs
3e025b811e Lagerhaus: stock and history of the legion's items
A new page records items handed in (item, quantity, when, and from whom -
a website account or a free-text name) and taken out (when, now or entered
by hand, and optionally to whom). Stock is always computed from the
movements, withdrawals can't exceed it, and a deposit can only be deleted
once nothing of it has been taken out. Stock is shown as cards with the item
picture and quantity, name and category below, plus search and a category
filter; the history lists every movement with who entered it.

The item list holds 2,301 weapons, armor pieces, accessories and consumables
read from the Aion 2 wiki's MediaWiki API, with each item's icon downscaled
to 128px under assets/images/warehouse/. It is loaded into the database on
first visit and again whenever the JSON changes. Unknown names can be added
as custom items after a confirmation, since the wiki lists no materials.

warehouse.view and warehouse.manage are new permissions. Missing core
permissions are now created automatically and granted to the Administrator
group, and the two tables are created like the other schema additions.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 08:46:40 +02:00
Maaxxs
01719dd958 Login: Discord first, pending approval, groups synced from Discord roles
The login page leads with "Mit Discord einloggen"; username/password stays
available below and can be allowed or refused per user. The Discord login
asks for identify + guilds.members.read, so the site itself can check that
the account is on the legion's server and read its roles - no bot token on
the webspace. Unknown accounts get a new user in the new status "pending",
Discord-only, who sees nothing but a "Freischaltung ausstehend" page and has
no permissions until approved from the user list.

Permission groups can be linked to a Discord role. Linked groups are granted
and revoked from the member's roles at every Discord login and then every
five minutes during a session, using the stored (refreshed) user token;
leaving the server removes them and ends a Discord session. Manual groups are
untouched, and several linked roles simply add up their groups.

New columns are added automatically on first request (includes/schema.php),
since the login page itself needs them; existing accounts keep password login.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 07:49:47 +02:00
Maaxxs
c5213b5736 Karte: replace the tactical map with the interactive map viewer
The Karte page now embeds a standalone viewer (assets/map/) covering all ten
regions - Verteron, Altgard, Elthen, Morheim, Poeta, Ishalgen and the
Reshanta maps - with markers and category filters from interactivemap.app.
map.php loads it in an iframe because its stylesheet restyles body, button
and * globally and would otherwise break the site layout.

The tile, marker and icon data (~230 MB, ~39,000 files) is kept out of Git
and uploaded by FTP; the README explains where it comes from.

Removed with it: own markers and categories, tactic layers, the in-browser
map builder, the tile/stitch/viewer tools, the bundled Leaflet, the four map
tables in schema.sql and the map.manage / map.tactics permissions. Existing
databases keep their old map tables untouched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 06:54:17 +02:00
Maaxxs
6b5661dd53 Karte: tactical map tab with own markers and tactic layers
New "Karte" tab: a tiled zoom/pan map of the game world with a category
sidebar (groups, per-category marker counts, show all / hide all, search)
and marker popups, plus tactic layers drawn on top of it.

Markers are placed by clicking the map (map.manage) and live in freely
editable two-level categories, each with its own emoji and colour. A tactic
(map.tactics) is a separate drawing layer that can be toggled on and off:
rally points, dashed routes, areas and text notes in any colour, finished by
double click, an explicit button or Enter, removed by clicking them.

Coordinates are stored as a fraction of the map's width/height rather than
in pixels, so re-tiling the map at a different resolution never moves
anything.

The map data lives entirely in the website database - the Discord bot is not
involved. tools/make_map_tiles.php slices a high-resolution image into the
zoom pyramid locally; the resulting folder is uploaded by FTP and picked up
automatically, one region per folder. Leaflet 1.9.4 is vendored under
assets/vendor/ so there is still no CDN and no build step.

New permissions map.view / map.manage / map.tactics and four new tables -
existing installs have to add both once (see README).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 13:25:12 +02:00
Maaxxs
300dae4263 Events: new tab for the bot's scheduled event reminders
Mirrors the bot's event planner (/event_planen, /event_liste) on the
website: list all scheduled reminders with a filter for recurring/one-off,
create, edit and delete them. Both sides talk to the same bot database, so
a reminder scheduled in Discord shows up here right away and vice versa -
sending stays with the bot's background job.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:12:45 +02:00
Maaxxs
fea0cc3a91 Overhaul raid signup/management to match the Discord bot's full feature set
Signup is now a single "Anmelden" button that opens a class-icon
picker + optional group choice. A new raid_wish_is_sensible() mirrors
the bot's exact role-cap algorithm (Tank/Heal 1, DPS 3 per 5-player
group, ROLE_MAPPING copied from teamplaner.py) to decide server-side
whether the requested group is honored or the request falls back to
the bot's own auto-assignment - with a message telling the member to
ping the raid lead if they wanted something specific. Verified the
cap logic with 7 synthetic cases (own-signup exclusion, full group,
role caps, bench always allowed) before wiring it up.

Admins get a per-raid edit-mode toggle (pencil icon) that reveals:
inline raid editing (title/date/requirements/gearscore/groups/slots/
group locks) via PATCH, a premade-invite mini-form via the new
premades endpoint, and native HTML5 drag-and-drop to move a signup
between groups/bench via PATCH .../signup/{user_id}.

New pieces: includes/raids_api.php gained move_signup(), update_raid(),
invite_premade(), fetch_premades(), fetch_raid_by_id() and the wish-
sensibility check; four new JSON action endpoints (raid_signup_action,
raid_move_action, raid_edit_action, raid_premade_invite_action) reusing
the session CSRF token via a new verify_csrf_token()/read_json_body()/
json_response() trio in functions.php; assets/js/raids.js drives the
modal, edit-mode, and drag-and-drop with plain fetch() (no framework).

Read-heavy parts (page render, class icons, signup-wish logic) verified
against real data/live API. Edit, move and premade-invite are NOT
tested against the live API yet since they'd mutate the real raid or
send real Discord DMs to guild members - flagging this for a
supervised live check before considering it fully verified.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 18:36:04 +02:00
Maaxxs
e6f170deff Add per-page background images from the Landscapes artwork
Dashboard, Mein Profil, Raids and the admin pages (Benutzerverwaltung/
Berechtigungsgruppen) each get a distinct backdrop behind the panels,
via a page->background map in header.php and a dark gradient overlay
so text stays readable. Raids uses the darkest/most dramatic image as
requested.

Generated compressed 1920px-wide JPEG copies under Landscapes/web/
for actual use on the page - the original PNGs were up to 11.7MB
(landscape4), which would have made every page load painfully slow.
Originals are kept untouched alongside them.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 18:16:37 +02:00
Maaxxs
706cf97d64 Add a "Mein Profil" page and align raids with the real bot logic
- New profile.php (display name, password, Discord link/unlink),
  reachable from the sidebar; removed the duplicate Discord section
  from the dashboard.
- Corrected class names/icon mapping to match the actual bot config
  (Beschwörer, Kantor) instead of the guessed German terms used
  earlier.
- raids.php now understands the bot's full group model: group 0 is
  the bench ("Ersatzbank"), -1 is a decline ("Abgemeldet"), and class
  "Ausstehend" marks a pending premade invite (now shown with an
  hourglass instead of being silently dropped or mis-rendered). The
  "X / max" counter matches the bot's own active-count logic (pending
  invites don't count). Signup form also lets a member choose the
  bench explicitly.
- A few more inline icons (profile, list) for general visual polish.

Verified grouping/active-count/icon logic with synthetic bench/
declined/pending signups, and the real raids.php flow (profile
update, sidebar nav) against a local DB plus the live raids API.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 13:49:41 +02:00
Maaxxs
620ef68015 Add a Raids page fed by the guild's external raids API
New raids.php shows upcoming raids (date, requirements, gearscore,
groups and their signups) pulled from https://api.maaxxs-coding.de/api/raids
via includes/raids_api.php (cURL + X-API-Key header), gated behind a
new raids.view permission so it fits the existing permission-group
model. Fresh installs seed raids.view onto Mitglied automatically;
existing installs need to add it once via the Berechtigungsgruppen UI
(documented in the README). API/network failures show a friendly
error instead of crashing the page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 12:44:17 +02:00
Maaxxs
00e52f2308 Replace the "Aion2 Gilde" text brand with the guild logo image
Swaps the text link in the sidebar and the logged-out top bar for
the logo at assets/images/logo.png, sized via CSS (56px in the
sidebar, 40px in the top bar, 32px on the collapsed mobile bar).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 07:19:47 +02:00
Maaxxs
5811019908 Redesign the logged-in area with a left icon sidebar layout
Replaces the top navbar with a fixed vertical sidebar (brand, nav
links with inline SVG icons, active-link highlighting, user info and
logout pinned to the bottom) for a more modern dashboard feel. Public
pages (login, install, logged-out landing) keep the simple top bar.
Collapses to an icon-only horizontal bar under 860px since there's no
JS toggle. Dashboard quick-links get matching icon badges.

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