Skip to content

feat: link frontend to backend for guests#220

Draft
zaydaanjahangir wants to merge 1 commit intomainfrom
feat/129-link-geusts-frontend-to-backend
Draft

feat: link frontend to backend for guests#220
zaydaanjahangir wants to merge 1 commit intomainfrom
feat/129-link-geusts-frontend-to-backend

Conversation

@zaydaanjahangir
Copy link
Contributor

@zaydaanjahangir zaydaanjahangir commented Mar 27, 2026

Description

Linking backend guests to frontend web

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (code improvement without changing functionality)
  • Documentation update
  • Configuration/infrastructure change
  • Performance improvement
  • Test coverage improvement

Related Issue(s)

Closes #
Related to #

What Changed?

  • Cleaned up the API contract (backend models + swagger) to align with most recent backend changes

Testing & Validation

How this was tested

Screenshots/Recordings

Unfinished Work & Known Issues

  • None, this PR is complete and production-ready
  • The following items are intentionally deferred:



Notes & Nuances



Pre-Merge Checklist

Code Quality

  • Code follows the project's style guidelines and conventions
  • Self-review completed (I've reviewed my own code for obvious issues)
  • No debugging code, console logs, or commented-out code left behind
  • No merge conflicts with the base branch
  • Meaningful commit messages that explain the "why"

Testing & CI

  • All CI checks are passing
  • All new and existing tests pass locally
  • Test coverage hasn't decreased (or decrease is justified)
  • Linting passes without errors

Documentation

  • Code is self-documenting or includes helpful comments for complex logic
  • API documentation updated (if backend endpoints changed)
  • Type definitions are accurate and up-to-date

Reviewer Notes

  • Areas needing extra attention: ...
  • Questions for reviewers: ...

@codecov
Copy link

codecov bot commented Mar 27, 2026

Codecov Report

❌ Patch coverage is 12.72727% with 48 lines in your changes missing coverage. Please review.
✅ Project coverage is 11.59%. Comparing base (4701446) to head (1af0eb1).

Files with missing lines Patch % Lines
...nts/web/src/components/guests/GuestProfileCard.tsx 5.88% 16 Missing ⚠️
clients/web/src/hooks/use-debounce.ts 0.00% 9 Missing ⚠️
...ts/web/src/components/guests/PreviousStaysCard.tsx 12.50% 7 Missing ⚠️
clients/web/src/utils/dates.ts 0.00% 7 Missing ⚠️
.../web/src/components/guests/GuestQuickListTable.tsx 20.00% 4 Missing ⚠️
backend/internal/repository/guests.go 0.00% 3 Missing ⚠️
...ients/web/src/components/guests/GuestNotesCard.tsx 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #220      +/-   ##
==========================================
+ Coverage   11.23%   11.59%   +0.36%     
==========================================
  Files         103      104       +1     
  Lines        3347     3277      -70     
  Branches       24       24              
==========================================
+ Hits          376      380       +4     
+ Misses       2967     2893      -74     
  Partials        4        4              
Flag Coverage Δ
backend 24.48% <0.00%> (-0.04%) ⬇️
mobile 84.00% <ø> (ø)
web 0.93% <13.46%> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
backend/internal/handler/guests.go 100.00% <ø> (ø)
...eb/src/components/guests/GuestSpecialNeedsCard.tsx 2.77% <100.00%> (ø)
.../components/guests/HousekeepingPreferencesCard.tsx 5.26% <100.00%> (ø)
...ents/web/src/routes/_protected/guests.$guestId.tsx 20.00% <100.00%> (+20.00%) ⬆️
clients/web/src/routes/_protected/guests.index.tsx 20.00% <100.00%> (+20.00%) ⬆️
...ients/web/src/components/guests/GuestNotesCard.tsx 0.00% <0.00%> (ø)
backend/internal/repository/guests.go 0.00% <0.00%> (ø)
.../web/src/components/guests/GuestQuickListTable.tsx 1.42% <20.00%> (+1.42%) ⬆️
...ts/web/src/components/guests/PreviousStaysCard.tsx 4.34% <12.50%> (-0.20%) ⬇️
clients/web/src/utils/dates.ts 0.00% <0.00%> (ø)
... and 2 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant