Commit graph

63 commits

Author SHA1 Message Date
Maaxxs
f2478f37b7 Give the Discord card a stronger brand-color treatment
Full blurple border plus a subtle gradient tint instead of just a
thin left accent, and the "Discord" heading now uses the brand color
too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 18:09:56 +02:00
Maaxxs
be8373529a Redesign the profile page: side-by-side fields and a proper Discord card
Anzeigename and Passwort ändern now sit in a two-column grid (stacks
on narrow screens). The Discord section gets its own bordered card
with the official Discord mark (inline SVG, brand blurple accent) and
a clear Verbunden/Nicht verbunden status badge, replacing the plain
generic panel. Verified both connection states with a rendered
screenshot.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 18:07:12 +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
8c703f0e1f Add Discord account linking and raid signup/management from the website
- Class name on raid signups now shows only as an icon tooltip instead
  of trailing text (falls back to text when no icon matches).
- Discord OAuth2 linking (discord_login.php/discord_callback.php,
  includes/discord.php): members connect their Discord account from
  the dashboard, storing discord_id/discord_username so raid signups
  can be attributed to their real Discord identity. Needs a Discord
  application's client_id/client_secret in config.php.
- raids.php gets self-service signup/withdraw controls (class + group
  picker, upsert semantics) for members with a linked Discord account,
  plus archive/restore controls gated behind a new raids.manage
  permission. New action scripts raid_signup.php, raid_unsignup.php,
  raid_archive.php, raid_restore.php call the corresponding
  includes/raids_api.php functions.
- Archive/restore already work today (verified live against the bot's
  API - archived and restored the one active raid, signups intact).
  Signup/withdraw are fully wired on the website side but need two new
  bot-side endpoints (POST .../signup, DELETE .../signup/{user_id})
  that don't exist yet - contract documented in the README.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 13:25:41 +02:00
Maaxxs
9a278678cb Remove bullet points from raid signup lists and enlarge class icons
Signup <li> items now use flex layout with list-style: none instead
of a bulleted list, and class icons grow from 18px to 28px so they're
easier to recognize at a glance.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 13:08:27 +02:00
Maaxxs
2a73e0e473 Show class icons next to raid signups
Maps the class names the raid bot returns (a mix of English icon
filenames and German in-game terms like "Magier"/"Jäger") to the icon
files under assets/images/Classes via class_icon_url(), case- and
whitespace-insensitive. Classes without a matching file (e.g.
"Templer", or the "Ausstehend" placeholder) just keep the plain text
label instead of showing a broken image. Verified against live signup
data from the API.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 13:02:35 +02:00
Maaxxs
4df0149f8b Add active/archived/all filter tabs to the Raids page
Uses the bot's new ?status= query param on /api/raids. fetch_raids()
takes a status argument (whitelisted against active/archived/all,
falls back to active on anything else) and appends it to the request
URL. Archived raids get a dimmed card style and an "Archiviert" badge
using the new archived/archived_at fields. Verified all three filters
end-to-end against the live API.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 12:59:01 +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
77bb1b3ff5 Use real German umlauts instead of ASCII transliterations
Every "oe/ae/ue" spelling throughout the UI text and comments (fuer,
loeschen, koennen, ...) was my own typo, not an encoding bug - the
charset fix in the last commit was unrelated. Replaced all of them
with proper ö/ä/ü across every PHP file and the README.

Also fix table rows rendering inconsistently: `.actions` and the
status badges were applying `display:flex` directly to a <td>, which
fights the table layout model and renders unreliably across browsers.
Moved the flex layout into a wrapper <div> inside each cell instead,
and restyled row-level delete buttons as plain text links so they
match the height of the "Bearbeiten" link exactly. Tables also get a
horizontal-scroll wrapper so narrow viewports scroll instead of
squeezing cell content.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 07:16:15 +02:00
Maaxxs
3c72d0ed7e Force UTF-8 output and switch the palette to neutral gray
Explicitly set the Content-Type charset (PHP's default_charset can be
overridden by the host, which breaks oe/ae/ue even though the meta
tag says UTF-8) and add matching .htaccess/schema collation. Verified
end-to-end that umlauts round-trip correctly through the DB and render
correctly in the browser. Also replaced the dark blue-tinted palette
with true neutral grays; the gold accent stays.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 06:58:53 +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
Maaxxs
e57fa0b73c Flatten structure so webroot is the project root instead of public/
Simplifies Plesk/shared-hosting deployment (no need to set a separate
document root subfolder). config.php, includes/ and sql/ are now
protected via .htaccess rules instead of living outside the webroot.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 06:06:56 +02:00
Renamed from public/assets/css/style.css (Browse further)