Rename 'Events' to 'Tasks' in NostrFeed to avoid confusion with Events module
Changed terminology in the scheduled events section of NostrFeed to use "Tasks" instead of "Events" to prevent confusion with the Events module (which handles event ticketing). **Changes:** - "Today's Events" → "Today's Tasks" - "Yesterday's Events" → "Yesterday's Tasks" - "Tomorrow's Events" → "Tomorrow's Tasks" - "Events for Mon, Jan 15" → "Tasks for Mon, Jan 15" - Updated comments: "Scheduled Events" → "Scheduled Tasks" **Rationale:** - **NostrFeed scheduled items** = Daily tasks and announcements (NIP-52 calendar events) - **Events module** = Event ticketing system (concerts, conferences, etc.) - Using "Tasks" makes it clear these are to-do items, not ticketed events Empty state message already correctly used "tasks" terminology and remains unchanged. 🐢 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
91aecd2192
commit
2e6f215157
1 changed files with 9 additions and 9 deletions
|
|
@ -101,10 +101,10 @@ const { getEventReactions, subscribeToReactions, toggleLike } = useReactions()
|
|||
// Use scheduled events service
|
||||
const { getEventsForSpecificDate, getCompletion, toggleComplete, allCompletions } = useScheduledEvents()
|
||||
|
||||
// Selected date for viewing events (defaults to today)
|
||||
// Selected date for viewing scheduled tasks (defaults to today)
|
||||
const selectedDate = ref(new Date().toISOString().split('T')[0])
|
||||
|
||||
// Get scheduled events for the selected date (reactive)
|
||||
// Get scheduled tasks for the selected date (reactive)
|
||||
const scheduledEventsForDate = computed(() => getEventsForSpecificDate(selectedDate.value))
|
||||
|
||||
// Navigate to previous day
|
||||
|
|
@ -143,20 +143,20 @@ const dateDisplayText = computed(() => {
|
|||
const tomorrowStr = tomorrow.toISOString().split('T')[0]
|
||||
|
||||
if (selectedDate.value === today) {
|
||||
return "Today's Events"
|
||||
return "Today's Tasks"
|
||||
} else if (selectedDate.value === yesterdayStr) {
|
||||
return "Yesterday's Events"
|
||||
return "Yesterday's Tasks"
|
||||
} else if (selectedDate.value === tomorrowStr) {
|
||||
return "Tomorrow's Events"
|
||||
return "Tomorrow's Tasks"
|
||||
} else {
|
||||
// Format as "Events for Mon, Jan 15"
|
||||
// Format as "Tasks for Mon, Jan 15"
|
||||
const date = new Date(selectedDate.value + 'T00:00:00')
|
||||
const formatted = date.toLocaleDateString('en-US', {
|
||||
weekday: 'short',
|
||||
month: 'short',
|
||||
day: 'numeric'
|
||||
})
|
||||
return `Events for ${formatted}`
|
||||
return `Tasks for ${formatted}`
|
||||
}
|
||||
})
|
||||
|
||||
|
|
@ -466,7 +466,7 @@ function cancelDelete() {
|
|||
|
||||
<!-- Posts List - Natural flow without internal scrolling -->
|
||||
<div v-else>
|
||||
<!-- Scheduled Events Section with Date Navigation -->
|
||||
<!-- Scheduled Tasks Section with Date Navigation -->
|
||||
<div class="my-2 md:my-4">
|
||||
<div class="flex items-center justify-between px-4 md:px-0 mb-3">
|
||||
<!-- Left Arrow -->
|
||||
|
|
@ -506,7 +506,7 @@ function cancelDelete() {
|
|||
</Button>
|
||||
</div>
|
||||
|
||||
<!-- Events List or Empty State -->
|
||||
<!-- Scheduled Tasks List or Empty State -->
|
||||
<div v-if="scheduledEventsForDate.length > 0" class="md:space-y-3">
|
||||
<ScheduledEventCard
|
||||
v-for="event in scheduledEventsForDate"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue