Skip to content

Download admin GUI - #11

Open
n-peugnet wants to merge 5 commits into
mainfrom
download-admin-gui
Open

Download admin GUI#11
n-peugnet wants to merge 5 commits into
mainfrom
download-admin-gui

Conversation

@n-peugnet

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

Copy link
Copy Markdown
Member
  • 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

codecov Bot commented Jun 13, 2023

Copy link
Copy Markdown

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