Skip to content

Add default message when the list is empty#26

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/fix-25
Draft

Add default message when the list is empty#26
Copilot wants to merge 4 commits into
mainfrom
copilot/fix-25

Conversation

Copilot AI commented Jul 30, 2025

Copy link
Copy Markdown

Previously, when users ran linetasker list with no tasks or with filters that matched no tasks, the application would display an empty table with only headers, which provided a poor user experience.

This PR adds friendly default messages to improve usability:

When no tasks exist:

No tasks found. Create a new task with 'linetasker new "<task_description>"'

When filters match no tasks:

No tasks found matching the specified criteria.

The implementation is minimal and focused, modifying only the list_tasks() method in core.py to check if any tasks were added to the table before rendering. The changes maintain full backward compatibility - all existing functionality works exactly as before when tasks are present.

Before vs After:

The new messages use Rich's color formatting to make them visually distinct and provide helpful guidance to users on how to create their first task.

Documentation: Updated README.md screenshot links to use raw GitHub URLs so images reliably render.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits July 30, 2025 05:11
Co-authored-by: anthonyraf <100955619+anthonyraf@users.noreply.github.com>
- Display friendly message instead of empty table when no tasks exist
- Show specific message when filter matches no tasks
- Includes helpful instruction to create new task
- Maintains existing functionality for non-empty lists

Co-authored-by: anthonyraf <100955619+anthonyraf@users.noreply.github.com>
Copilot AI changed the title [WIP] Add default message when the list is empty Add default message when the list is empty Jul 30, 2025
Copilot AI requested a review from anthonyraf July 30, 2025 05:19
@anthonyraf

Copy link
Copy Markdown
Owner

@codex[agent] the picture isn't showing, fix that

@Codex

Codex AI commented Mar 24, 2026

Copy link
Copy Markdown

@codex[agent] the picture isn't showing, fix that

Updated the README image links to use raw GitHub URLs so the screenshots render reliably (59cf6be).

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.

3 participants