Skip to content
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

Download admin GUI #11

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Download admin GUI #11

wants to merge 5 commits into from

Conversation

n-peugnet
Copy link
Member

@n-peugnet n-peugnet commented Jun 13, 2023

  • Use more precise exceptions in DownloadCommand
  • Add GUI to download themes in the admin dashboard
  • Use locales & translator for download UI

Peek 2023-06-14 12-17

Closes #7

This will allow to display descriptive error messages in the admin GUI
- add script in assets/Makefile to generate a js file that contains the
  list of downloadable themes.
- generate a version of this list with release 11-stable of highlightjs.
- add UI in admin that uses this list to display a select wth a download
  button.
- add a controller that calls the `highlight:download` console command.
- add an exception handler that puts the message in the error details.
- add tests for all the new classes.
@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (22f97d9) 100.00% compared to head (c92a851) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #11   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7        12    +5     
  Lines          123       165   +42     
=========================================
+ Hits           123       165   +42     
Impacted Files Coverage Δ
src/Frontend/Forum.php 100.00% <ø> (ø)
src/Console/DownloadCommand.php 100.00% <100.00%> (ø)
src/Controller/DownloadController.php 100.00% <100.00%> (ø)
src/Exception/IOException.php 100.00% <100.00%> (ø)
src/Exception/InvalidArgumentException.php 100.00% <100.00%> (ø)
src/Exception/KnownExceptionHandler.php 100.00% <100.00%> (ø)
src/Frontend/Admin.php 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

Add a GUI for highlight:download command in the admin dashboard
1 participant