Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/search-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ The Search Page has been enhanced with new filtering and sorting capabilities us
- **Visual Indicator**: Button turns blue when active
- **Fallback**: If backend doesn't support native friends filtering, client-side filtering is used

### 🔥 Interactions Sorting
### 🧲 Interactions Sorting
- **Functionality**: Sorts posts by total interactions (comments + votes + quotes)
- **Usage**: Click the 🔥 button to toggle interaction-based sorting
- **Usage**: Click the 🧲 button to toggle interaction-based sorting
- **Visual Indicator**: Button turns blue when active
- **Algorithm**: Posts with more interactions appear first

Expand Down
8 changes: 4 additions & 4 deletions src/views/SearchPage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ export default function SearchPage() {
onClick={handleInteractionsFilter}
title="Sort by most interactions"
>
🔥
🧲
</IconButton>
<IconButton
aria-label="calendar"
Expand Down Expand Up @@ -654,7 +654,7 @@ export default function SearchPage() {
<Typography variant="body2" color="textSecondary">
Active Filters:
{filterMode === 'friends' && ' 👥 Friends only'}
{filterMode === 'interactions' && ' 🔥 Sorted by interactions'}
{filterMode === 'interactions' && ' 🧲 Sorted by interactions'}
{dateRangeFilter.startDate && ` 📅 From ${format(dateRangeFilter.startDate, 'MMM d, yyyy')}`}
{dateRangeFilter.endDate && ` to ${format(dateRangeFilter.endDate, 'MMM d, yyyy')}`}
</Typography>
Expand Down Expand Up @@ -834,7 +834,7 @@ export default function SearchPage() {
onClick={handleInteractionsFilter}
title="Sort by most interactions"
>
🔥
🧲
</IconButton>
<IconButton
aria-label="calendar"
Expand Down Expand Up @@ -904,7 +904,7 @@ export default function SearchPage() {
<Typography variant="body2" color="textSecondary">
Active Filters:
{filterMode === 'friends' && ' 👥 Friends only'}
{filterMode === 'interactions' && ' 🔥 Sorted by interactions'}
{filterMode === 'interactions' && ' 🧲 Sorted by interactions'}
{dateRangeFilter.startDate && ` 📅 From ${format(dateRangeFilter.startDate, 'MMM d, yyyy')}`}
{dateRangeFilter.endDate && ` to ${format(dateRangeFilter.endDate, 'MMM d, yyyy')}`}
</Typography>
Expand Down