Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
156c562
Initial plan
Copilot Sep 4, 2025
b7d8e20
Add Habit Tracker sample with two interactive tables
Copilot Sep 4, 2025
c67342c
Remove HTML elements from habit tracker, use Markdown formatting
Copilot Sep 4, 2025
9d7694c
Remove hardcoded streaks from habits table, calculate from progress data
Copilot Sep 4, 2025
985b366
Update copilot instructions to always provide preview links automatic…
Copilot Sep 4, 2025
eb88f6c
Make both tables editable in habit tracker with proper editors and up…
Copilot Sep 4, 2025
af42e92
Add month filter dropdown and heatmap visualization to habit tracker
Copilot Sep 4, 2025
847450c
Fix dropdown and heatmap display in habit tracker - add dropdown elem…
Copilot Sep 4, 2025
01b8ef4
Fix dropdown options display and heatmap visualization in habit tracker
Copilot Sep 4, 2025
3cdcdc7
Fix heatmap to show proper calendar-style visualization with daily co…
Copilot Sep 4, 2025
b1ee0a3
Fix heatmap temporal encoding - use temporal type for proper day display
Copilot Sep 4, 2025
3c5bc21
Fix data reactivity issue - add explicit boolean to numeric conversio…
Copilot Sep 4, 2025
91310f4
Create enhanced habit tracker with category-based insights and separa…
Copilot Sep 4, 2025
dbfe301
Fix dropdown field definition and simplify data flow for enhanced hab…
Copilot Sep 5, 2025
f57d7eb
Restore category-based analytics to all-time heatmap with proper data…
Copilot Sep 5, 2025
356c2b7
Fix heatmap axes: monthly view shows categories, annual view shows mo…
Copilot Sep 5, 2025
abb3835
Fix monthlyHeatmapData by using raw data sources instead of tabulator…
Copilot Sep 5, 2025
21b7a89
Create complete habit tracker with monthly filtering, annual calendar…
Copilot Sep 5, 2025
42c83d9
Fix desktop styling and add debug table for joined data
Copilot Sep 5, 2025
0fa7923
Fix data lookup with correct syntax and remove habit_id dependency
Copilot Sep 5, 2025
6b360c5
Fix calendar heatmap date positioning by changing from temporal to or…
Copilot Sep 5, 2025
a721372
Fix calendar heatmap date positioning by removing UTC datetime conver…
Copilot Sep 5, 2025
2bdb460
Fix calendar date positioning using utcParse for consistent UTC date …
Copilot Sep 5, 2025
390a4bb
Fix calendar date positioning with UTC timeUnit transforms and format…
Copilot Sep 5, 2025
98dbfc4
Fix x-axis undefined issue by using timeUnit in encoding instead of t…
Copilot Sep 5, 2025
a84d315
Fix x-axis to always show all days 1-31 in habit tracker heatmaps
Copilot Sep 5, 2025
92a831b
Fix heatmap date positioning by removing manual scale domain and usin…
Copilot Sep 5, 2025
bcfd56f
Fix heatmap to show complete calendar grid with proper date positioni…
Copilot Sep 5, 2025
28ab860
Simplify heatmap approach using explicit scale domains to ensure comp…
Copilot Sep 5, 2025
d8fea63
Fix signal error by temporarily using hardcoded filter to isolate the…
Copilot Sep 5, 2025
24ffdcb
Fix selectedMonth variable reference by adding variableDependencies d…
Copilot Sep 5, 2025
a1daa2a
Restart heatmaps using Seattle weather pattern - direct data aggregation
Copilot Sep 5, 2025
88af37d
Fix boolean aggregation and add complete day domain for heatmaps
Copilot Sep 5, 2025
53ef268
Add initial implementation of Simple Habit Tracker with heatmap visua…
danmarshall Sep 5, 2025
2f7b27b
Add habits table with categories and data joining to simple habit tra…
Copilot Sep 5, 2025
d52f70c
Add month picker and filtered enriched data to simple habit tracker
Copilot Sep 5, 2025
4a35cde
Add monthly category heatmap to simple habit tracker
Copilot Sep 5, 2025
fd24d57
Remove debug table and fix rounded border styling for all groups
Copilot Sep 6, 2025
a262dec
Enhance habit tracker with more categories and comprehensive data sho…
Copilot Sep 6, 2025
92d4280
Move month dropdown into monthly heatmap group
Copilot Sep 6, 2025
548824a
Update heatmap legends and chart titles to be shorter and clearer
Copilot Sep 6, 2025
21f433c
Fix heatmap grid layout by adding explicit grid-column spanning
Copilot Sep 8, 2025
67e99a7
Revert complex grid-column changes to simplify layout
Copilot Sep 8, 2025
4dd3b5c
Rename heatmap to annual and delete other habit tracker files
Copilot Sep 8, 2025
87d1794
Remove 'simple' from habit tracker filename and content
Copilot Sep 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,34 @@ Chartifact consists of several interoperating modules:

4. **Security**:
- Documents are rendered in sandboxed iframes.
- **NO HTML elements are allowed** - use only Markdown formatting.
- No custom JavaScript execution or raw HTML in Markdown.
- For layouts and styling, use only CSS classes applied to groups and standard Markdown elements.

## Component Capabilities and Constraints

1. **Dropdown Components**:
- Dropdown options must be strings only - no objects with value/label properties
- Use simple string arrays for options: `"options": ["Option1", "Option2"]`
- For data-driven options, use `dynamicOptions` with a data source
- Objects in dropdown options will display as "[object Object]"

2. **Chart Components**:
- Heatmaps and complex visualizations should use the `chart` type with `chartKey`
- Place chart specifications in the `resources.charts` section
- Reference charts using `{"type": "chart", "chartKey": "yourChartKey"}`
- Direct `vega-lite` type elements may not render properly for complex charts

## Examples

- Source code for examples is in the packages/web-deploy/json folder
- Examples in this repo use the json format and are compiled to markdown.
- If you are asked to create an example, do it in the packages/web-deploy/json folder, do not modify the destination folder docs/assets/examples - this will be populated by a build.
- The examples are built manually for now.
- **IMPORTANT**: When creating examples, use only Markdown formatting - NO HTML elements are allowed. Use plain text, Markdown headers, bold/italic formatting, and CSS styling for visual presentation.

## Runtime host

- There is a sandboxed runtime that securely renders documents available at https://microsoft.github.io/chartifact/view
- The url above can accept a `load` parameter to specify the document to render, for example https://microsoft.github.io/chartifact/view/?load=https://raw.githubusercontent.com/microsoft/chartifact/562d086/packages/web-deploy/json/sales-dashboard.idoc.json
- If you are asked to create an example, please provide a link in the PR comments so it can be previewed.
- **ALWAYS provide a preview link when creating or modifying examples** - include the preview link in PR comments and descriptions automatically so examples can be tested immediately without being asked.
Loading