Comments (4)
Hey @miken32
- Right now we're not doing too much constructor promotion so you can just use properties for them to keep things consistent
Illuminate\Notifications\Slack\BlockKit\Blocks\Block
sounds good- I'm not too sure about this one but I'd personally go for
Illuminate\Notifications\Slack\BlockKit\Elements\Concerns
if they're specific for this namespace
from slack-notification-channel.
Thanks @miken32. I'm not sure why @claudiodekker left these out. Most probably because it can potentially be quite a bit of work. Feel free to send in a PR if you like that we can review.
from slack-notification-channel.
Yeah, that, and the whole PR was initially simply written for internal-only use. It was only when I was done writing it that I realized it was feature complete with the V2/Webhook-based implementation, at which point I cleaned it up a little and PR'd it.
from slack-notification-channel.
@driesvints are there any Laravel style guidelines beyond this section in the documentation? I've got a few style/convention questions that would ideally get cleared up before a PR is submitted.
- Looking at the code, my first thought is that I could clean up a lot of boilerplate with constructor property promotion. But I don't see much of this in Laravel; is that simply holdover from older PHP versions or is it not welcome for some reason?
- I'm going to create a base class that e.g.
Illuminate\Notifications\Slack\BlockKit\Blocks\HeaderBlock
will extend. Is there a preference forIlluminate\Notifications\Slack\BlockKit\Block
vsIlluminate\Notifications\Slack\BlockKit\Blocks\Block
? - Similar question for traits used by classes in the
Illuminate\Notifications\Slack\BlockKit\Elements
namespace; Laravel convention seem to put these in aConcerns
namespace? Should it be specific to the using classes (Illuminate\Notifications\Slack\BlockKit\Elements\Concerns
) or is it preferred to have one place for all traits (Illuminate\Notifications\Slack\Concerns
).
Sorry if these are too nitpicky, I just want to improve chances of the PR getting accepted. I've worked with large teams before and there are often a lot of unwritten rules for newcomers!
from slack-notification-channel.
Related Issues (20)
- slack warning message HOT 1
- Not possible to use "Date" as the name of a field HOT 1
- Unable to disable link and media unfurling HOT 1
- Laravel 7 Support
- "From" is not supported HOT 8
- Driver not supported when slack notification is implemented with queue jobs HOT 1
- PHP 8.0 support HOT 1
- SlackAttachment::timestamp() not setting date correctly HOT 2
- Function to() doesn't work HOT 7
- Slack notifications not working, unable to create legacy incoming webhook HOT 2
- Undesirable side-effects of is_callable() use HOT 5
- Argument #1 ($message) must be of type Illuminate\Notifications\Slack\SlackMessage HOT 5
- No upgrade guide for upgrading from v2 to v3 HOT 1
- Allow `Attachement` type with the new `Block Kit` HOT 8
- Add colored bars to sections/blocks HOT 1
- Please document how to use SlackAttacments HOT 1
- No way to disable unfurl_links or unfurl_media HOT 6
- InputBlock missing. HOT 1
- Error using Illuminate\Notifications\Slack\SlackMessage buildJsonPayload HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slack-notification-channel.