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

#20 - add pages for every tab #36

Merged
merged 74 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
ac77275
added home placeholder+route
Wiktor-Wojciechowski Jun 14, 2024
6b32d04
added a test link
Wiktor-Wojciechowski Jun 14, 2024
51474d6
added navbar home rawlog table page placeholders; added temporary ico…
Wiktor-Wojciechowski Jun 18, 2024
aebdbe6
added repositories, authors placeholders; updated home and navbar pages
Wiktor-Wojciechowski Jun 18, 2024
2fc0bf2
added footer to defaultlayout; cleaned up home; cleaned up navbar
Wiktor-Wojciechowski Jun 18, 2024
8c9e6f7
added file input to home
Wiktor-Wojciechowski Jun 18, 2024
fe2947d
Merge branch 'main' of https://github.com/blumilksoftware/gha-analyze…
Wiktor-Wojciechowski Jun 18, 2024
afda10c
home cleanup
Wiktor-Wojciechowski Jun 18, 2024
31b3c3e
moved bottom buttons from home to defaultlayout
Wiktor-Wojciechowski Jun 18, 2024
ccb7818
cleanup
Wiktor-Wojciechowski Jun 18, 2024
d9b0db1
changed script to script setup, removed export in defaultlayout
Wiktor-Wojciechowski Jun 18, 2024
12f62db
changed table, testing data passing
Wiktor-Wojciechowski Jun 19, 2024
65a0710
added repositories view
Wiktor-Wojciechowski Jun 24, 2024
af36d25
added authors page
Wiktor-Wojciechowski Jun 24, 2024
6b485fe
cleanup
Wiktor-Wojciechowski Jun 24, 2024
fa21417
added table page
Wiktor-Wojciechowski Jun 24, 2024
a5257cc
changed default layout
Wiktor-Wojciechowski Jun 24, 2024
16adec9
fixed sorting in table
Wiktor-Wojciechowski Jun 24, 2024
5606ed1
added pinia
Wiktor-Wojciechowski Jun 24, 2024
604879c
moved logs sample to logsStore
Wiktor-Wojciechowski Jun 24, 2024
eac0595
laout fix in home
Wiktor-Wojciechowski Jun 24, 2024
97e443c
cleanup
Wiktor-Wojciechowski Jun 24, 2024
2103e8a
added functions to modify logs (need fixing)
Wiktor-Wojciechowski Jun 24, 2024
c0e04ba
modified the store to make the pages update along the data
Wiktor-Wojciechowski Jun 25, 2024
85d77f5
cleanup
Wiktor-Wojciechowski Jun 25, 2024
b362489
made table reactive to log changes
Wiktor-Wojciechowski Jun 25, 2024
4115bb1
made repositories and authors reactive to log changes
Wiktor-Wojciechowski Jun 25, 2024
6770e1b
Merge branch 'main' of https://github.com/blumilksoftware/gha-analyze…
Wiktor-Wojciechowski Jun 25, 2024
ca44af2
added active link indicator
Wiktor-Wojciechowski Jun 25, 2024
486e9f4
cleanup
Wiktor-Wojciechowski Jun 25, 2024
e8b8ef1
layout changes, elements dis/appear depending on whether the logs are…
Wiktor-Wojciechowski Jun 25, 2024
a591ddd
added icons
Wiktor-Wojciechowski Jun 25, 2024
c974363
added titles to pages
Wiktor-Wojciechowski Jun 25, 2024
12d3728
fixed recursive rerenders in table page
Wiktor-Wojciechowski Jun 25, 2024
ac4af10
added icons, fixed icons not displaying on table page
Wiktor-Wojciechowski Jun 26, 2024
bc1dd22
cleanup
Wiktor-Wojciechowski Jun 26, 2024
0411cc9
fixed repositories not displaying colors
Wiktor-Wojciechowski Jun 26, 2024
dbebf97
fixed broken sorting on table page
Wiktor-Wojciechowski Jun 26, 2024
b541805
changed logsStore file type from js to ts
Wiktor-Wojciechowski Jun 26, 2024
27b6ac7
lint cleanup
Wiktor-Wojciechowski Jun 26, 2024
8741761
In response to PR comments, moved sample data from DefaultLayout to a…
Wiktor-Wojciechowski Jun 27, 2024
a6ff7fc
lint cleanup
Wiktor-Wojciechowski Jun 27, 2024
77f5770
fixed lint warnings
Wiktor-Wojciechowski Jun 27, 2024
3271534
Update resources/data/sampleData.json
Wiktor-Wojciechowski Jun 27, 2024
40cd13a
moved colors from pages to tailwind config; changed module.exports to…
Wiktor-Wojciechowski Jun 27, 2024
fa862bd
Merge branch '#20-add-pages-for-every-tab' of https://github.com/blum…
Wiktor-Wojciechowski Jun 27, 2024
c2a0922
colors can now be fetched from api
Wiktor-Wojciechowski Jul 1, 2024
296faef
added logs controller
Wiktor-Wojciechowski Jul 1, 2024
8006913
cleanup
Wiktor-Wojciechowski Jul 1, 2024
c08fc38
cleanup
Wiktor-Wojciechowski Jul 1, 2024
eab59af
updated files and paths
Wiktor-Wojciechowski Jul 2, 2024
1c667cf
changed colors json, colors still not working
Wiktor-Wojciechowski Jul 2, 2024
5c04736
added a colors service, added authors repositories table ccontrollers
Wiktor-Wojciechowski Jul 3, 2024
0931cf0
Merge branch 'main' of https://github.com/blumilksoftware/gha-analyze…
Wiktor-Wojciechowski Jul 4, 2024
4feafd2
Merge branch 'main' of https://github.com/blumilksoftware/gha-analyze…
PrabuckiDominik Aug 5, 2024
55eadc6
add workflow actor
AmonDeShir Aug 5, 2024
6ee07e2
fix code style
AmonDeShir Aug 5, 2024
d7e5e81
Rewrite frontend
AmonDeShir Aug 5, 2024
b4bf28c
remove unused dependencies
AmonDeShir Aug 5, 2024
91e77a8
remove pinia
AmonDeShir Aug 5, 2024
a4eb92c
remove ColorsService
AmonDeShir Aug 5, 2024
3fdda78
fix code style
AmonDeShir Aug 5, 2024
f7ed354
move GitHub to separate component
AmonDeShir Aug 6, 2024
7314da5
create table component
AmonDeShir Aug 6, 2024
c68dbda
remove empty line
AmonDeShir Aug 6, 2024
ba6f532
Merge branch 'main' of https://github.com/blumilksoftware/gha-analyze…
AmonDeShir Aug 6, 2024
74e0c94
move interfaces to a separate folder
AmonDeShir Aug 6, 2024
7cbe2dc
move actor interface to a separate file
AmonDeShir Aug 6, 2024
d503916
Merge branch 'main' of https://github.com/blumilksoftware/gha-analyze…
AmonDeShir Aug 6, 2024
60ef2ec
reduce nested loops
AmonDeShir Aug 6, 2024
d5128db
move minutes and price calculations to model
AmonDeShir Aug 6, 2024
cb8784f
move job price calculation and workflow name to model
AmonDeShir Aug 6, 2024
6ebf293
move data processing to resources
AmonDeShir Aug 7, 2024
e849bdb
Add return type to lambdas
AmonDeShir Aug 7, 2024
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
4 changes: 2 additions & 2 deletions app/Http/Controllers/TableController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function show(): Response
"repository_id" => $job->workflowRun->repository->id,
"minutes" => $job->minutes,
"price_per_minute" => $job->price_per_unit,
"total_price" => $job->minutes * $job->price_per_unit,
"workflow" => $job->name . " - " . $job->name,
"total_price" => $job->price,
"workflow" => $job->fullName,
"os" => $job->runner_os,
"actor" => $job->workflowRun->workflowActor,
];
Expand Down
14 changes: 14 additions & 0 deletions app/Models/WorkflowJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
Expand All @@ -19,9 +20,12 @@
* @property int $minutes
* @property int $multiplier
* @property float $price_per_unit
* @property float $price
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @property string $fullName
*
* @property WorkflowRun $workflowRun
*/
class WorkflowJob extends Model
Expand All @@ -43,4 +47,14 @@ public function workflowRun(): BelongsTo
{
return $this->belongsTo(WorkflowRun::class);
}

protected function price(): Attribute
{
return Attribute::get(fn() => $this->minutes * $this->price_per_unit);
}

protected function fullName(): Attribute
{
return Attribute::get(fn() => $this->workflowRun->name . " - " . $this->name);
kamilpiech97 marked this conversation as resolved.
Show resolved Hide resolved
}
}
Loading