Skip to content

Unify status badges, fix module toggles, add auto CSS compiler - #470

Merged
ddon merged 8 commits into
BeamLabEU:devfrom
mdon:dev
Apr 1, 2026
Merged

Unify status badges, fix module toggles, add auto CSS compiler#470
ddon merged 8 commits into
BeamLabEU:devfrom
mdon:dev

Conversation

@mdon

@mdonmdon commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Unified status_badge component — consolidated all module-specific status badge variants (sync, emails, entities) into the core status_badge/1 with 13 new status classes and
    underscore-to-space label formatting
  • Removed hardcoded Legal references — Legal admin route and module card were still hardcoded in core despite being an external module; now fully auto-discovered via
    settings_tabs/0
  • Auto CSS source compiler — new :phoenix_kit_css_sources Mix compiler that discovers modules with css_sources/0 at compile time and generates _phoenix_kit_sources.css, replacing
    manual @source lines in install/update tasks
  • Fixed module toggle bugs — maintenance toggle now uses enable_module/disable_module (not enable/disable_system); legal toggle now rebuilds external_modules after state change
  • Route deduplication — collect_module_tabs now deduplicates by path to prevent warnings when parent tab and subtab share the same path with live_view:
  • Added 7 missing modules to known_external_packages — legal, catalogue, document_creator, user_connections, comments, hello_world now appear in Available Packages

mdonand others added 8 commits April 1, 2026 08:17
Add status_label/1 to handle underscored statuses (e.g. in_progress).
Add 13 new status classes covering sync, connections, and general states.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Legal is now an external module with auto-discovered routes via
settings_tabs/0. Also add Enum.uniq_by to prevent duplicate routes
when parent tab and subtab share the same path and live_view.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add dedicated toggle_maintenance handler using enable/disable_module
instead of enable/disable_system (fixes toggle showing wrong state)
- Fix toggle_legal to rebuild external_modules after toggle
- Remove hardcoded Legal module card (now auto-discovered as external)
- Add w-full to external module action buttons for proper layout
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add legal, catalogue, document_creator, user_connections, comments,
and hello_world so they appear in Available Packages when not installed.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New Mix compiler discovers modules with css_sources/0 at compile time
and generates _phoenix_kit_sources.css with @source directives. Replaces
manual per-module @source lines in install/update tasks.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ddon
ddon merged commit d3eec52 into BeamLabEU:devApr 1, 2026
ddon added a commit that referenced this pull request Apr 2, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for freeto 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

@mdon@ddon