Commit Graph

2927 Commits

Author SHA1 Message Date
Jasper Woudenberg
704159ffb4
Merge branch 'master' into add-versioning-policy 2018-03-30 17:11:56 +02:00
Jasper Woudenberg
1e2c003938 Add a section on our versioning policy
This puts in the README what has so far been an informal policy, based
on Slack and Paper dicussions.

Anyone should feel free to change this!
2018-03-30 16:54:02 +02:00
Hardy Jones
150ad80284
Merge pull request #28 from NoRedInk/disallow-major-bumps
disallow major changes in Travis
2018-03-30 07:32:38 -07:00
Brian Hicks
87ea451dd5
Merge branch 'master' into disallow-major-bumps 2018-03-30 09:14:39 -05:00
Stoeffel
d6fa61cf02 4.3.0 2018-03-30 16:10:49 +02:00
Brian Hicks
6cd23a3e06
disallow major changes in Travis
A repo administrator can still override this check if we really need to
publish a major change, but let's catch the common case.
2018-03-30 09:10:39 -05:00
Christoph Hermann
21b69d4a3e
Merge pull request #27 from NoRedInk/rename-to-class
Rename to class
2018-03-30 16:10:03 +02:00
Stoeffel
4fcf54727e fix namespace of v4 2018-03-30 16:05:21 +02:00
Stoeffel
b7dbbfffd3 rename to CssClass to avoid bumping to 5.0.0 2018-03-30 16:05:03 +02:00
Christoph Hermann
2f6148fd6c
Merge pull request #26 from NoRedInk/expose-css-classes-segmented
expose css classes
2018-03-30 16:01:40 +02:00
Stoeffel
6559a32023 expose css classes 2018-03-30 15:57:40 +02:00
Stoeffel
3937beeced 4.2.0
Comparing NoRedInk/noredink-ui 4.1.0 to 4.2.0
This is a MINOR change.

------ Changes to module Nri.Ui.Icon.V1 - MINOR ------

    Added:
        type CssClasses

------ Changes to module Nri.Ui.Icon.V2 - MINOR ------

    Added:
        type CssClasses
2018-03-30 13:22:41 +02:00
Christoph Hermann
e0fc0b3d71
Merge pull request #25 from NoRedInk/expose-css-classes
exposes CssClasses type
2018-03-30 13:19:52 +02:00
Stoeffel
ac49bb373e exposes CssClasses type 2018-03-30 13:17:34 +02:00
Jasper Woudenberg
65fdf581e6 v4.1.0 2018-03-30 08:10:54 +02:00
Jasper Woudenberg
b0711d9024
Merge pull request #23 from NoRedInk/separate-icon-functions
Separate icon functions
2018-03-30 08:03:32 +02:00
Jasper Woudenberg
0b62490bcf
Merge branch 'master' into separate-icon-functions 2018-03-30 08:00:09 +02:00
Brooke
8b860ccb62
Merge pull request #18 from NoRedInk/accessibility-compatible-styled
make Nri.Ui.styled compatible with Accessibility.Styled
2018-03-29 13:12:16 -07:00
Brooke
2ddd4ced9b bump elm package to 4.0.0 - make styled Accessibility accessbile 2018-03-29 13:07:01 -07:00
Brooke
bd28ec2420 make Nri.Ui.styled compatible with Accessibility.Styled 2018-03-29 13:06:45 -07:00
Jasper Woudenberg
1c5bd47bec
Merge branch 'master' into separate-icon-functions 2018-03-29 17:01:41 +02:00
Jasper Woudenberg
6e041d9364 Styleguide uses latest Icon / SegmentedControl 2018-03-29 12:58:41 +02:00
Jasper Woudenberg
4aa4217ce5
Merge pull request #24 from NoRedInk/version-bump
Bump 3.6.0
2018-03-29 11:01:13 +02:00
Jasper Woudenberg
0c02d6e540 Bump 3.6.0 2018-03-29 10:44:56 +02:00
Jasper Woudenberg
6f6f17cc00 New SegmentedControl that uses latest Icon
This change allows SegmentedControl to no longer needs to take a record
with all icon assets. It's the construction of the `IconType` that now
requires an asset, which one depends on the icon being constructed.
2018-03-29 10:16:27 +02:00
Jasper Woudenberg
09de05c06e New Icon module with a function per icon
The purpose of this change is to allow each icon to list its asset
dependencies separately. This allows services consuming the icon library
to only provide those icons that are actually used.
2018-03-29 10:16:02 +02:00
Jasper Woudenberg
ad8ee2bb64 Stop ignoring Icon modules
Not sure what this .gitignore entry was for though. Happy to change this
commit for a narrower .gitignore rule that whitelists our Icon modules
but keeps ignoring whatever files it was ignoring before.
2018-03-29 09:57:20 +02:00
Jasper Woudenberg
a00c34a6f4
Merge pull request #22 from NoRedInk/extract-updated-segmented-control
Extract updated segmented control
2018-03-29 09:30:49 +02:00
Hardy Jones
fb2dbbfb47
Extract updated segmented control from the monolith
This version is like `Nri.Ui.SegmentedControl.V1` with the icon changes.
It has the fix for `box-sizing`.

All the other caveats from `Nri.Ui.SegmentedControl.V1`
(if there were any) apply here as well.
2018-03-28 18:20:58 -07:00
Hardy Jones
0a75e8229b
Extract Nri.Icon from the monolith
The recommendation is to break the styles API rather than the view API
when moving something out of the monolith into this repo.

`Nri.Icon` is not really setup for that sort of breakage.
If we would prefer to have the styles break rather than the view,
that will take more work.
Work that can be done independent of the extraction.

The transition in the monolith ought to look something like:

```elm
module Nri.Icon exposing (..)

import Html exposing (Html)
import Nri.SvgSprite
import Nri.Ui.Icon.V1 exposing (Assets, IconType)

icon : { alt : String, icon : IconType } -> Html msg
icon config =
  Nri.Ui.Icon.V1.icon assets

assets : Assets {}
assets =
  { activity = Nri.SvgSprite.activity
  , arrowDown = Nri.SvgSprite.arrowDown
  , attention_svg = Nri.Assets.attention_svg
  ...
  }
```

So hopefully, the change is still very small on the monolith side.

There's maybe a bigger concern than which API breaks.
`Nri.Icon` has some behavior for a11y.
We could definitely change the internals over during the extraction.
But, since all of these changes are value-level changes,
it's very likely that we'll break something in the process.
That's a bigger concern because instead of affecting
the handful of Engineers working at NRI,
we would be affecting the millions of people using the site.

We shouldn't fear making those kinds of changes.
However, we should make them when we can give them the appropriate
attention they deserve.
Not when one person is trying to move as fast as possible to avoid
race conditions of moving modules between repos.
2018-03-28 18:20:16 -07:00
Hardy Jones
7a5da8a78c
Merge pull request #21 from NoRedInk/set-shell-explicitly
Set shell explicitly
2018-03-28 12:23:00 -07:00
Hardy Jones
9bab3fe852
Use /bin/sh instead
Per Brian Hicks: people customize their .bashrc/.zshrc and
sometimes they take a long time to load,
but almost no one ever customizes `/bin/sh`.
2018-03-28 12:16:59 -07:00
Hardy Jones
00d61cb76b
Set the SHELL explicitly
On macOS/OSX, the shell is `/bin/sh`.
Most of the `elm` commands don't seem to work in `/bin/sh`.

If we use `/bin/bash`, the commands seem to work.
2018-03-28 12:05:11 -07:00
Jasper Woudenberg
330cce6a72
Merge pull request #19 from NoRedInk/joneshf-patch-1
Turn off email notifications
2018-03-28 20:12:59 +02:00
Jasper Woudenberg
5f5a060dd2
Merge branch 'master' into joneshf-patch-1 2018-03-28 19:56:09 +02:00
Michael Glass
23fd05e227
Merge pull request #20 from NoRedInk/makefile-uncontroversial
add a Makefile, speed up CI
2018-03-28 13:28:48 +02:00
Brian Hicks
89ee987118
cache slightly more aggressively to avoid downloads 2018-03-27 22:28:16 -05:00
Brian Hicks
a756a0a685
try node_modules again, while always saying to remake the dep targets 2018-03-27 22:23:32 -05:00
Brian Hicks
0515f1fbd6
how about caching elm packages!? 2018-03-27 22:19:13 -05:00
Brian Hicks
732a25a5cd
un-cache node_modules, which causes errors for some reason? 2018-03-27 22:16:57 -05:00
Brian Hicks
0fce84dc5e
update README with test/ci instructions 2018-03-27 22:14:55 -05:00
Brian Hicks
c3acc165d6
automatically calculate output file name 2018-03-27 22:14:24 -05:00
Brian Hicks
199b219a97
cache node_modules, too 2018-03-27 22:11:03 -05:00
Brian Hicks
30be6bfa06
define what I know node_modules will be later now
Travis can't determine what node_modules will be if it doesn't exist
yet, so it fails and has to retry. No need for that, so we'll just put
it where we know it will be.
2018-03-27 22:07:51 -05:00
Brian Hicks
6b717c6166
🎨 remove extra line 2018-03-27 22:04:00 -05:00
Brian Hicks
8923998ad8
use ci target 2018-03-27 22:03:45 -05:00
Brian Hicks
c14d5abc92
split out top level test targets 2018-03-27 22:00:47 -05:00
Brian Hicks
0cac3bf06b
combine sub-elm-stuffs 2018-03-27 22:00:36 -05:00
Brian Hicks
f9947b796b
use the right wildcard syntax 2018-03-27 21:42:59 -05:00
Brian Hicks
9298f45c16
inhibit parallel elm-package invocations, while allowing other parallel stuff 2018-03-27 21:37:47 -05:00