Commit graph

175 commits

Author SHA1 Message Date
Maaxxs
b7333b8a07 Buttons next to input fields match the field height (wiki contributors, shop categories, bug reports)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 12:19:17 +02:00
Maaxxs
e9b6a820a8 Consistent buttons site-wide, stat totals next to gear sets on the profile page
- Buttons: icon and text centered, <button> inherits the page font, invisible border so gold and
  dark buttons have the same height, icons scale with the button size
- Two sizes only: normal for page/set header actions and form submits, small for actions in rows,
  cards and toolbars (header actions in gear planner, profile, members, calendar switched to normal)
- Profile page: gear set cards list the stat totals next to the equipment column

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 12:00:53 +02:00
Maaxxs
489518647c Gear sets on the profile page as an in-game style column, mini grid in 'Meine Sets'
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 11:35:15 +02:00
Maaxxs
91008dfc8b Gear planner: equipment as an in-game style grid (two square slots per row, grade colors, enchant badge, slot silhouettes)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 11:24:42 +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
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
05993dc118 Wiki: thin gold scrollbar for the table of contents
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:36:04 +02:00
Maaxxs
e127cf6b70 Wiki: WIP badges aligned in one column in the table of contents and subpage list
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:33:22 +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
c62c996a3f Lumipunkte ranking shows the top 24, leadership can expand the rest
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:18:44 +02:00
Maaxxs
c58e7dd0c3 Member list: filter rows start on the same line, no member count in the intro text
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:13:22 +02:00
Maaxxs
7c0ffccbd2 Member list: uniform filter/sort chips, numbered names (# III | Name) sorted by their number
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:07:53 +02:00
Maaxxs
62bc861d13 Member list: a rank group with a single member (e.g. the leadership) is centered
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:04:37 +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
9c955af902 Profile page: symmetric boxes and buttons, character level limited to 45
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 09:49:47 +02:00
Maaxxs
92cd48f478 Gear planner import: follow all pages of an aion2hub list, /database takes weapons, armor and accessories
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 09:34:55 +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
96b7363ca1 404 page as an image card: lonely tower under the moon, floating gold 404, twinkling stars
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 08:20:29 +02:00
Maaxxs
0143bfc99e Member selection as a search list with avatar instead of a dropdown (warehouse, attendance, premades)
- New shared function member_picker() (includes/member_picker.php) on top of item-picker.js: round avatar, name, group and class
- Warehouse "Handed over by" / "To", attendance "Add member", premades "Transfer leadership"

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 02:50:11 +02:00
Maaxxs
80d471edd8 Calendar: expandable participant list, Discord previews with the bot color
- Member entries: avatar row with "+X" and "N attending", a click expands the list with avatar, name, profile link, "Host" and "You"
- Discord previews (events, activity check) have the bot color #206694 on the left instead of gold (CSS variable --bot-color)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 02:40:12 +02:00
Maaxxs
3c9574c430 Lumishop: categories in their own panel on the left with item counts, modern search bar
- Category list below each other with counts, active category highlighted in gold, sticky while scrolling; on phones a swipeable row
- Search field in the same round style as elsewhere, with a "x of y" count

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 02:30:36 +02:00
Maaxxs
8d7b729744 Custom scroll bar: gold progress rail on the right instead of the browser scrollbar
- Thin rail that fills with gold while scrolling, click jumps to that position, drag scrolls along
- Hidden when the page fits on the screen, browser scrollbar hidden (stays without JavaScript)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 02:26:59 +02:00
Maaxxs
342066cbfd "Gilde" -> "Legion", button hover fix, subtle sidebar scrollbar, bot color as the activity check default
- Everywhere on the website "Legion" instead of "Gilde" (Legionsleitung, Legionsmitglieder, ...)
- Link buttons keep their text color on hover (previously gold on gold, e.g. "Zum Lumishop")
- Sidebar: scrollbar hairline-thin and only visible on hover, menu more compact on low screens
- Activity check: bot color #206694 is the first entry of the palette and the default

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 02:23:48 +02:00
Maaxxs
a927e67657 Homepage: Discord section dark bronze with gold accents instead of light
- Dark warm background with a soft gold shimmer and gold border, light text
- "Join Discord" button in gold, stat boxes dark with a gold border

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 02:01:08 +02:00
Maaxxs
8336a8cb05 Discord section in toned-down champagne gold, user management: administrators before developers
- Homepage Discord card less bright (sand/champagne gold instead of ivory), text slightly darker for contrast
- User management: order is pending, administrators, developers, then by group

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 01:58:59 +02:00
Maaxxs
70f851a163 Homepage: Discord section in golden white
- Card with an ivory-to-light-gold gradient and gold border, dark bronze text
- "Join Discord" button dark with light gold text, stat boxes light with gold border

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 01:55:07 +02:00
Maaxxs
4ce47a118c Homepage: warmer, lighter golden background
- Background warm gold-brown instead of nearly black, gold glow slightly stronger, violet/blue toned down, pink replaced with amber
- Header, fact bar and section borders in matching warm tones

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 01:52:31 +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
c869f93152 Map: share locations and pick them for calendar entries
- Map links (/map.php?karte=…&x=…&y=…&zoom=…&ort=…) open the region at that spot with a pin
- "Share location" button on the map: click a spot, optional name, copy the link
- Calendar entries: "Pick location on the map" opens the map in a window, "Use this location" stores the meeting point
- Map links in comments, captions and descriptions render as "📍 Region – Location" and do not count as external links for moderation

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 22:33:26 +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
6d8747c9e4 Moderation: all comments with flags, swear word filter; reactions on pictures and comments; last active in member list; map starts with categories hidden
- Moderation page with tabs: approval, all comments (critical/suspicious flags, search, filters), swear word filter (mark / hold / block, maintained by mods, detects leetspeak)
- Discord-style emoji reactions on gallery pictures and comments (without reloading)
- Member list and profile: "last active" / online dot, sortable
- Map: all marker categories hidden at start

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 22:12:10 +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
a483ea8712 Modern item picker (image, category, stock, keyboard) for deposit, withdraw, history search and shop management; category chips for the stock
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 21:31:52 +02:00
Maaxxs
276f80bd7b User management and raids: search field; user management also has status filters and sorting
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 21:03:17 +02:00
Maaxxs
fd3928726b Raid groups: no wrapping for long names; show website display names synced from the Discord server nickname
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 20:57:56 +02:00
Maaxxs
267a7f532c Member list: redesigned filters with search field, class icon chips, group chips and sort toggle
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 20:53:17 +02:00
Maaxxs
590d50c7f1 Modern file picker with drag and drop and image previews
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 20:47:59 +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
b4681bd123 Member list: larger class icon
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 19:41:30 +02:00
Maaxxs
c02f75258a Member list: class icon behind names (synced from Discord class roles or chosen in profile), group badges
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 19:40:21 +02:00
Maaxxs
7d4b7fc67a Sync member avatars from Discord (server avatar first), unless a custom one was uploaded
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 19:33:05 +02:00
Maaxxs
0123d4d028 Developer accounts (by Discord ID) always have all permissions and are protected
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 18:58:20 +02:00
Maaxxs
9412a59b72 Per-user administrator flag with all permissions, managed via users.admin
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 18:54:44 +02:00
Maaxxs
f773169a7e Dashboard onboarding tour for new members, restartable from the profile
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 18:46:21 +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
2d60de3b2b Homepage: smooth banner fade, group photo, fixed 40+ member label
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 18:00:23 +02:00
Maaxxs
048f51d5bc Homepage: animated aurora background, redesigned first steps cards with icons
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 17:53:50 +02:00
Maaxxs
16aae8320e Homepage: first steps section describing how to join the legion
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 17:48:25 +02:00
Maaxxs
5fcf0a2957 Homepage: modern look with floating fact bar, bento values, Discord panel, 30+ member label
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 17:43:24 +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
667bf676c8 Dashboard: Lumipunkte as their own section
The points move out of the stat cards into their own panel below the
welcome panel. It shows the balance, your rank out of all members, your
open or approved-but-not-delivered Lumishop orders, and buttons to the
ranking and the shop. The stat card panel is hidden when there is
nothing to show in it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 10:59:47 +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
fe1561f4f7 Raids: attendance list, automatic points on archive, reminder callback
Each raid gets an attendance list for raids.manage (present, absent, excused)
with quick actions, members added by hand and a "checked" mark with who and
when. The contribution form can now select a raid's present members for
points or its absent members for a deduction.

Raids can carry points for present members and a deduction for absent ones
(raid_settings). When a raid is archived - on the website or via the button
in Discord, detected on the next raid or contribution page view - the site
awards them once: by attendance if a list exists, otherwise to everyone in a
group without deduction, and not at all if points were already given for
that raid. Settings, attendance and awards follow a raid_id change when the
API re-posts a deleted message.

bot_api.php lets the bot ask which signed-up members have raids.manage when a
raid starts (shared key in config.php bot_callback.key); the bot then sends
them a DM with a link to the list. The bot side lives in the separate bot
repository (cogs/attendance.py).

Also fixes contribution_awards.raid_id being too small for Discord IDs (it
is widened automatically) and raid IDs losing precision in the contribution
form's JavaScript, which kept the raid preselection from ever matching.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 09:52:34 +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
2f74c92b04 Lagerhaus: page numbers for the history
The history shows 25 entries per page with "Einträge 51–75 von 130" and a
bar of page links (first, last and two around the current one, gaps as "…")
instead of only newer/older links. The item filter is kept while paging and
a page number past the end shows the last page.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 09:03:51 +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
ba8cf2a2ef Admin: sync Discord roles on demand
Besides the automatic check every five minutes during a session, the user
list gets "Jetzt mit Discord abgleichen" (all linked accounts, logged in or
not) and the user form "Jetzt abgleichen" (one account), both for users.edit.
They run the same check with the stored token, just without waiting for the
interval, and report how many accounts were synced, left the server, have an
expired Discord login, never logged in via Discord, or could not be reached.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 08:06:51 +02:00
Maaxxs
f5c7a6f776 Admin: edit and delete as icons in the user and group tables
"Bearbeiten" and "Löschen" become the same pencil/trash icon buttons the
events page already uses, with the text kept as tooltip and aria-label.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 08:02:18 +02:00
Maaxxs
0eb8816ef8 Admin: switch for unlinking Discord, keep table actions in view
The user list gets a switch "Mitglieder dürfen ihre Discord-Verknüpfung im
Profil lösen" (users.edit, default on). Turned off, the profile shows a note
instead of the button and discord_unlink.php refuses the request. The value
lives in a new settings table, created automatically like the other schema
additions (SCHEMA_VERSION 2).

The user and group tables were wider than the 1100px content column, so the
actions column (edit/delete/approve) scrolled out of view. Both pages now
use the wide container and the actions column sticks to the right edge.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 08:00:06 +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
1278859f30 Karte: tactics in steps drawn on the map, show/hide all categories
The category panel gets "Alle anzeigen" / "Alle verstecken" buttons.

Tactics belong to a region and are split into steps, each its own drawing
layer: pen, arrow, line, area, circle, labelled point, text and eraser, with
colour, stroke width and undo. A new step can start empty or as a copy of the
current one, earlier steps can be shown faded underneath, and steps can be
renamed, reordered and deleted. Viewing needs map.view, editing map.tactics.

Drawings are stored per shape in world coordinates (the same as the markers)
through tactics_api.php in three new tables; the map page offers to create
them when they are missing. The viewer's own code only gains two hooks
(view change, map change) and the show/hide-all method.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 07:21:45 +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
52fea9f92d Karte: build a map from an image right on the page
Pick an image, press "Karte bauen", done - no FTP, no command line tool.
The panel sits on the setup page while no map exists and under the map as
"Karte neu bauen" afterwards.

The tiles are cut in the browser and only the finished 256px JPEGs are
uploaded. That is the point: on ordinary shared hosting a 50MB map image
runs into upload_max_filesize, cutting it server side runs into memory_limit
and max_execution_time, and GD is not installed everywhere. This way the
server needs none of it - it validates small JPEGs and stores them.

Uploads go into a side folder <key>__build that only replaces the live map
once every tile has arrived, so an abort - by button, by error or by closing
the browser - leaves the existing map untouched.

The server trusts nothing from the client: the key must match a strict
pattern, tile coordinates must lie inside 2^z on their level, and each file
is checked with getimagesize for an actual JPEG within a size limit before it
is stored.

Verified against tools/make_map_tiles.php on the same source image: same zoom
levels, same per-level tile counts (1/4/12/40), same tile names, same
manifest.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 07:34:47 +02:00