From 20f66dddaa134f08e7c88487fe0afa005373373d Mon Sep 17 00:00:00 2001 From: Jonathan van Rij Date: Wed, 18 Mar 2026 11:48:33 +0100 Subject: [PATCH] Adds a link to the questionnaire front end --- app/Providers/NovaServiceProvider.php | 6 +++-- docs/updates.md | 33 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 docs/updates.md diff --git a/app/Providers/NovaServiceProvider.php b/app/Providers/NovaServiceProvider.php index d374bf9..d973012 100644 --- a/app/Providers/NovaServiceProvider.php +++ b/app/Providers/NovaServiceProvider.php @@ -5,7 +5,6 @@ use App\Models\User; use App\Nova\CategoryResource; use App\Nova\ConfigResource; -use App\Nova\Dashboards\Main; use App\Nova\LogResource; use App\Nova\QuestionGroupResource; use App\Nova\QuestionResource; @@ -30,7 +29,10 @@ public function boot(): void Nova::mainMenu(function (Request $request) { return [ - MenuSection::dashboard(Main::class)->icon('home'), + MenuSection::make('Main', [ + MenuItem::link('Dashboard', '/cp/dashboards/main'), + MenuItem::externalLink('To questionnaire ↗', '/'), + ])->icon('home'), MenuSection::make('Questionnaire', [ MenuItem::resource(QuestionResource::class), diff --git a/docs/updates.md b/docs/updates.md new file mode 100644 index 0000000..5dc2af1 --- /dev/null +++ b/docs/updates.md @@ -0,0 +1,33 @@ +# Updates — March 16, 2026 + +## New Features + +### Disclaimer Page +A new disclaimer page has been added to the application. When a disclaimer text is configured, users must read and accept it before they can start a screening. The disclaimer page renders formatted content (including headings, lists, links, and tables) and is accessible via a link on the landing page. + +- A checkbox appears on the landing page requiring users to agree to the disclaimer before continuing +- The disclaimer content can be managed by administrators through the admin panel + +### Admin Settings Panel +A new **Settings** section has been added to the admin panel. This provides a central place for administrators to manage application-wide content, starting with the disclaimer text. Settings are stored in the database and take effect immediately — no deployments or restarts needed. + +### "I Don't Know" Answer Option +The pre-screening questionnaire now includes a third answer option: **"I don't know"**, in addition to "Yes" and "No". This gives users a more honest way to respond when they are uncertain, and is scored at half a point. + +### Session Duration Tracking +The session result page now shows how long it took to complete a questionnaire. The duration is displayed in a human-readable format (e.g. "4m 32s" or "1h 15m"). + +## Improvements + +### Navigation +- A **Back button** has been added to every page in the application, making it easy to navigate to the previous step at any time +- A **sticky Back button** appears in the top-right corner when you scroll down on longer pages, so you never have to scroll back up to navigate away +- Visiting a page that doesn't exist now redirects you back to the landing page instead of showing an error + +### Disclaimer Link Behavior +The disclaimer link on the landing page now opens in the same tab for a smoother experience. + +### Visual Polish +- Removed heavy background panels from question cards and session details for a cleaner, lighter look +- Improved the layout of session details on the result page (category, completion date, and duration are now evenly spaced) +- Auto-save actions (answers and comments) no longer show a loading indicator, reducing visual noise while filling in questionnaires