stack/apps/backend/src/app
Madison cd5ad6839a
[Backend][Internal] - Hides featurebase posts with merged/completed status (#884)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

Hides featurebase posts in feedback board that are marked as merged into
another post, or status completed.
<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Filters out merged/completed feature requests in `GET` handler of
`route.tsx`, processing upvote status only for active requests.
> 
>   - **Behavior**:
> - Filters out feature requests marked as merged or completed in `GET`
handler in `route.tsx`.
> - Processes upvote status only for active feature requests, preventing
misleading indicators.
>   - **Error Handling**:
> - Improved handling of missing status data to prevent display
inconsistencies.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for f6a4256d99. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>

----


<!-- ELLIPSIS_HIDDEN -->

<!-- RECURSEML_SUMMARY:START -->
## Review by RecurseML

_🔍 Review performed on
[9318e2b..0c077ce](9318e2b6ce...0c077cec51)_

 No bugs found, your code is sparkling clean

<details>
<summary> Files analyzed, no issues (1)</summary>

• `apps/backend/src/app/api/latest/internal/feature-requests/route.tsx`
</details>

[![Need help? Join our
Discord](https://img.shields.io/badge/Need%20help%3F%20Join%20our%20Discord-5865F2?style=plastic&logo=discord&logoColor=white)](https://discord.gg/n3SsVDAW6U)
<!-- RECURSEML_SUMMARY:END -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Only active feature requests are returned; items that were completed
or merged are now excluded from the listing.
* Upvote status is computed only for active requests, preventing upvote
indicators on completed or merged items.
* Improved handling of missing status information so listings and upvote
displays remain consistent and avoid errors.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-09-14 14:16:26 -05:00
..
api [Backend][Internal] - Hides featurebase posts with merged/completed status (#884) 2025-09-14 14:16:26 -05:00
health Source of Truth (#660) 2025-07-11 17:59:03 -07:00
global-error.tsx Support create-next-app@15 with the setup wizard (#340) 2024-11-13 13:58:42 +01:00
layout.tsx Suppress hydration warnings on html and body of backend 2024-11-23 03:31:23 +01:00
not-found.tsx Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
page.tsx Fix indentation 2024-12-29 11:34:14 -08:00