Skip to content

Instantly share code, notes, and snippets.

Avatar
😏

Sam Seay samueljseay

😏
View GitHub Profile
View task-extensibility.md

Use Setup Tasks to provide a first-class on-boarding experience for merchants

As a plugin author you'll often have one or more set up tasks you want to guide your user through to get the most out of your plugin. The challenge is making sure users see your tasks, and also making sure they complete them all.

The WooCommerce home screen is a consolidated landing space for users to get their store set up and effectively manage day-to-day operations for their business. Adding setup tasks to the task list alongside the usual setup steps will draw users to complete your tasks and also help them keep track of how far through the setup process they are.

We've built the user experience for you, so all that's left is just to plug your tasks in!

Getting started

@samueljseay
samueljseay / store-management.md
Created Feb 25, 2021
# Adding your own store management links
View store-management.md

Adding your own store management links

In the new and improved WooCommerce home screen there are 2 points of extensibility for plugin developers that have recently had some attention. The first is the setup task list, allowing you to remind the user of tasks they need to complete and keeping track of their progress for them.

The second is the store management links section. Once the user has completed the setup tasks this will display for them. This section consolidates a list of useful quick navigation links that the user can use to find features of WooCommerce.

Discoverability can be hard for users so this can be a great place to bring attention to the features of your plugin and allow users to easily find their way to the key functionality your plugin provides.

Adding your own store management links is a simple process.

@samueljseay
samueljseay / test.java
Created Jan 17, 2019
LithoActivityTestRule error
View test.java
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.facebook.litho.testing.espresso.LithoActivityTestRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
public class CardFeedActivityTest {
@Rule
@samueljseay
samueljseay / nz-mtg-coc.md
Last active Oct 25, 2018 — forked from didichanoch/sample-discord-coc.md
New Zealand MTG Code of Conduct
View nz-mtg-coc.md

New Zealand MTG Code of Conduct

Welcome!

The New Zealand MTG Discord channel is a place for Magic players throughout NZ to gather, talk, trade and arrange games together. We hope you have fun!

The current admins are:

  • Sam Seay
View ubuntu14.04-command-line-install-android-sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@samueljseay
samueljseay / es6-import-cheat-sheet.md
Created Jun 2, 2017
ES6 exports / imports cheat sheet
View es6-import-cheat-sheet.md
// default exports
export default 42;
export default {};
export default [];
export default (1 + 2);
export default foo;
export default function () {}
export default class {}
export default function foo () {}
@samueljseay
samueljseay / .eslintignore
Created Dec 12, 2016
lint console logs with eslint before committing code
View .eslintignore
# put paths to files you don't want to lint here
path/to/files/to/ignore
@samueljseay
samueljseay / SassMeister-input.scss
Created Feb 2, 2016
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.3.2)
// ----
$ids: (
church-life-page: $brand-red,
whats-on-page: $brand-blue,
news-page: $brand-orange,
resources-page: $brand-purple,
contact-page: $brand-green,
@samueljseay
samueljseay / gist:82cf59d73eb884c4f91c
Created Jan 25, 2016
Everything you can override in a refinerycms project with refinerycms-blog
View gist:82cf59d73eb884c4f91c
When starting a project that includes refinerycms-blog:
$ rake refinery:override view=refinery/pages/*
$ rake refinery:override view=layouts/*
$ rake refinery:override view=refinery/blog/shared/*
$ rake refinery:override view=refinery/blog/posts/*
$ rake refinery:override view=refinery/*
$ rake refinery:override controller=refinery/blog/*
$ rake refinery:override controller=refinery/*
@samueljseay
samueljseay / SassMeister-input.scss
Created Oct 14, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
.scope {
font-size: 24px;
& { font-style: bold; }
}