Skip to content

Add disabled reason to projects#31

Open
MatthewWiddop wants to merge 17 commits into
ducompsoc:mainfrom
MatthewWiddop:disabled-reason
Open

Add disabled reason to projects#31
MatthewWiddop wants to merge 17 commits into
ducompsoc:mainfrom
MatthewWiddop:disabled-reason

Conversation

@MatthewWiddop
Copy link
Copy Markdown

Description

Adds a way of tracking the reason for a project to be hidden.

Updated actions:
image

Prompt for a reason for hiding a project:
image

Display information about the project, including the hidden reasons and current status:
image

I modified /project/hide and split /project/hide-unhide-many into two routes: /project/hide-many and /project/unhide-many. This is because they now perform different actions.

Closes #29

Type of Change

Delete options that do not apply:

  • New feature (non-breaking change which adds functionality)
  • Refactor (code changes that doesn't affect functionality)

Is this a breaking change?

  • Yes
  • No

Comment thread client/src/components/admin/tables/ProjectRow.tsx Outdated
Comment thread server/router/project.go
Comment thread server/router/project.go Outdated
Comment thread server/router/project.go Outdated
Comment thread server/router/project.go Outdated
@MatthewWiddop
Copy link
Copy Markdown
Author

As mentioned before, I've introduced a new UnhidePopup for selecting and removing reasons for projects being hidden. Reasons are sorted by frequency (how many projects have this hidden reason). Note that single projects can be selected as well.

/project/unhide and project/unhide now require a hidden_reason to be specified for removal. For each project in the request, any matching hidden_reason is removed. There isn't much validation for the request, but I can add more if required.

Here's what UnhidePopup looks like (I'm no artist):
image

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.

Implement tracking for 'disabled reasons' for each project

2 participants