Skip to content

Commit

Permalink
Merge pull request #18 from uriweb/release-1.5.0
Browse files Browse the repository at this point in the history
Release 1.5.0
  • Loading branch information
bjcfuller authored Oct 29, 2020
2 parents 3c05bd3 + d9e14f0 commit d04300c
Show file tree
Hide file tree
Showing 18 changed files with 1,063 additions and 706 deletions.
22 changes: 0 additions & 22 deletions .eslintrc.json

This file was deleted.

35 changes: 35 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Specify project environments
env:
es6: true
browser: true

# Specify rule extensions
extends:
- 'plugin:@wordpress/eslint-plugin/recommended-with-formatting'

# Configure rules
rules:
no-undef: warn
no-unused-vars: warn
no-bitwise: warn
no-alert: warn
no-console:
- error
- allow:
- warn
- error
jsx-a11y/label-has-associated-control: warn
jsx-a11y/label-has-for: off

# Specify global variables to ignore
# Some of these aren't really globals, but this is useful for ignoring no-undef for class vars etc.
globals:
jQuery: readonly
URIProgramFinder: readonly

# Specify files and directories to ignore
ignorePatterns:
- 'node_modules/'
- 'select2/'
- 'gulpfile.js'
- 'js/programs.built.js'
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.gitignore export-ignore
# test files
.codesniffer.ruleset.xml export-ignore
.eslintrc.json
.eslintrc.yml
.sniff export-ignore
.travis.yml export-ignore
# gulp files
Expand Down
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ services:
before_install:
# Disable XDebug
- phpenv config-rm xdebug.ini
# Install latest Node.js (sometimes Travis-CI doesn't run the latest)
- nvm install lts/*
# Install latest NPM (sometimes Travis-CI doesn't run the latest)
- npm install npm@latest -g

Expand Down Expand Up @@ -73,7 +75,7 @@ before_script:
# After CodeSniffer install you should refresh your path.
- phpenv rehash
# Install ESLint
- npm install -g eslint
- npm install -g eslint@6
# Install WP JS standards
- npm install @wordpress/eslint-plugin --save-dev

Expand Down
49 changes: 22 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,36 @@
# URI Program Finder

Add [programs-categories] to a page and a form magically appears.
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/uriweb/uri-program-finder)](https://github.com/uriweb/uri-program-finder/releases/latest)
[![GitHub Release Date](https://img.shields.io/github/release-date/uriweb/uri-program-finder)](https://github.com/uriweb/uri-program-finder/releases/latest)
![GitHub](https://img.shields.io/github/license/uriweb/uri-program-finder)
[![Codacy Badge](https://img.shields.io/codacy/grade/09e1f5a600ee41b6a1fb1426f040244d/master)](https://www.codacy.com/app/uriweb/uri-program-finder?utm_source=github.com&utm_medium=referral&utm_content=uriweb/uri-program-finder&utm_campaign=Badge_Grade)
![GitHub top language](https://img.shields.io/github/languages/top/uriweb/uri-program-finder?color=violet&branch=master)

## What's new in 1.4.1
Add `[programs-categories]` to a page and a form magically appears.

Program Finder 1.4.1 is a bug fix release.
## What's new in 1.5.0

- Switches fields for Accreditation and Specializations to WYSIWYG
- Updates default template to display information from new WYSIWIG fields properly
- Reorders fields to match front-end display
- Adds/updates field instructions
Program Finder 1.5.0 is a minor release.

For complete details, see the [commit history](https://github.com/uriweb/uri-program-finder/pull/16/commits) and the [issue tracker](https://github.com/uriweb/uri-program-finder/issues).
* Adds a badge for undergraduate certificate programs
* Adds a badge icon and associated detail page display for accelerated programs, with the ability to customize detail page descriptor
* Adds a badge icon and associated detail page display for online programs
* Adds compatibility for [URI Component Library v5.0](https://github.com/uriweb/uri-component-library/releases/tag/v5.0.0)
* Updates development tools, including migrating to Autoprefixer v10 (plus required peer dependencies)
* Other bug fixes

## New in 1.4.0

Program Finder 1.4.0 is a minor update.

- Standardizes shortcode name to `uri-program-finder` (**`programs-categories` will no longer work**)
- Adds fields and display for Accreditation, Specializations, and Classes Offered information
- Adds support for displaying minor programs
- Custom curriculum sheet links now display as "Advising", and are visible for all program types
- Fixes an issue that prevented blank curriculum sheet fields from defaulting correctly
- Replaces [Chosen](https://github.com/harvesthq/chosen), which is deprecated, with [Select2](https://github.com/select2/select2) for dropdown menus
- Updates development tools
- Other bug fixes and code improvements

For complete details, see the [commit history](https://github.com/uriweb/uri-program-finder/pull/14/commits) and the [issue tracker](https://github.com/uriweb/uri-program-finder/issues).
For complete details, see the [commit history](https://github.com/uriweb/uri-program-finder/pull/18/commits) and the [issue tracker](https://github.com/uriweb/uri-program-finder/issues).

## Plugin Details

[![Master Build Status](https://travis-ci.org/uriweb/uri-program-finder.svg?branch=master)](https://travis-ci.org/uriweb/uri-program-finder)
[![CodeFactor](https://www.codefactor.io/repository/github/uriweb/uri-program-finder/badge/master)](https://www.codefactor.io/repository/github/uriweb/uri-program-finder/overview/master)
[![devDependencies Status](https://david-dm.org/uriweb/uri-program-finder/dev-status.svg)](https://david-dm.org/uriweb/uri-program-finder?type=dev)

Contributors: John Pennypacker, Brandon Fuller
Tags: plugins
Requires at least: 4.0
Tested up to: 5.4
Stable tag: 1.4.1
__Contributors:__ [johnpennypacker](https://github.com/johnpennypacker), [bjcfuller](https://github.com/bjcfuller)
__Tags:__ plugins, shortcodes
__Requires at least:__ 4.0
__Tested up to:__ 5.5
__Stable tag:__ 1.5.0
__License:__ GPL-3.0
__Licence URI:__ https://www.gnu.org/licenses/gpl-3.0.html
2 changes: 1 addition & 1 deletion css/map/programs.built.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/programs.built.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added i/accelerated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added i/online.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions inc/uri-program-finder-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,18 @@ function uri_program_finder_create_taxonomy() {
'allow_null' => 0,
'multiple' => 0,
),
array(
'key' => 'field_5f7f3423326e4',
'label' => 'Accelerated program language',
'name' => 'accelerated_language',
'type' => 'text',
'instructions' => 'Modify the display language for accelerated programs (if applicable)',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
),
),
'location' => array(
array(
Expand Down
4 changes: 4 additions & 0 deletions inc/uri-program-finder-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ function uri_program_finder_make_form( $categories ) {

// now create the js form
$output .= '<form class="has-js" style="display: none;">';
$output .= '<div class="keyword-search">';
$output .= $text_input;
$output .= '<button type="button" id="js-form-reset">Clear</button>';
$output .= '</div>';

$output .= '<div class="facets">';
foreach ( $categories as $c ) {
$subcats = uri_program_finder_get_children( $c['id'] );
array_unshift(
Expand All @@ -71,6 +74,7 @@ function uri_program_finder_make_form( $categories ) {
);
$output .= uri_program_finder_make_select( $c, $subcats, true );
}
$output .= '</div>';
$output .= '</form';
$output .= '</div>';

Expand Down
Loading

0 comments on commit d04300c

Please sign in to comment.