Skip to content

chore: remove Weather and Counter template leftovers#6

Merged
mpaulosky merged 4 commits into
mainfrom
squad/remove-weather-counter
Apr 18, 2026
Merged

chore: remove Weather and Counter template leftovers#6
mpaulosky merged 4 commits into
mainfrom
squad/remove-weather-counter

Conversation

@mpaulosky

Copy link
Copy Markdown
Owner

Removes the Blazor default template pages (Weather, Counter) and their related tests that are not relevant to the MyBlog application.

Changes

  • Deleted Weather and Counter Blazor pages/components from Web project
  • Removed NavMenu links to Weather and Counter (if any)
  • Removed all related test code (2 test methods from RazorSmokeTests.cs)
  • All remaining tests pass

Test results

✅ All existing tests passing after cleanup:

  • Architecture.Tests: 6 tests passed
  • Unit.Tests: 59 tests passed (2 Weather/Counter tests removed)
  • Integration.Tests: 9 tests passed
  • Code coverage: 91.64% line coverage maintained

Requested by mpaulosky.

mpaulosky and others added 2 commits April 18, 2026 12:06
- Moved all decision files from .squad/decisions/inbox/ into decisions.md
- Removed empty inbox directory
- Added CI workflow session documentation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Deleted Weather and Counter Blazor pages/components (Blazor template leftovers)
- Removed obsolete unit tests for Weather and Counter components
- All builds verified (Web project and Unit.Tests project)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 18, 2026 19:08
- Added learnings from Weather/Counter cleanup to history.md
- Created decision record in inbox

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes leftover Blazor template artifacts (Weather/Counter pages and their smoke tests) from the MyBlog app, but also includes a large unrelated documentation merge into squad decisions.

Changes:

  • Deleted the default template pages Counter.razor and Weather.razor.
  • Removed the corresponding bUnit smoke tests from RazorSmokeTests.cs.
  • Updated committed Tailwind output CSS (likely due to content-scan changes after page deletions).
  • Appended a large “Merged from Inbox” block into .squad/decisions/decisions.md and added a related entry to Legolas agent history.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/Unit.Tests/Components/RazorSmokeTests.cs Removes obsolete Counter/Weather smoke tests.
src/Web/wwwroot/css/tailwind.css Regenerated compiled Tailwind CSS output after template page removal.
src/Web/Components/Pages/Weather.razor Deleted template Weather page.
src/Web/Components/Pages/Counter.razor Deleted template Counter page.
.squad/decisions/decisions.md Adds a large merged decision log block (appears unrelated to Weather/Counter removal).
.squad/agents/legolas/history.md Documents the template cleanup in agent history.

Comment on lines +269 to +276
---
## Additional Decisions (Merged from Inbox)


### 2025-01-23T18:30:00Z: Optimistic Concurrency — Domain Layer
**By:** Aragorn
**What:** Added Version field to BlogPost entity (private setter, incremented in Update()). Configured IsConcurrencyToken() in BlogDbContext.OnModelCreating for MongoDB EF Core optimistic concurrency.
**Why:** Training project demonstrating the pattern. ResultErrorCode.Concurrency was pre-existing but unused.

Copilot AI Apr 18, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is described as removing the template Weather/Counter pages, but this diff also appends a very large block of unrelated decision log content ("Additional Decisions (Merged from Inbox)", Tailwind review, CI/CD notes, Auth0 notes, etc.). Please split these documentation/decision merges into a separate PR (or drop them from this PR) so the change set matches the stated scope and remains reviewable.

Copilot uses AI. Check for mistakes.
@mpaulosky
mpaulosky merged commit ef3449c into main Apr 18, 2026
@mpaulosky
mpaulosky deleted the squad/remove-weather-counter branch April 18, 2026 19:15
mpaulosky added a commit that referenced this pull request Apr 18, 2026
- Merge decision inbox file into .squad/decisions.md with:
  - CI workflow security review (PR #5)
  - Template cleanup security review (PR #6)
  - Copyright header decision (PR #7)
- Delete gandalf-pr5-pr6-merged.md from decisions/inbox/
- Add orchestration log with full PR merge details
- Add session log summarizing board clear status

PRs #5 (CI workflow), #6 (template cleanup), #7 (copyright headers)
all merged to main by Gandalf. All 74 tests passing, 91.64% coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
mpaulosky added a commit that referenced this pull request Apr 19, 2026
- routing.md: Add Guardrails #9 (Gimli parallel), #10 (no-verify prohibition),
  #11 (rubber duck for new patterns); strengthen Rule #6 to name Gimli+Frodo+Pippin
- ceremonies.md: Add Feature Work Kickoff ceremony; harden Retrospective with
  coverage-gate trigger and closure requirement
- pre-push-process.md: Add hard block on git push --no-verify at top of file
  with SDK mismatch fix instructions
- pr-merge-process.md: Step 3 now explicitly checks coverage gate (not just
  tests passing); adds 'Tests authored' gate for Gimli coverage
- gimli/charter.md: Fix Critical Rule #1 paths from IssueTracker to MyBlog
  (tests/Unit.Tests, tests/Architecture.Tests); add coverage gate (89%);
  add Rule #9 enforcing parallel spawn

Closes #68 (retrospective action items)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
mpaulosky added a commit that referenced this pull request Apr 26, 2026
## Summary

Migrates Architecture.Tests test methods to xUnit v3 API conventions,
following the Sprint 7 Domain.Tests pilot pattern.

Closes #178

**Working as Gimli (Tester)**

---

## What Changed

All 4 test files updated with proper xUnit v3 migration conventions:

| File | Tests | Change |
|------|-------|--------|
| `DomainLayerTests.cs` | 4 | AAA comments + extract `assembly` variable
for clean Arrange/Act split |
| `VsaLayerTests.cs` | 3 | AAA comments + extract `domainAssembly`
variable |
| `ThemeLayerTests.cs` | 2 | AAA comments |
| `CachingLayerTests.cs` | 2 | AAA comments |

**Total: 11 tests migrated**

## xUnit v3 API Observations

- `[Fact]` attribute is **identical** in xUnit v2 and v3 — no attribute
changes required
- No async/await patterns in architecture tests — no lifecycle changes
needed
- No `IClassFixture` / `ICollectionFixture` — stateless tests, no
collection changes needed
- FluentAssertions `.Should()` works unchanged with xUnit v3
- Parallelization via `xunit.runner.json` was already configured in Wave
1 (#182)

## Pattern Reference (Sprint 7 Domain.Tests Pilot)

Followed the same approach as the Sprint 7 Domain.Tests migration:
- xUnit v3 meta-package via `<PackageReference Include="xunit.v3"/>` ✅
(Wave 1)
- `xunit.runner.json` with `parallelizeAssembly: true` ✅ (Wave 1)
- Gimli Rule #3: AAA comments on all test methods ✅ (this PR)
- Gimli Rule #6: File headers present on all files ✅ (pre-existing)

## Test Results

```
Passed! - Failed: 0, Passed: 11, Skipped: 0, Total: 11 — Architecture.Tests.dll
Passed! - Failed: 0, Passed: 42, Skipped: 0, Total: 42 — Domain.Tests.dll
```

Zero failures. Ready to merge to `sprint/8-xunit-v3-pilot`.

Co-authored-by: Boromir <boromir@squad.dev>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants