Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activity Viewer #1592

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

armartinez
Copy link
Contributor

Description

Warning

Draft for now, there are still some mayor decisions that have to made about how tasks are going to be handled.

Displays the Activity Viewer component at the top of the editor based on the latest design by @austincondiff. It contains a basic proposal for how to handle the CodeEdit tasks with a TaskManager class that will handle the execution and the selection of the active task, and a CETask model that will represent a specific task. When executing a task, another model called CETaskRun handles the state of the current run. For now there's only one TestTask that idles for a few seconds and then finishes. Also, the status of the tasks in the dropdown just display the same result since there's no persistence implemented yet.

I had to create a custom DropdownMenu view since the SwiftUI Menu was too limited for the proposed look. The dropdown menu is currently displayed as a popover, similar to how Xcode shows the schemes and devices to save time but it can be easily adjustable.

Related Issues

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

Screenshot 2024-02-16 at 15 19 11 Screenshot 2024-02-16 at 15 19 48 Screenshot 2024-02-16 at 15 19 28

armartinez and others added 3 commits February 16, 2024 14:58
- Added ActivityViewer view and custom DropdownMenu to show the tasks and their status
- Added a proposed model to represent tasks to be executed and a manager
- Updated how the the inspector sideview is handled.
@armartinez armartinez mentioned this pull request Apr 13, 2024
6 tasks
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.

None yet

1 participant