Giter Site home page Giter Site logo

199ocero / activity-timeline Goto Github PK

View Code? Open in Web Editor NEW
57.0 2.0 14.0 2.13 MB

Add timelines to custom pages or infolist entries effortlessly. Plus, it teams up smoothly with Spatie Activitylog for easy tracking.

Home Page: https://filamentphp.com/plugins/jaocero-activity-timeline

License: MIT License

JavaScript 1.44% PHP 68.11% CSS 0.22% Blade 30.23%
activity-timeline filamentphp filamentplugin infolists spatie-activity-log

activity-timeline's Introduction

๐Ÿ’ซ About Me:

๐Ÿ”ญ Iโ€™m currently working on FormifyFlow, MailifyFlow, Inertia Table and FilamentPHP plugins Radio Deck, Activity Timeline and some are in progress.

๐ŸŒฑ Iโ€™m currently learning advance php, livewire, alpines.js, filament, inertia.js and vue 3.

๐Ÿ“ซ How to reach me [email protected]

โšก Fun fact I usually read manga or manhwa during free time

๐ŸŒ Socials:

LinkedIn Twitter

๐Ÿ’ป Tech Stack:

PHP JavaScript HTML5 Dart Java Python Vercel Netlify DigitalOcean Laravel Flutter GitHub React Vue.js TailwindCSS Bootstrap jQuery Nginx Apache Postgres MySQL Figma Adobe Photoshop GIT Postman Trello Notion Jira

๐Ÿ“Š GitHub Stats:



๐Ÿ† GitHub Trophies

โœ๏ธ Random Dev Quote


activity-timeline's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

activity-timeline's Issues

[Bug]: Cast array error

What happened?

Unable to display timeline activity if one of the fields is cast as an array, for example the tags column is a text colum in mysql but it's using cast to array in laravel

How to reproduce the bug

create a model that has a text column, cast that column as an array
edit the model, change something
go to view timeline

Package Version

1.2

PHP Version

8.3

Laravel Version

11

Which operating systems does with happen with?

Windows

Notes

protected $casts = [
'start_date' => 'datetime',
'end_date' => 'datetime',
'target_date' => 'datetime',
'tags' => 'array',
];

Error Type:
TypeError
PHP 8.3.2
11.0.7
htmlspecialchars(): Argument #1 ($string) must be of type string, array given

Error Location:
The error occurred in the file /home/planner/public_html/planner/vendor/jaocero/activity-timeline/src/Concerns/HasSetting.php at line 176.

Error Message:
The error message indicates that the function htmlspecialchars() was called with an argument that must be a string, but an array was given instead.

[Bug]: Lazy loading subject

What happened?

If we use Model::shouldBeStrict() then we get this error:
image

How to reproduce the bug

Just use Model::shouldBeStrict() in your service provider to disable Lazy loading

Package Version

1.2

PHP Version

8.2

Laravel Version

10

Which operating systems does with happen with?

No response

Notes

No response

[Bug]: Allow html always true

What happened?

The $isHtmlAllowed in blade component is being use instead of $isHtmlAllowed() it resuts to always true.

How to reproduce the bug

.

Package Version

1.0.1

PHP Version

8.1

Laravel Version

10.0.0

Which operating systems does with happen with?

macOS

Notes

No response

[Enhancement]: Adding support for Spatie Activity Log

What happened?

Currently the only supported to use this package is via making an infolists builder.

How to reproduce the bug

.

Package Version

1.0.1

PHP Version

8.1

Laravel Version

10.0.0

Which operating systems does with happen with?

macOS

Notes

I want to support making a custom page to show all activity logs from spatie package from a specific record/model.

Use pagination so huge relationships lists doesn't kill the server

What happened?

The timeline is loaded as a whole while it should limit the result by the number of entries or let the developer decide

How to reproduce the bug

Have a model with a another related having 1000 entries or more (it loads fast, but should be loaded by chunks aka paginated)

Package Version

1.2.7

PHP Version

8.3.2

Laravel Version

10

Which operating systems does with happen with?

No response

Notes

No response

[Bug]: icon will overlap with the close button

What happened?

It'll overlap with the close button.

่žขๅน•ๆ“ทๅ–็•ซ้ข 2024-01-19 031042

How to reproduce the bug

Using ViewAction in slideOver mode.

Tables\Actions\ViewAction::make()->slideOver(),

Package Version

1.2

PHP Version

8.2

Laravel Version

10.41

Which operating systems does with happen with?

No response

Notes

Removing z-10 may solve this issue, but it's uncertain whether it will cause other problems.

activity-icon.blade.php

<div class="relative z-10 w-8 h-8 flex justify-center items-center">
to
<div class="relative w-8 h-8 flex justify-center items-center">

[Bug]: The package doesnt work with Relation::enforceMorphMap()

What happened?

When I'm using the Relation::enforceMorphMap() method on the AppServiceProvider, the package doesn't work as expected. No result is returned on the activity page.

Relation::enforceMorphMap([
  'user' => User::class,
]);

The query from that page is looks like this:

select * from `activity_log` where `subject_id` = 1 and `subject_type` = 'App\Models\User' order by `created_at` desc

It uses the class name instead of the morph map alias.

How to reproduce the bug

Use the Relation::enforceMorphMap() method on the AppServiceProvider

Package Version

^1.2

PHP Version

8.2.10

Laravel Version

^10.10

Which operating systems does with happen with?

No response

Notes

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.