Skip to content

Claude/enhance fantasy map UI zcd89#1368

Closed
scrovolakka wants to merge 8 commits intoAzgaar:masterfrom
scrovolakka:claude/enhance-fantasy-map-ui-ZCD89
Closed

Claude/enhance fantasy map UI zcd89#1368
scrovolakka wants to merge 8 commits intoAzgaar:masterfrom
scrovolakka:claude/enhance-fantasy-map-ui-ZCD89

Conversation

@scrovolakka
Copy link
Copy Markdown

Description

scrovolakka and others added 8 commits April 4, 2026 15:33
…ponents

- Added new CSS variables for border, shadow, and typography to improve consistency.
- Updated button and input styles for better visual feedback and accessibility.
- Modified dialog and tooltip styles for improved readability and aesthetics.
- Adjusted jQuery UI styles to align with the new design system.
- Updated .gitignore to include .DS_Store and specific prompt files.
- Introduced Japanese translations for UI elements and tooltips.
- Added a script to generate the Japanese tip map from English source.
- Updated index.html to set the language to Japanese and modified meta tags accordingly.
- Enhanced general.js to support language-specific prompts and tooltips.
- Created ja-ui.js and ja-tip-map.js for localized content.
Previously, Japanese translations were only applied to static HTML elements.
Dynamically created UI (layers panel, tools, buttons) remained in English
because ja-ui.js ran before those modules initialized their content.

This fix adds ja-ui-trigger.js which:
- Runs after all UI modules have initialized
- Applies translations to dynamically created elements
- Listens for UI update events to re-apply translations

Now the entire UI displays correctly in Japanese when FMG_LANG is set to 'ja'.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This PR fixes the issue where Japanese translations were only applied to static HTML elements. Dynamically created UI (layers panel, tools, buttons) now displays correctly in Japanese.

Fixes the timing issue where ja-ui.js ran before UI modules created their content.
…d floating toolbar

Overhaul the UI/UX to a 2026-era minimal × modern design:

- Replace CSS token system with comprehensive design tokens (colors, shadows,
  spacing, typography, radii, transitions) for both light and dark themes
- Add dark mode support with light/dark/system toggle (data-theme attribute)
- Apply glassmorphism (backdrop-filter blur + translucent backgrounds) to
  panels, dialogs, dropdowns, and toolbars
- Modernize all components: flat buttons with scale feedback, underline tab
  indicators, accent-colored sliders, slim scrollbars, refined separators
- Add command palette (Ctrl+K) with fuzzy search across all tools, layers,
  editors, presets, and actions with keyboard navigation
- Add floating vertical toolbar (Photoshop-style) for quick access to
  add label/burg/river/route/marker and edit heightmap tools
- Add status bar showing zoom level, coordinates, mode, and seed
- Animate dialog appearance with scale+fade keyframes
- Update glow animation to use accent color instead of hardcoded red
- Fix hardcoded colors for dark mode compatibility throughout

https://claude.ai/code/session_01Ww6C6HBbJbhJ6cXpoaLLoD
…enter

- Replace the floating collapsible options menu with a fixed left side panel
  that slides in/out with CSS transform animation
- Add panel header with title, regenerate (⟳) button, and close (✕) button
- Move floating toolbar from left-center vertical to top-center horizontal
  pill-shaped bar for better ergonomics
- Hamburger (☰) trigger button shows when panel is closed, hides when open
- Remove drag-to-move behavior (no longer needed for fixed panel)
- Remove legacy hover-to-show-regenerate (now in panel header)

https://claude.ai/code/session_01Ww6C6HBbJbhJ6cXpoaLLoD
… resize

Major side panel UX overhaul:

- Replace horizontal tab bar with vertical accordion navigation
  (Layers/Style/Options/Tools/About as collapsible sections)
- Each section has icon + label + chevron, click to expand/collapse
- Fix content overflow: replace float-based layer grid with CSS grid
  using auto-fill/minmax for responsive fit within panel width
- Fix tools grid to use auto-fill for responsive column count
- Fix viewMode and mapFilters to use CSS grid instead of float+%
- Make panel resizable (CSS resize: horizontal, min 260px / max 480px)
- Add visual resize handle indicator on right edge
- Fix #sticked bottom bar with proper flex-wrap and spacing
- Tables use table-layout: fixed and width: 100% to prevent overflow
- All font sizes use design tokens (--text-xs, --text-sm)
- shadcn-style section headers: uppercase, muted, letter-spaced

https://claude.ai/code/session_01Ww6C6HBbJbhJ6cXpoaLLoD
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 4, 2026

Deploy Preview for afmg ready!

Name Link
🔨 Latest commit d312eb5
🔍 Latest deploy log https://app.netlify.com/projects/afmg/deploys/69d0d067bae50e0008fc68d8
😎 Deploy Preview https://deploy-preview-1368--afmg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@scrovolakka scrovolakka closed this by deleting the head repository Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants