-
Notifications
You must be signed in to change notification settings - Fork 963
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
Project Settings / Delete Project #2821
Conversation
Awesome, thanks @di! |
Hi @di, I've pushed up some changes in light of the new structure. I've noticed that I'm getting an error on the collaborators page: Could you please take a look. This is almost ready to merge on my side - I just need to look at the mobile UI. |
67d1728
to
6cc02cb
Compare
@nlhkabu Sorry about that, fixed now! |
Thanks @di - I'll fix the rest of the UI tomorrow, so hopefully we can merge :) |
dc68ae2
to
238e1b0
Compare
Ok, rebased with master, so we should be ready to go 😁 One thing I noticed in the templates: <div class="package-snippet__buttons">
<a href="{{ request.route_path('manage.project.releases', project_name=project.normalized_name) }}" class="button button--primary">Edit</a>
<a href="{{ request.route_path('packaging.project', name=project.normalized_name) }}" class="button">View</a>
</div> Is there a good reason why one is |
Sounds fine to me!
Yeah, I changed all of the It's probably worth updating all the |
238e1b0
to
10b97d8
Compare
I made a small tweak here to match the new "Edit Project" button, which is that "Project Settings" is the first item in the menu, and the default when you press the "Edit" button on the list of projects. We should fix #2418 (via #2849) before merging this, so that deleting a project purges the cache. |
Hi @di - I agree that the 'edit' button should go to the same place, but I'm not sure that I agree that the 'settings' page is the best landing page? At the moment the only thing on there is to delete a project, which we want to "hide" as much as possible in the UI. What is the most common action a project owner/maintainer will want to do? Look at / edit their releases, manage their collaborators, or change the settings? Maybe we can get this information from the current site analytics? |
Also clean up some templates
So they can be reused by non-admin views
10b97d8
to
7b264ff
Compare
@nlhkabu Great point. I changed this back to make the "releases" page the default, and we can reevaluate the ordering later if need be. |
Fixes #2805. This moves the releases to their own route, and stubs out an "options" page with a basic form for project deletion.
(cc @nlhkabu)