Skip to content

Commit

Permalink
Merge pull request #1370 from guardian/showcase-priority
Browse files Browse the repository at this point in the history
Addition of new showcase Priority to fronts tool
  • Loading branch information
tonytw1 authored Aug 24, 2021
2 parents 121bdfe + 6366995 commit b712530
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ GET /editorial controllers.ViewsController
GET /commercial controllers.ViewsController.collectionEditor(priority="commercial")
GET /training controllers.ViewsController.collectionEditor(priority="training")
GET /email controllers.ViewsController.collectionEditor(priority="email")
GET /showcase controllers.ViewsController.collectionEditor(priority="showcase")

GET /editorial/config controllers.ViewsController.configEditor()
GET /commercial/config controllers.ViewsController.configEditor()
GET /training/config controllers.ViewsController.configEditor()
GET /email/config controllers.ViewsController.configEditor()
GET /showcase/config controllers.ViewsController.configEditor()
GET /edition/config controllers.ViewsController.configEditor()

POST /collection/publish/*collectionId controllers.FaciaToolController.publishCollection(collectionId)
Expand Down
1 change: 1 addition & 0 deletions fronts-client/src/constants/priorities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export const priorities: Priorities = {
commercial: {},
training: {},
email: {},
showcase: {},
};
1 change: 1 addition & 0 deletions fronts-client/src/types/Priority.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ interface Priorities {
commercial: unknown;
training: unknown;
email: unknown;
showcase: unknown;
}

interface EditionPriority {
Expand Down
6 changes: 6 additions & 0 deletions public/src/js/constants/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ export default {
hasGroups: true,
isTypeLocked: true,
isHiddenLocked: true
},
'showcase': {
maxFronts: 50,
hasGroups: false,
isTypeLocked: false,
isHiddenLocked: false
}

},
Expand Down

0 comments on commit b712530

Please sign in to comment.