Add dedicated task show page#1681
Conversation
- Implement show and versions actions in TasksController - Add versions member route for Tasks - Create show, title_bar, sidebar_show, and versions views for Tasks - Update task list partials to link to the new show page - Ensure custom fields are displayed in the task sidebar - Correctly handle sidebar layout and avoid nested links in task lists Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
| #---------------------------------------------------------------------------- | ||
| def versions | ||
| @task = Task.tracked_by(current_user).find(params[:id]) | ||
| @versions = @task.versions.order('created_at DESC') |
| TASK_STATUSES.each do |view| | ||
| it "should render the requested task as JSON for #{view} view" do | ||
| allow(Task).to receive_message_chain(:tracked_by, :find).and_return(task = double("Task")) | ||
| allow(task).to receive(:comments).and_return([]) |
| it "should render the requested task as JSON for #{view} view" do | ||
| allow(Task).to receive_message_chain(:tracked_by, :find).and_return(task = double("Task")) | ||
| allow(task).to receive(:comments).and_return([]) | ||
| allow(task).to receive(:emails).and_return([]) |
|
|
||
| it "should render the requested task as xml for #{view} view" do | ||
| allow(Task).to receive_message_chain(:tracked_by, :find).and_return(task = double("Task")) | ||
| allow(task).to receive(:comments).and_return([]) |
| it "should render the requested task as xml for #{view} view" do | ||
| allow(Task).to receive_message_chain(:tracked_by, :find).and_return(task = double("Task")) | ||
| allow(task).to receive(:comments).and_return([]) | ||
| allow(task).to receive(:emails).and_return([]) |
This change introduces a dedicated show page for Tasks, bringing them in line with other entities like Leads and Contacts. The show page includes a title bar with actions, a sidebar for metadata and custom fields, and a main area for comments and version history. Task names in all list views are now clickable and navigate to this new show page.
PR created automatically by Jules for task 220080762878046059 started by @CloCkWeRX