Skip to content

Commit 21e345e

Browse files
committed
Adding more builtin macros
1 parent 7d1a8b5 commit 21e345e

18 files changed

Lines changed: 404 additions & 0 deletions

macros/actions/actions_item.pml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@new_macro
2+
=name:action_item
3+
=template:
4+
<div class="action-item">
5+
✅ <strong>{{task}}</strong> – by {{owner}} (due {{due}})
6+
</div>
7+
<style>
8+
.action-item {
9+
border-left: 4px solid #00bcd4;
10+
background: #e0f7fa;
11+
padding: 0.5em;
12+
margin: 0.5em 0;
13+
}
14+
</style>
15+
=docs:
16+
Logs a follow-up task or action point from the meeting.
17+
@@macro=action_item:task=Deploy new release;owner=pt2;due=2025-06-03

macros/actions/actions_status.pml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@new_macro
2+
=name:action_status
3+
=template:
4+
<span class="action-status action-{{status}}">{{status}}</span>
5+
<style>
6+
.action-status {
7+
padding: 0.3em 0.6em;
8+
font-weight: bold;
9+
font-size: 0.75em;
10+
border-radius: 4px;
11+
margin-left: 0.4em;
12+
background: #ccc;
13+
color: #fff;
14+
}
15+
16+
.action-open { background: #f44336; }
17+
.action-inprogress { background: #ff9800; }
18+
.action-done { background: #4caf50; }
19+
</style>
20+
=docs:
21+
Adds a visual status badge to an action item.
22+
@@macro=action_status:status=done

macros/calendar_event.pml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@new_macro
2+
=name:calendar_event
3+
=template:
4+
<div class="calendar-entry">
5+
<strong>{{title}}</strong><br>
6+
{{date}} — {{time}}<br>
7+
<em>{{location}}</em><br>
8+
<span>{{notes}}</span>
9+
</div>
10+
=docs:
11+
Creates a visual calendar entry for planning or review purposes.
12+
Example usage:
13+
@@macro=calendar_event:title=Team Meeting;date=2025-06-01;time=14:00;location=Zoom;notes=Quarterly review
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@new_macro
2+
=name:decision_entry
3+
=template:
4+
<div class="decision-entry">
5+
<strong>Decision:</strong> {{title}}<br>
6+
<em>Result:</em> {{result}} | <em>By:</em> {{by}}
7+
</div>
8+
<style>
9+
.decision-entry {
10+
background: #e9ffe9;
11+
border-left: 4px solid #4caf50;
12+
padding: 0.5em;
13+
margin: 0.5em 0;
14+
}
15+
</style>
16+
=docs:
17+
Logs a decision made during the meeting.
18+
@@macro=decision_entry:title=Adopt new API format;result=Accepted;by=pt1

macros/decisions/vote_result.pml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@new_macro
2+
=name:vote_result
3+
=template:
4+
<div class="vote-result">
5+
<strong>{{topic}}</strong><br>
6+
👍 {{yes}} | 👎 {{no}} | 🤷 {{abstain}}
7+
</div>
8+
<style>
9+
.vote-result {
10+
background: #f3f3f3;
11+
padding: 0.5em;
12+
border-left: 4px solid #2196f3;
13+
margin: 0.5em 0;
14+
}
15+
</style>
16+
=docs:
17+
Logs a simple voting result.
18+
@@macro=vote_result:topic=Include dark mode;yes=4;no=1;abstain=0
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@new_macro
2+
=name:highlight_issue
3+
=template:
4+
<div class="highlight highlight-issue">
5+
❌ <strong>{{title}}</strong><br>
6+
{{details}}
7+
</div>
8+
<style>
9+
.highlight-issue {
10+
background: #ffebee;
11+
border-left: 4px solid #f44336;
12+
padding: 0.5em;
13+
margin: 0.5em 0;
14+
}
15+
</style>
16+
=docs:
17+
Use this to indicate a blocking issue or bug.
18+
@@macro=highlight_issue:title=Login Timeout;details=Users report timeouts when signing in from mobile.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@new_macro
2+
=name:highlight_warning
3+
=template:
4+
<div class="highlight highlight-warning">
5+
⚠️ <strong>{{title}}</strong><br>
6+
{{details}}
7+
</div>
8+
<style>
9+
.highlight-warning {
10+
background: #fffde7;
11+
border-left: 4px solid #ffeb3b;
12+
padding: 0.5em;
13+
margin: 0.5em 0;
14+
}
15+
</style>
16+
=docs:
17+
Highlights a warning or cautionary point.
18+
@@macro=highlight_warning:title=Delay in Procurement;details=Hardware order delayed due to supplier issue.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@new_macro
2+
=name:highlight_working_on
3+
=template:
4+
<div class="highlight highlight-work">
5+
🛠 <strong>Currently Working On:</strong> {{item}}<br>
6+
{{notes}}
7+
</div>
8+
<style>
9+
.highlight-work {
10+
background: #f3e5f5;
11+
border-left: 4px solid #9c27b0;
12+
padding: 0.5em;
13+
margin: 0.5em 0;
14+
}
15+
</style>
16+
=docs:
17+
Highlights something that's currently in active development.
18+
@@macro=highlight_working_on:item=Frontend Redesign;notes=Component refactor ongoing, ETA 2 weeks.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@new_macro
2+
=name:highlight_success
3+
=template:
4+
<div class="highlight highlight-success">
5+
✅ <strong>{{title}}</strong><br>
6+
{{details}}
7+
</div>
8+
<style>
9+
.highlight-success {
10+
background: #e8f5e9;
11+
border-left: 4px solid #4caf50;
12+
padding: 0.5em;
13+
margin: 0.5em 0;
14+
}
15+
</style>
16+
=docs:
17+
Used to highlight a successful outcome.
18+
@@macro=highlight_success:title=Server Migration Complete;details=All systems running without issues.

macros/progress_bar.pml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@new_macro
2+
=name:progress_bar
3+
=template:
4+
<div class="progress-container">
5+
<div class="progress-label">{{label}} ({{percent}}%)</div>
6+
<div class="progress-bar-outer">
7+
<div class="progress-bar-inner" style="width: {{percent}}%; background-color: {{color}};"></div>
8+
</div>
9+
</div>
10+
<style>
11+
.progress-container {
12+
margin: 1em 0;
13+
font-family: sans-serif;
14+
}
15+
16+
.progress-label {
17+
margin-bottom: 0.25em;
18+
font-weight: bold;
19+
font-size: 0.9em;
20+
}
21+
22+
.progress-bar-outer {
23+
background-color: #333;
24+
border-radius: 5px;
25+
overflow: hidden;
26+
height: 20px;
27+
}
28+
29+
.progress-bar-inner {
30+
height: 100%;
31+
transition: width 0.3s ease;
32+
}
33+
</style>
34+
=docs:
35+
Displays a progress bar with label, color, and percentage fill.
36+
37+
Example usage:
38+
@@macro=progress_bar:label=Milestone 1;percent=72;color=#00cc88

0 commit comments

Comments
 (0)