GithubHelp home page GithubHelp logo

jbrowneuk / jblog Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 6.01 MB

A very basic Angular-powered blog engine powering my portfolio.

Home Page: http://jbrowne.io

License: Apache License 2.0

PHP 11.95% TypeScript 61.79% JavaScript 0.02% HTML 15.57% SCSS 10.67%
angular portfolio

jblog's People

Watchers

 avatar

Forkers

blmsl

jblog's Issues

Single post view fails to load post

Expected Behavior

Single post view displays content.

Actual Behavior

Single post view fails with an exception:

ERROR TypeError: Cannot read property 'length' of undefined
    at n.hasTags (/1.ff759fa7d5deaa6076d1.chunk.js:1)

Steps to Reproduce the Problem

  1. Navigate to a post (i.e. 292) - url/journal/292

Specifications

  • Version: 3.1.0-beta1
  • Platform: Any

Journal pagination does not refresh when a tag is applied

Expected Behavior

The pagination at the bottom of the post list page reflects the number of pages for the currently selected tag if a tag has been added to the view filter.

Actual Behavior

The pagination shows the total number of pages for all posts no matter what.

Steps to Reproduce the Problem

  1. Load the journal post list for a journal with more than one page of posts. Note the number of pages in the pagination.
  2. Select a tag on a post which has less pages. Note the number of pages on the pagination does not change.
  3. Click on the last visible page number. "No posts" is displayed and the pagination will now update.

Unit tests don't work

Expected Behavior

Running npm run test or ng test on the codebase should run unit tests.

Actual Behavior

Running ng test fails with 20 tests not running at all:

Chrome 57.0.2987 (Mac OS X 10.12.4): Executed 24 of 24 (20 FAILED) (1.108 secs / 0.579 secs)

Steps to Reproduce the Problem

  1. cd to project root directory.
  2. run npm run test

Specifications

  • Version: 3.1.0-beta1
  • Platform: Mac OS 10.12.4, node 7.5.0, npm 4.1.2

404 page is visually inconsistent

Expected Behavior

The 404 page should use current palette and container theme. SVG could use currentcolor or similar to achieve.

Actual Behavior

404 page is purple and the container has no padding.

Steps to Reproduce the Problem

  1. Navigate to https://jbrowne.io/404

Selecting an album and then switching page has a jarring jump

Expected Behavior

When switching page (i.e. Pressing next) after switching to a different album, the page does not scroll to the top.

Actual Behavior

Page scrolls to the top as the route has changed.

Steps to Reproduce the Problem

Specifications

  • Version:
  • Platform:

Exception due to animation not playing when navigating from home page

Expected Behavior

  1. Navigate to homepage
  2. Navigate to another page, i.e. journal
  3. Page transition happens and no error thrown

Actual Behavior

An exception is logged to the console when navigating away from the home page. No route transition happens

Steps to Reproduce the Problem

  1. Navigate to homepage
  2. Open developer console
  3. Navigate to another page, i.e. journal

Error logged:

ERROR Error: Unable to process animations due to the following failed trigger transitions
 @carouselTransitions has failed due to:

- `query(":enter")` returned zero elements. (Use `query(":enter", { optional: true })` if you wish to allow this.)

Specifications

  • Version: git commit 6af4d84
  • Platform: all browsers

Unit tests rarely work

Expected Behavior

Running unit tests should work

Actual Behavior

Running unit tests causes epic explosions and death (of the site or unit tests).

Unit tests in this project rarely work. In order to get the site to an acceptable state, tests should consistently work before new code is developed.

Readme is insufficient for setting up dev environment

Expected Behavior

By reading the readme, you should at least be able to set up a development environment, or there should be other supporting documentation to be able to do this.

Actual Behavior

There are no concrete instructions for setting up a development environment on a new machine.

Steps to Reproduce the Problem

Specifications

  • Version: 3.1.0-beta1
  • Platform: all

Journal no longer updates tab title

Expected Behavior

Navigating to any page on the journal should update the tab title with the following rule set:

  • Post list: site title: Journal
  • Single post: site title: <post title>

Actual Behavior

Tab title is not updated. If navigating from a different section, the previous section title is shown.

Steps to Reproduce the Problem

  1. Navigate to any section of the site, i.e. /code. Note the tab title is set to site title: Code
  2. Click the navigation item to access the Journal. Note the title does not update

Specifications

  • Version: git commit 6af4d84
  • Platform: all browsers

Admin panel: editing a post does not show word or character count

Expected Behavior

When editing a post in the admin panel, the number of words and characters remaining should be displayed.

Actual Behavior

The text characters words is shown

Steps to Reproduce the Problem

  1. Open ACP
  2. Edit a post
  3. Note the hint text under the text area

IE11 displays blank page

Expected Behavior

Page loads and renders in IE 11.

Actual Behavior

Page fails to render with SCRIPT5007: Unable to get property 'apply' of undefined or null reference
Polyfills need to be uncommented in the polyfill file.

Steps to Reproduce the Problem

  1. Open IE
  2. Load site (http://jbrowne.me.uk)

Specifications

  • Version: 3.1.0-beta1
  • Platform: Windows 10 x64

Parallax positioning fails if image is not loaded in time

Expected Behavior

When the page loads on a slow connection, the parallax backdrop is hidden and its position is not calculated until the image is loaded.

Actual Behavior

The parallax backdrop position is calculated on the bounds of the alternate text, causing the image to jump on first scroll.

Steps to Reproduce the Problem

  1. Load a page with parallax header backdrop on a slow connection
  2. Scroll down

Specifications

  • Version: 3.1 WIP
  • Platform: All

Switching journal pages displays “No posts”

Expected Behavior

Journal - change page, get loading text.

Actual Behavior

Journal - change page, get “No posts” briefly before posts load.

Steps to Reproduce the Problem

See actual behaviour.

Specifications

  • Version: 3.2 fix-post-content branch.
  • Platform: mainly Safari.

This looks like it may have something to do with the position of the call to this.onStartLoading(); in the post list component. Might need to be in the for each loop as that appears to be called each time the component is reused.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.