Skip to content

Add guest apartment suggestions page#404

Merged
sotoJ24 merged 1 commit into
safetrustcr:developfrom
kitWarse:feat/393-guest-suggestions-page
Jul 8, 2026
Merged

Add guest apartment suggestions page#404
sotoJ24 merged 1 commit into
safetrustcr:developfrom
kitWarse:feat/393-guest-suggestions-page

Conversation

@kitWarse

@kitWarse kitWarse commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Scaffold the missing guest suggestions route as the base for the apartment browse/search experience.

Issue

Changes

  • Adds /dashboard/guest/suggestions route scaffold.

Validation

  • Not run yet. Full implementation and validation will follow in this PR.

Notes

  • This is the requested scaffold PR; implementation updates will be pushed to this branch.

Summary by CodeRabbit

  • New Features
    • Added a new “Guest apartment suggestions” page in the dashboard for guests.
    • Included page styling with support for dark mode.

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

A new Next.js page component GuestSuggestionsPage is added at src/app/dashboard/guest/suggestions/page.tsx. It renders a styled main element with a single heading "Guest apartment suggestions" and dark-mode Tailwind classes.

Changes

Guest Suggestions Page

Layer / File(s) Summary
GuestSuggestionsPage component
src/app/dashboard/guest/suggestions/page.tsx
New default-export page component returning a main container with dark-mode Tailwind classes and a single heading.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • sotoJ24

Poem

🐇 A page is born, so fresh and bare,
A heading sits in the morning air.
"Guest apartment suggestions" it cries,
With dark-mode classes reaching the skies.
But cards and filters? Still dreams, little friend —
The rabbit hops on 'til the feature finds its end! 🏡

🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (3 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning It is missing the template's PR Information section and the required before/after testing evidence links. Add the missing PR Information section and both Testing subsections with Loom links, and align the wording to the repository's PR template.
Linked Issues check ⚠️ Warning The PR only adds a page scaffold and misses the required filters, tabs, cards, and behaviors from #393. Implement the full guest browse/search UI from #393, including the sidebar filters, bedroom tabs, apartment cards, badge, and favorite toggle.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed Concise and specific; it accurately describes the new guest suggestions page scaffold.
Out of Scope Changes check ✅ Passed No obvious out-of-scope changes; the change is limited to the requested guest suggestions route scaffold.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kitWarse kitWarse marked this pull request as ready for review June 30, 2026 12:05

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/app/dashboard/guest/suggestions/page.tsx`:
- Around line 1-8: The GuestSuggestionsPage stub only renders a heading, but the
route still needs the full scaffolded browse/search UI to match the contract.
Update GuestSuggestionsPage to include the required “Available for rent in Costa
Rica, San José” header with unit count, plus the stub filter/sidebar area,
bedroom tabs, apartment card grid, and the promoted/favorite card behavior so
the page shape matches the linked issue instead of a placeholder.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6f66ec71-f1e1-4fba-8bd3-d2d1c14245af

📥 Commits

Reviewing files that changed from the base of the PR and between ca92f59 and f96548e.

📒 Files selected for processing (1)
  • src/app/dashboard/guest/suggestions/page.tsx

Comment on lines +1 to +8
export default function GuestSuggestionsPage() {
return (
<main className="min-h-screen bg-white p-6 dark:bg-slate-900">
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">
Guest apartment suggestions
</h1>
</main>
);

@coderabbitai coderabbitai Bot Jun 30, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

This stub does not yet satisfy the route contract from the linked issue.

The route will stop returning 404, but none of the required scaffolded browse/search UI is here yet: no stub filters/sidebar, bedroom tabs, apartment card grid, promoted/favorite card behavior, or the required “Available for rent in Costa Rica, San José” header with unit count. If #393 is meant to be closed by this PR, the page needs those stub sections now rather than a heading-only placeholder.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/app/dashboard/guest/suggestions/page.tsx` around lines 1 - 8, The
GuestSuggestionsPage stub only renders a heading, but the route still needs the
full scaffolded browse/search UI to match the contract. Update
GuestSuggestionsPage to include the required “Available for rent in Costa Rica,
San José” header with unit count, plus the stub filter/sidebar area, bedroom
tabs, apartment card grid, and the promoted/favorite card behavior so the page
shape matches the linked issue instead of a placeholder.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@sotoJ24 It looks like your comment came through empty — could you clarify what you'd like me to address? If you're planning to add the required stub sections (filters/sidebar, bedroom tabs, apartment card grid, promoted/favorite behavior, and the "Available for rent in Costa Rica, San José" header) in a follow-up commit, just let me know and I'll take another look once pushed. If you'd rather scope this PR strictly to the route scaffold and handle the full UI in a separate PR, that's fine too — just confirm so I can adjust expectations accordingly.

@sotoJ24 sotoJ24 self-requested a review July 1, 2026 04:17

@sotoJ24 sotoJ24 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Dear @kitWarse, could you please fix it, everything else, well done, Good job

Comment on lines +1 to +8
export default function GuestSuggestionsPage() {
return (
<main className="min-h-screen bg-white p-6 dark:bg-slate-900">
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">
Guest apartment suggestions
</h1>
</main>
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

.

@sotoJ24

sotoJ24 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Dear @kitWarse, could you please fix it, everything else, well done, Good job

Dear @kitWarse any news?

@sotoJ24 sotoJ24 merged commit d6ca207 into safetrustcr:develop Jul 8, 2026
1 check passed
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.

🏡[Feat] Create apartment browse & search view at /dashboard/guest/suggestions

2 participants