Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

Calendar component - Issue #36 (WIP) #45

Merged
merged 7 commits into from Mar 21, 2017
Merged

Commits on Mar 20, 2017

  1. Changes the builder to use the util.inspect() to output the error

    Adds the Calendar component
    
    Updates the example to show the dates (not final)
    
    Changes the DaysPanel to export directly the class
    
    Makes the code more explicit on the calendar.js
    
    Makes the styles customizable
    
    Fixes the _default.yaml to be able to build
    
    Fixes SCSS to build :D
    
    Changes the builder to actually output (and colorize) when an error happens
    
    Adds classNames to elements to make them more specific
    
    Fixes bug where an error would be triggered when the initialDates attribute was not set. Also resets the minLimit to the passed one when provided via attributes or to null when none is available
    
    Hides the nav button when not enabled
    
    Changes the _default.yaml to have decent colors for the rendering :P
    
    Adds the function leftPad() to the helpers to do left padding of the months and days
    
    Improves the code based on the reviews' feedback. Also makes it more testable and fixes some bugs detected when developing the unit tests
    
    Converts the DaysPanel to a stateless component with no mods (for now)
    
    Improves the code based on reviews' feedback. Also makes it more testable and introduces a new method to merge the locale definitions
    
    Removes the enzyme-to-json package and brings jest-serializdr-enzyme which is then configured in the jest config
    
    Reverts the removal to give time to migrate the other unit tests. Adds the serializer configuration to the jest.config.json
    
    Adds the unit tests and its snapshots
    
    Updates the tests for UTC
    
    Removes the mods and the dataAttrs from the 'defaultProps'.
    
    Updates the snapshots
    
    Attempt to set some colors matching the defined color pattern
    
    Updates the snapshots
    
    Adds some aria-labels to increase accessibility
    
    Adds updated snapshots
    
    Fixes a lint error :P
    
    Adds a function to normalize the dates on the time
    
    Changes the code to use the newly added function
    
    Updates the tests to use the normalizeDate() and updates the snapshots
    
    Moves the 'bind' to its own declaration, to prevent warnings from linting
    
    Changed the 'extraClasses' variable to be named 'mods'
    
    Changes the 'npm test' to set the testing to be always UTC (to solve CI issues)
    
    Also added the TZ=utc to the update-snapshots script
    
    Adds a function processProps() to be used by both the constructor and the componentWillReceiveProps() from the Calendar component
    
    Adds a wrapper component to make the test of the props being changed. Also adds a test to verify the componentWillReceiveProps. Updates the snapshots
    
    Improves coverage of the componentWillReceiveProps
    
    Downgraded eslint-plugin-react due to a bug on the jsx-indent rule: jsx-eslint/eslint-plugin-react#1117
    
    Fixes the issue with the eslint-plugin-react's version, enabling the indentLogicalExpressions
    
    Adds the possibility to override the display text in the navigation buttons, as well as the aria-label attribute
    Ricardo Machado committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    71b681b View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2017

  1. Adds the examples with a normal calendar with all props set and a ran…

    …ge calendar with all props set
    Ricardo Machado committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    cb93c82 View commit details
    Browse the repository at this point in the history
  2. Fixes issue where renderDate was not between the min and max limits, …

    …so needed to be readjusted
    Ricardo Machado committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    2a0146f View commit details
    Browse the repository at this point in the history
  3. Fixes issue where in the edge-months (0 and 11) we were doing imprope…

    …r math :D
    Ricardo Machado committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    01bc264 View commit details
    Browse the repository at this point in the history
  4. Updates the snapshots and the tests to cover properly with the new ch…

    …anges
    Ricardo Machado committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    201061b View commit details
    Browse the repository at this point in the history
  5. Fixes poor configuration on the .eslintrc

    Ricardo Machado committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    0d85c3d View commit details
    Browse the repository at this point in the history
  6. Improved readability on the ternary operator of the handling of the r…

    …enderDate
    Ricardo Machado committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    c929a9a View commit details
    Browse the repository at this point in the history