Bug Report
Note: This issue was identified during AI-assisted development and should be human-reviewed for accuracy.
Environment
- Package:
@svar-ui/svelte-gantt@2.6.0
- Framework: SvelteKit (Svelte 5)
- Runtime: Bun 1.3.11
Description
When using quarter scale configuration, the %q strftime format token is not processed. The header displays literal Q%q instead of the expected Q1, Q2, etc.
Minimal Reproduction
// Scale configuration
const scales = [
{ unit: "year", step: 1, format: "%Y" },
{ unit: "quarter", step: 1, format: "Q%q" }
];
Expected Behavior
Quarter headers should display: Q1, Q2, Q3, Q4
Actual Behavior
Quarter headers display: Q%q, Q%q, Q%q, Q%q (literal text, token not replaced)
Screenshot
The %Y token on the year row works correctly (shows 2026, 2027). Only %q is not processed.
Notes
The %q token may not be part of the standard strftime specification. If a different token or approach is needed for quarter labels, documentation guidance would be helpful.
Bug Report
Note: This issue was identified during AI-assisted development and should be human-reviewed for accuracy.
Environment
@svar-ui/svelte-gantt@2.6.0Description
When using quarter scale configuration, the
%qstrftime format token is not processed. The header displays literalQ%qinstead of the expectedQ1,Q2, etc.Minimal Reproduction
Expected Behavior
Quarter headers should display:
Q1,Q2,Q3,Q4Actual Behavior
Quarter headers display:
Q%q,Q%q,Q%q,Q%q(literal text, token not replaced)Screenshot
The
%Ytoken on the year row works correctly (shows 2026, 2027). Only%qis not processed.Notes
The
%qtoken may not be part of the standard strftime specification. If a different token or approach is needed for quarter labels, documentation guidance would be helpful.