Adds a link to the questionnaire front end
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Nova\CategoryResource;
|
use App\Nova\CategoryResource;
|
||||||
use App\Nova\ConfigResource;
|
use App\Nova\ConfigResource;
|
||||||
use App\Nova\Dashboards\Main;
|
|
||||||
use App\Nova\LogResource;
|
use App\Nova\LogResource;
|
||||||
use App\Nova\QuestionGroupResource;
|
use App\Nova\QuestionGroupResource;
|
||||||
use App\Nova\QuestionResource;
|
use App\Nova\QuestionResource;
|
||||||
@@ -30,7 +29,10 @@ public function boot(): void
|
|||||||
|
|
||||||
Nova::mainMenu(function (Request $request) {
|
Nova::mainMenu(function (Request $request) {
|
||||||
return [
|
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', [
|
MenuSection::make('Questionnaire', [
|
||||||
MenuItem::resource(QuestionResource::class),
|
MenuItem::resource(QuestionResource::class),
|
||||||
|
|||||||
33
docs/updates.md
Normal file
33
docs/updates.md
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user