Skip to content

[WIP] PR: Improve UI to make it more user friendly and fix support for remote environments#28

Draft
ccordoba12 wants to merge 42 commits into
spyder-ide:mainfrom
ccordoba12:improve-ui
Draft

[WIP] PR: Improve UI to make it more user friendly and fix support for remote environments#28
ccordoba12 wants to merge 42 commits into
spyder-ide:mainfrom
ccordoba12:improve-ui

Conversation

@ccordoba12

@ccordoba12 ccordoba12 commented Jul 8, 2025

Copy link
Copy Markdown
Member

This is in preparation to make the plugin a SpyderPluginV2 one.
Instead of having a dock widget for the envs manager, we added a menu
entry in `Tools > Environment manager` to show it.
Also, add dialog to show SpyderEnvManagerWidget.
- For now this widget only has the header and a couple of lineedits to
set the package name to install and its version.
- It also sets the right interactions with new_env_widget in
EnvManagerDialog.
Also, make that widget inherit from ElementsTable to implement the new
design to create envs discussed with the UX team.
Also, disable envs table when deleting an env.
It's derived from NewEnvironment.
Only show input fields and message label there
Also, give focus to the field we want users to start with when creating
and importing an env.
@ccordoba12 ccordoba12 added this to the v0.1.0 milestone Jul 8, 2025
@ccordoba12 ccordoba12 self-assigned this Jul 8, 2025
@ccordoba12 ccordoba12 added the enhancement New feature or request label Jul 8, 2025
@ccordoba12 ccordoba12 marked this pull request as draft July 8, 2025 19:14
@ccordoba12 ccordoba12 changed the title [WIP] PR: Improve UI to make it more user friendly and add support for remote environments [WIP] PR: Improve UI to make it more user friendly and fix support for remote environments Jul 9, 2025
 --branch=fixes-for-remote-development --update --force external-deps/envs-manager

subrepo:
  subdir:   "external-deps/envs-manager"
  merged:   "47231b3"
upstream:
  origin:   "https://github.com/ccordoba12/envs-manager.git"
  branch:   "fixes-for-remote-development"
  commit:   "47231b3"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "ea10886"
This name makes more sense according to the way this widget will be
embedded in the Remote connections dialog.
@ccordoba12 ccordoba12 force-pushed the improve-ui branch 2 times, most recently from 4030bd1 to 751c13c Compare July 10, 2025 17:19
@ccordoba12 ccordoba12 force-pushed the improve-ui branch 3 times, most recently from c153890 to 3ef6739 Compare September 14, 2025 17:41
@codecov

codecov Bot commented Sep 14, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.39685% with 93 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.67%. Comparing base (e1d2745) to head (ede5601).

Files with missing lines Patch % Lines
spyder_env_manager/spyder/widgets/manager.py 84.39% 27 Missing ⚠️
...yder_env_manager/spyder/widgets/new_environment.py 85.16% 27 Missing ⚠️
spyder_env_manager/spyder/plugin.py 54.05% 17 Missing ⚠️
...der_env_manager/spyder/widgets/edit_environment.py 95.60% 8 Missing ⚠️
spyder_env_manager/spyder/widgets/dialog.py 96.50% 5 Missing ⚠️
...er_env_manager/spyder/widgets/list_environments.py 94.84% 5 Missing ⚠️
spyder_env_manager/spyder/widgets/container.py 84.61% 2 Missing ⚠️
spyder_env_manager/spyder/workers.py 50.00% 1 Missing ⚠️
spyder_env_manager/tests/test_dialog.py 99.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #28      +/-   ##
==========================================
+ Coverage   74.29%   74.67%   +0.37%     
==========================================
  Files          13       18       +5     
  Lines        1070     1820     +750     
==========================================
+ Hits          795     1359     +564     
- Misses        275      461     +186     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ccordoba12 ccordoba12 force-pushed the improve-ui branch 2 times, most recently from 8cfd77a to fc338f2 Compare October 8, 2025 16:31
subrepo:
  subdir:   "external-deps/envs-manager"
  merged:   "aaacef7"
upstream:
  origin:   "https://github.com/ccordoba12/envs-manager.git"
  branch:   "fixes-for-remote-development"
  commit:   "aaacef7"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "ea10886"
- The format now includes the Python version.
- Use that info to display the Python version for each env in
ListEnvironments.
- Also, send the Python version to the backend when creating and
importing an env to be more explicit about it and to be able to display
it in ListEnvironments when adding the env to it.
- Now we can't send directly to the server the bytes corresponding to
import file because we need to extract the Python version from it first.
- Move the necessary code from the plugin to the manager to simplify the
implementation.
subrepo:
  subdir:   "external-deps/envs-manager"
  merged:   "859a31a"
upstream:
  origin:   "https://github.com/ccordoba12/envs-manager.git"
  branch:   "fixes-for-remote-development"
  commit:   "859a31a"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "ea10886"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant