Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

[WIP] Improve package management experience - #277

Merged
thedaniel merged 217 commits into
masterfrom
dh-package-listing
Dec 22, 2014
Merged

thedaniel merged 217 commits into
masterfrom
dh-package-listing

Conversation

@thedaniel

Copy link
Copy Markdown
Contributor
  • Ensure network access not needed in specs
  • test with a few themes
  • check on linux
  • test with an empty cache and no network access
  • command panel commands
  • update specs
  • check on windows
  • remove TODO items from code
  • invalidate duplicate cache items (but always keep one around even if expired for unreachable network situations)
  • cache featured packages/themes
  • list installed packages with apm when this lands: WIP: add --json flag to apm ls apm#216
  • add featured themes to install pane
  • Themes can't be disabled, don't show those buttons in AVP
  • Core themes do not appear
  • Needs better in-progress/downloading state after a package is installed
  • After installing a package, not all the buttons are revealed.
  • Investigate package discovery & installation
  • Handle themes as well
  • Fetch & cache data from atom.io
  • style polish
  • Core package avatars not fetched (repo field issue perhaps)

Nice to haves / can get in separate PRs

  • install pane responsive improvements / cc @simurai
  • Available update count shown in Updates left panel menu item
  • AtomIoClient singleton to prevent cache madness

This branch is an exploration of one way to make some things better about the package management experience. It's very hacky/WIP, and was an excuse to get back into package development so don't look here for top end code examples... yet.

Here are some frustrations I have with settings-view:

  • Packages are listed in a small part of the sidebar, and it's hard to scan through them
  • User installed packages, core packages and dev packages are all listed together
  • All interesting package actions (uninstall, enable/disable, informational tasks) are only available from the full settings pane
  • Interesting metadata that can help a user assess a package's quality and maturity is not always easily available

Here are some ways this branch addresses (or will address) these issues:

  • give the concept of managing packages & themes its own set of panes, and keep it separate from new package discovery, search, and installation
  • Show packages in lists with action buttons and metadata similar to the package cards at https://atom.io/packages/list
  • group packages by installed, core, dev and provide counts when filtering
  • provide an api and avatar cache so that we can show metadata from the API without ruining the offline experience

settings-view-480

The current state of this branch is rough (and depends on an unfinished PR in apm)- I chose to sketch in code rather than approach the UX more formally. I think that whether this code gets merged or not the process & discussion could help us get the settings view right.

Along those lines I want to hear what folks think about this - of course anyone watching this repo, but let me specifically call out @simurai and @atom/core for comments on the direction.

@simurai

simurai commented Nov 22, 2014

Copy link
Copy Markdown
Contributor

I couldn't get it to work, but from looking at the gif, I like the grouping into different lists and that you see all the infos without going to a detail view. 👍

Something I'm wondering.. does it make sense to have a 4th group at the bottom where all the disabled packages would go? I keep installing lots of packages, but disable them if not really needed. Or if I plan to test them later more. Moving them into an own group would keep the other groups more compact/clean. Or maybe keep them but have a stronger clue that they are disabled.. like making them semi transparent or so. And/or move them to the bottom of each group?

Where would the settings of each package be shown? Switch to a detail view (like it currently does) or maybe the list item extends? I think @nathansobo had the idea of moving the settings of packages under the "Settings" menu item. So first you would see all the core settings and then after the settings for each installed package. In other words: When you want to change the settings of a package, where do you expect to find it? Together with the core settings or part of the package?

@thedaniel

Copy link
Copy Markdown
Contributor Author

Something I'm wondering.. does it make sense to have a 4th group at the bottom where all the disabled packages would go?

I was thinking of a color change (like a diagonal striped background, strong colored border, banner across the top right corner of the card etc), but the organization concern hadn't occurred to me. I think that I like the idea of sorting them to the bottom of each group the best, combined with transparency / color / UI element. I could be persuaded on a 4th section, but disabled packages in that section will also all belong to another section at the same time which I think is a little confusing.

@thedaniel

Copy link
Copy Markdown
Contributor Author

the idea of moving the settings of packages under the "Settings" menu item

On one hand, I'm not super into this as I think it would make the Settings pane more complex & difficult to browse settings.. on the other hand, because we've split so much functionality out into packages, I can see how users would get lost trying to figure out how to configure things.

I'm not sure about the practicality of fitting package settings into an expanded list item, but the spirit of the idea is exciting to me. I think that letting users keep their browsing / filtering context while editing settings is useful. Different solutions there could be expanded list item, detail view with breadcrumbs / back button, or a modal.

I couldn't get it to work

I probably checked in a hardcoded reference to the forked apm executable in my home directory.. sorry about that.

@thedaniel

Copy link
Copy Markdown
Contributor Author

There's one deprecation left - removing the use of https://github.com/atom/settings-view/blob/dh-package-listing/lib/package-snippets-view.coffee#L32

The deprecation suggests I use public methods available on Config, but I haven't quite worked out how to use atom.config to load snippets from a package. I can of course just pull the snippets out of the package directly but the deprecation message seems to indicate I shouldn't. /cc @maxbrunsfeld

@maxbrunsfeld

Copy link
Copy Markdown
Contributor

@thedaniel - yeah the snippets package is having to use private APIs on Config right now. It should be possible to change that once atom/atom#4631 is re-merged.

Because some themes don't support colored buttons.
@simurai

simurai commented Dec 18, 2014

Copy link
Copy Markdown
Contributor

Tested with the most popular themes.. they're mostly ok. Maybe Seti needs some fixing:

screen shot 2014-12-18 at 9 53 31 am

I'll send a PR.

@thedaniel

Copy link
Copy Markdown
Contributor Author

@maxbrunsfeld when you say 'possible to change that' do you mean the deprecation in this package, or do you mean that atom/snippets needs to be updated to store snippets with a new API before this package can fetch them?

@kevinsawicki

Copy link
Copy Markdown
Contributor

store snippets with a new API before this package can fetch them?

The snippets package is definitely going to have to change to for the snippet:loaded event to not trigger a deprecation warning when listened for by this package.

@benogle benogle mentioned this pull request Dec 18, 2014
18 of 25 tasks
.. by swapping a deprecated private method for an undeprecated private
method :trollface:
@thedaniel

Copy link
Copy Markdown
Contributor Author

The snippets:loaded deprecation is the last one here.

@thedaniel

Copy link
Copy Markdown
Contributor Author

After chatting with @benogle a bit we're just going to leave this deprecation in. We don't have any good public APIs for it, ServiceHub is experimental, and we can patch it up later.

@thedaniel

Copy link
Copy Markdown
Contributor Author

This is now pretty much ready to merge, I might add a few more specs but otherwise 🚢⌚ - note the next release of Atom won't be until January (unless some terrible bug is discovered) so this won't be available to normal users until then.

…listing

Conflicts:
	stylesheets/settings-view.less
thedaniel added a commit that referenced this pull request Dec 22, 2014
Improve package management experience
@thedaniel
thedaniel merged commit 26f8e93 into master Dec 22, 2014
@kevinsawicki
kevinsawicki deleted the dh-package-listing branch December 24, 2014 17:54
@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 879fcf0 on dh-package-listing into * on master*.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants