Commit graph

17 commits

Author SHA1 Message Date
Maaxxs
3fa3a7310d Group icons: groups get an icon in front of their name, like the role icons in Discord
In Berechtigungsgruppen -> Gruppe bearbeiten the new field "Symbol" takes an uploaded image or a
link to one, with a checkbox to remove it and a live preview in the tag.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 12:35:02 +02:00
Maaxxs
0609d059ab Classes as icons only: member list and profile page no longer write out the class names
- Member list: the main class stays as icon behind the name, further classes follow below as icons only; single-class members get no extra line
- Profile page: class chips show only the icon (main chip keeps the "Main" label), the class name is in the tooltip

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

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

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

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

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

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

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

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 14:11:03 +02:00