-
Notifications
You must be signed in to change notification settings - Fork 255
Admin page updates #1977
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
Admin page updates #1977
Conversation
|
Going to work on adding frontend tests soon |
…into vue-admin # Conflicts: # contentcuration/contentcuration/views/admin.py
|
Will open followup PR with tests |
Codecov Report
@@ Coverage Diff @@
## develop #1977 +/- ##
===========================================
+ Coverage 79.11% 79.38% +0.26%
===========================================
Files 277 274 -3
Lines 13539 13134 -405
===========================================
- Hits 10712 10427 -285
+ Misses 2827 2707 -120
Continue to review full report at Codecov.
|
rtibbles
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing blocking here!
| fileSizeInTerabytes: '{n, number, integer} TB', | ||
| }); | ||
|
|
||
| const ONE_B = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was about to comment on the constants.js above:
Maybe we should import these constants into
mixins.js?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! I moved it to constants so that I can use it under other components (in this case UserStorage)
| PRIVACY: 'privacy_policy', | ||
| }; | ||
| export const policyDates = { | ||
| [policies.PRIVACY]: new Date(2018, 4, 25), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have this date stored anywhere else? Is this just based on a git commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've mostly been hardcoding it in to keep track of the dates each new version was published
| <template #header> | ||
| <span class="notranslate">{{ channel.name }}</span> | ||
| </template> | ||
| <template v-if="adminMode" #tabs> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think eventually it might make sense to break out the 'info' tab into a component and just have an admin specific modal that uses the info component and the sharing component - just the 'adminMode' gave me a lilttle pause, as adding additional mode props to components is often a sign we are trying to make one component do too much work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that you mention it, I might be able to just use the Details component for its own modal
Description
Admin channel page:
Admin user page:
Issues fixed
Implementation Notes (optional)
Includes changes from #1962 to avoid merge conflicts if possible
Does this introduce any tech-debt items?
Things to fix in channel CRUD follow up:
Things to fix in user CRUD follow up:
Checklist
docslabel been added if this introduces a change that needs to be updated in the user docs?CHANGELOGlabel been added to this pull request? Items with this label will be added to the CHANGELOG at a later timepages,components, andlayoutsdirectories as described in the docs?