Share My Creation ActivePulse - B4XDaisyUIKit + SithasoMPACharts App (Source Code Included)

Hi

We have been building SithasoMPACharts to be the best charting framework to use with the B4XDaisyUIKit. This resulted in us creating B4XDaisyUIKit-Skills and now SithasoMPACharts-Skills, AI skills that will help anyone who wants to create awesome b4a apps that includes beautiful charts.

Below is the result of the AI prompt that was provided, the screens first and then the prompt.

1796389725129.png
1796389760843.png



Fitness dashboard home screen. Weekly activity summary at top (compact), calories burned tracker with circular ring progress (compact card), workout streak counter below the calories card, weekly workout bar chart at bottom. Mobile app, single screen.


Visual Style: Light mode with soft cream background, rounded cards with subtle shadows, coral as primary accent color, electric blue for charts and highlights. Clean sans-serif typography, modern card-based layout.


Mood: Motivational and energetic. Fresh, clean, and approachable. Modern wellness aesthetic that feels encouraging and uplifting.
 

Attachments

Complete AI Prompt (Updated ActivePulse / FitnessDashboardApp)

Create a single-screen native B4A / B4XPages fitness dashboard app named "ActivePulse" (FitnessDashboardApp, package com.b4x.daisy.fitnessdashboard, portrait orientation) using B4XDaisyUIKit (B4XDaisyUIKit.b4xlib + B4XDaisyPageScroll) and SithasoMPACharts (LibraryN=sithasompacharts, #AdditionalJar: mpChartLib, #AdditionalJar: kotlin-stdlib-2.0.21).

Visual Direction & Mood
  • Style: Motivational Light Mode — soft warm cream canvas (0xFFFAF8F5), crisp white rounded cards (0xFFFFFFFF, rounded-box, sm shadow), coral (0xFFFF6B6B) as the primary accent color, electric blue (0xFF0066FF) for charts and highlights, slate secondary text (0xFF475569 / 0xFF64748B), and dark ink headings (0xFF0F172A).
  • Mood: Fresh, energetic, encouraging, and clean with generous spacing (PagePadding = 16dip, YGap = 16dip) so the first viewport frames cleanly without slicing chart bars across the fold.

Screen Architecture (B4XPageFitnessDashboard inside B4XMainPage shell)
  1. Top Navbar (B4XDaisyNavbar, height 56dip):
    • Title "ActivePulse", cream background (0xFFFAF8F5), dark text (0xFF0F172A), Shadow = "xs", BackVisible = False, navbar.BringToFront.
    • Right-side pill B4XDaisyBadge ("Wed, 7 Jan 2026", Variant = "neutral", Style = "soft", Size = "sm", Rounded = "rounded-full", Clickable = False).
  2. Weekly Activity Summary (B4XDaisyStat, horizontal, EqualWidths = True, 92dip, rounded-box, sm shadow):
    • 3 centered B4XDaisyStatItem columns (CenterItems = True, Padding = "px-2 py-3"):
    • Distance (km): 34.8 (DecimalPlaces = 1, ValueColor = "primary", "1 - 7 Jan 2026")
    • Active Min: 410m (Suffix = "m", ValueColor = "info", "+14% vs avg")
    • Workouts: 7 (ValueColor = "success", "Target met")
  3. Calories Burned Today Card (B4XDaisyCard, title "Calories Burned Today", min height 274dip):
    • Hosts a SithasoMPACharts concentric radial chart (CHART_RADIAL, height 210dip, TouchEnabled = False) with subtitle "Wed, 7 January 2026" (SubtitleGravity = TITLE_ALIGN_LEFT).
    • Rounded ring caps (RING_CAP_ROUND, RingWidth = 11, RingGap = 5, HoleRadius = 66, RingGradient = False), center text "84%" and subtext "1,840 kcal".
    • Two datasets: "Calories (84%)" in coral (0xFFFF6B6B) and "Active Goal (76%)" in electric blue (0xFF0066FF).
    • Tight bottom legend inside the chart (LegendDrawInside = True, LEGEND_BOTTOM, horizontal circle swatches, SelectionShift = 0, MinOffset = 0, ExtraBottomOffset = 6) so no large gap separates the outer ring from its legend.
  4. Workout Streak Counter (B4XDaisyAlert below the calories card):
    • Variant = "warning", Style = "soft", Rounded = "rounded-box", Shadow = "sm", AutoHeight = True, IconAsset = "heart-solid.svg".
    • Title: "14-Day Workout Streak Active"
    • Description: "2 days left to unlock your monthly consistency badge (as of 7 Jan 2026). Keep your daily training pace steady!"
  5. Weekly Workout Distribution Card (B4XDaisyCard, title "Weekly Workout Distribution", min height 355dip):
    • Hosts a SithasoMPACharts column chart (CHART_COLUMN, height 252dip, AllowZoom = False, DragEnabled = False, LegendEnabled = LEGEND_HIDE) with subtitle "1 - 7 January 2026".
    • Y-axis ("Duration (min)", AxisMinimum = 0, AxisMaximum = 110, AxisSuffix = "m", DrawXGrid = False) and bottom X-axis (Mon–Sun values: 45, 62, 30, 75, 50, 88, 60).
    • Rounded bar tips (BAR_CORNER_TIP, BarCornerRadius = 8, BarWidth = 0.62), electric blue (0xFF0066FF) bars with Saturday's peak bar highlighted in coral (0xFFFF6B6B) and pill marker (PillMarkerEnabled = True, HighlightIndex = 5).
    • Centered "Day of Week" B4XDaisyText label beneath the X-axis, followed by a full-width centered B4XDaisyBadge (setWidth("full"), TextCentered = True, Variant = "info", Style = "soft", Rounded = "rounded-box") initially reading "Tap any day column to inspect session details".
    • Interactive barChart_ValueSelected: tapping any column updates the readout badge to "<Day>: <Mins> min - <Session Focus>" (e.g., "Thu: 75 min - Intervals 5K").
  6. Primary Thumb-Zone CTA (B4XDaisyButton, full width, height 48dip):
    • Label "+ Log 25m Workout", Rounded = "rounded-box", Shadow = "sm", Block = True, coral fill and border (BackgroundColor = 0xFFFF6B6B, BorderColor = 0xFFFF6B6B, TextColor = 0xFFFFFFFF).
    • Tapping opens a B4XDaisySweetAlert confirmation ("Log Quick Workout?" — "Add a 25 min Tempo Run (+220 kcal, +3.2 km) to today's Wed session?"). Confirming updates the top KPI stats (+3.2 km, +25m, +1 workout), updates the radial ring (+220 kcal / recalculated % and "Active Goal"), adds +25 min to Wednesday's bar (30 -> 55) while highlighting Wed in coral, updates the readout badge ("Wed: 55 min - Mobility + Tempo Run"), and shows a top-right success toast alert.

Technical Guardrails
  • Use B4XDaisyPageScroll (never B4XDaisyGrid, B4XDaisyFlexPanel, or B4XDaisyFlexLayout), call pageScroll.Clear at the start and pageScroll.AutoFit at the end of RenderContent, and preserve state across resize/orientation changes.
  • Reference B4XDaisyUIKit.b4xlib only (do not copy raw B4XDaisy*.bas files into the app folder), use Hungarian parameter prefixes, and include non-empty Try/Catch logging gated by B4XDaisyApp.DebugLogs.
 
Back
Top