Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
release:
uses: saucebase-dev/saucebase/.github/workflows/semantic-release.yml@main
with:
version_file: 'module.json'
version_file: 'composer.json'
version_file_path: '.version'
prerelease: false
secrets:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
test:
uses: saucebase-dev/saucebase/.github/workflows/test-module.yml@main
with:
module: Roadmap
module: roadmap
dependencies: saucebase/auth
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Saucebase
Copyright (c) 2026 Saucebase

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 8 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ tasks:

test:e2e:
desc: Run E2E tests for Roadmap module
cmd: npx playwright test --project="@Roadmap*" {{.CLI_ARGS}}
cmd: npx playwright test --project="@roadmap*" {{.CLI_ARGS}}
interactive: true

# ── Database ──────────────────────────────────────────────────

db:seed:
desc: Seed the Roadmap module database
cmd: php artisan modules:seed --module=roadmap

# ── Code Generation ────────────────────────────────────────────

types:generate:
desc: Generate TypeScript types from PHP DTOs and enums
cmd: php artisan module:generate-types Roadmap
cmd: php artisan module:generate-types roadmap
16 changes: 0 additions & 16 deletions app/Providers/RoadmapServiceProvider.php

This file was deleted.

15 changes: 0 additions & 15 deletions app/Providers/RouteServiceProvider.php

This file was deleted.

16 changes: 11 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "saucebase/roadmap",
"description": "",
"description": "Roadmap module",
"type": "saucebase-module",
"license": "proprietary",
"version": "0.3.4",
Comment on lines 4 to +6
"authors": [
{
"name": "Saucebase",
Expand All @@ -10,20 +12,24 @@
],
"extra": {
"laravel": {
"providers": [],
"providers": [
"Modules\\Roadmap\\Providers\\RoadmapServiceProvider"
],
"aliases": {}
}
},
"autoload": {
"psr-4": {
"Modules\\Roadmap\\": "app/",
"Modules\\Roadmap\\": "src/",
"Modules\\Roadmap\\Database\\Factories\\": "database/factories/",
"Modules\\Roadmap\\Database\\Seeders\\": "database/seeders/"
"Modules\\Roadmap\\Database\\Seeders\\": "database/seeders/",
"Modules\\Roadmap\\Tests\\Support\\": "tests/Support/"
}
},
"autoload-dev": {
"psr-4": {
"Modules\\Roadmap\\Tests\\": "tests/"
}
}
},
"minimum-stability": "stable"
}
13 changes: 13 additions & 0 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Modules\Roadmap\Database\Seeders;

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
public function run(): void
{
$this->call(RoadmapDatabaseSeeder::class);
}
}
15 changes: 0 additions & 15 deletions module.json

This file was deleted.

23 changes: 1 addition & 22 deletions resources/js/app.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
import { registerIcon } from '@/lib/navigation';
import IconMap from '~icons/heroicons/map';

import '../css/style.css';

/**
* Roadmap module setup
* Called during app initialization before mounting
*/
export function setup() {
console.debug('Roadmap module loaded');

registerIcon('roadmap', IconMap);
}

/**
* Roadmap module after mount logic
* Called after the app has been mounted
*/
export function afterMount() {
console.debug('Roadmap module after mount logic executed');
}
export * from './vue/app';
22 changes: 22 additions & 0 deletions resources/js/vue/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { registerIcon } from '@/lib/navigation';
import IconMap from '~icons/heroicons/map';

import '@modules/roadmap/resources/css/style.css';

/**
* Roadmap module setup
* Called during app initialization before mounting
*/
export function setup() {
console.debug('Roadmap module loaded');

registerIcon('roadmap', IconMap);
}

/**
* Roadmap module after mount logic
* Called after the app has been mounted
*/
export function afterMount() {
console.debug('Roadmap module after mount logic executed');
}
Comment on lines +10 to +22
File renamed without changes.
2 changes: 1 addition & 1 deletion routes/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
|
*/

Navigation::add('Roadmap', route('roadmap.index'), function (Section $section) {
Navigation::add('Roadmap', fn () => route('roadmap.index'), function (Section $section) {
$section->attributes([
'group' => 'main',
'slug' => 'roadmap',
Expand Down
10 changes: 6 additions & 4 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
use Modules\Roadmap\Http\Controllers\RoadmapController;
use Modules\Roadmap\Http\Controllers\RoadmapVoteController;

Route::middleware('auth')->group(function () {
Route::get('/roadmap', [RoadmapController::class, 'index'])->name('roadmap.index');
Route::post('/roadmap', [RoadmapController::class, 'store'])->middleware('throttle:10,1')->name('roadmap.store');
Route::post('/roadmap/{item}/vote', [RoadmapVoteController::class, 'store'])->middleware('throttle:30,1')->name('roadmap.vote');
Route::middleware('web')->group(function (): void {
Route::middleware('auth')->group(function (): void {
Route::get('/roadmap', [RoadmapController::class, 'index'])->name('roadmap.index');
Route::post('/roadmap', [RoadmapController::class, 'store'])->middleware('throttle:10,1')->name('roadmap.store');
Route::post('/roadmap/{item}/vote', [RoadmapVoteController::class, 'store'])->middleware('throttle:30,1')->name('roadmap.vote');
});
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RoadmapItemResource extends Resource

protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-map';

protected static ?int $navigationSort = 1;
protected static ?int $navigationSort = 3;

public static function form(Schema $schema): Schema
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions src/Providers/RoadmapServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Modules\Roadmap\Providers;

use App\Providers\ModuleServiceProvider;

class RoadmapServiceProvider extends ModuleServiceProvider
{
}
Loading