Skip to content

Commit a213b8c

Browse files
committed
Fixed prettier complaints
Signed-off-by: George Araújo <george.gcac@gmail.com>
1 parent 072682b commit a213b8c

4 files changed

Lines changed: 5 additions & 17 deletions

File tree

.github/agents/code-quality.agent.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ You are an expert code quality reviewer for this project.
1515
## Project knowledge
1616

1717
- **Tech Stack:**
18-
1918
- Jekyll 4.x with Liquid templating
2019
- Vanilla JavaScript (ES6+) - no frameworks
2120
- Bootstrap 5.3.3 + MDB UI Kit 8.0.0
@@ -195,11 +194,11 @@ self.addEventListener("activate", (event) => {
195194
cacheNames
196195
.filter(
197196
(name) =>
198-
name.startsWith("expiring-products-") && name !== CACHE_NAME
197+
name.startsWith("expiring-products-") && name !== CACHE_NAME,
199198
)
200-
.map((name) => caches.delete(name))
199+
.map((name) => caches.delete(name)),
201200
);
202-
})
201+
}),
203202
);
204203
});
205204

@@ -241,15 +240,15 @@ self.addEventListener("fetch", (event) => {
241240
if (request.mode === "navigate") {
242241
return caches.match("/offline.html");
243242
}
244-
})
243+
}),
245244
);
246245
});
247246

248247
// ❌ Bad - logs everything, no error handling, caches everything
249248
self.addEventListener("fetch", (e) => {
250249
console.log(e.request.url);
251250
e.respondWith(
252-
caches.match(e.request).then((response) => response || fetch(e.request))
251+
caches.match(e.request).then((response) => response || fetch(e.request)),
253252
);
254253
});
255254
```
@@ -432,15 +431,13 @@ When reviewing code, evaluate:
432431
## Boundaries
433432

434433
-**Always do:**
435-
436434
- Explain **why** current code violates best practices
437435
- Provide specific before/after code examples
438436
- Reference MDN, web.dev, or official docs when applicable
439437
- Consider performance implications of recommendations
440438
- Highlight security vulnerabilities immediately
441439

442440
- ⚠️ **Ask first:**
443-
444441
- Suggesting architectural changes (e.g., introducing a framework)
445442
- Recommending new dependencies beyond the current stack
446443
- Proposing breaking changes to the database schema

.github/agents/docs.agent.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ You are an expert technical writer for the Expiring Products project.
1515
## Project knowledge
1616

1717
- **Tech Stack:**
18-
1918
- Jekyll static site generator with Liquid templating
2019
- Jekyll Polyglot (multilingual support: pt-br, en-us)
2120
- Vanilla JavaScript (embedded in Liquid files)
@@ -114,7 +113,6 @@ function doSort(a, b, x) {
114113
## Boundaries
115114

116115
-**Always do:**
117-
118116
- Update `README.md` and root-level Markdown files
119117
- Include screenshots from `readme_img/` when documenting UI features
120118
- Run `npx markdownlint *.md` after making changes
@@ -123,7 +121,6 @@ function doSort(a, b, x) {
123121
- Explain technical features in user-friendly language
124122

125123
- ⚠️ **Ask first:**
126-
127124
- Before adding new Markdown files (structure should be simple)
128125
- Before documenting unreleased features or major architectural changes
129126
- Before modifying documentation structure significantly

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,24 @@ Your data is automatically saved in your browser and persists across sessions.
2929
### Core Functionality
3030

3131
- **Product Management**
32-
3332
- Add items with name, quantity, and expiration date
3433
- Separate tabs for Foods and Medicines
3534
- Auto-complete from product history with saved duration values
3635
- Mark items as opened, consumed, or discarded
3736

3837
- **Smart Expiration Tracking**
39-
4038
- Items sorted by expiration date (closest first), then by quantity
4139
- Visual warnings: Red for expired items, yellow for items expiring within 3 days
4240
- Automatic expiration date update when items are opened (based on "duration after opened")
4341
- Daily automatic checks for expired items
4442

4543
- **Data Management**
46-
4744
- Export entire database as JSON file
4845
- Import previously exported data
4946
- Local storage using IndexedDB (no server required)
5047
- Product history tracking for quick re-entry
5148

5249
- **Progressive Web App**
53-
5450
- Install on desktop and mobile devices
5551
- Works completely offline
5652
- Responsive Bootstrap 5 + MDB UI Kit design

USER_GUIDE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ The interface has three main tabs:
3737
1. Click the **"+" button** (floating action button in bottom-right)
3838
2. Select the appropriate tab (Foods or Medicines) before clicking "+"
3939
3. Fill in the item details:
40-
4140
- **Name**: Product name (e.g., "Milk", "Aspirin")
4241
- **Quantity**: How many units you have
4342
- **Expire in**: When the product expires
@@ -117,7 +116,6 @@ Each item displays:
117116

118117
1. Click on any item in the list
119118
2. An edit dialog appears with three options:
120-
121119
- **Opened items**: Mark some units as opened
122120
- **Consumed items**: Mark some units as consumed/used
123121
- **Discarded items**: Mark some units as thrown away

0 commit comments

Comments
 (0)