Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routable tags #5969

Merged
merged 3 commits into from
Nov 1, 2015
Merged

Routable tags #5969

merged 3 commits into from
Nov 1, 2015

Conversation

kevinansfield
Copy link
Member

refs #5845

  • updates tag settings screen to match content screen behaviour
  • updates a number of places where jQuery event handler code was not wrapped in Ember's run loop causing tests to fail

Notes:

The tag creation process did appear a little strange when converting the existing functionality. A new tag is created/saved as soon as a field loses focus and the overall tag is in a valid state - this initially caused problems as the tag now has it's own route and appears in the list but you were left on the /new route and the newly added tag was not selected meaning to create another new tag you had to select a different tag first. To work around this I automatically perform a "replace" transition as soon as a tag is saved - it fixes the UI inconsistencies but I wonder if there is a better way to handle saving/creation in general, especially if you want to abort creating a new tag?

TODO:

  • Fix meta data navigation
  • Fix pagination (currently loads all tags on first load)
  • Fix delete tag modal
  • Fix styling of invalid fields
  • Match selected tag styling with content list's styling
  • Add keyboard navigation to match content list's
  • Sort tags by ID (fixes issue with selected tag being first in list if loaded directly, once available via API sorting will be by number of posts)
  • Unit test tag form component
  • Acceptance tests for main tags screen workflows
  • Rebase and update tests for changes in Minor tag settings validation updates & fixes #5952
  • Fix Ember.run.bind where values are dynamic

@ErisDS ErisDS mentioned this pull request Oct 19, 2015
10 tasks
@kevinansfield kevinansfield force-pushed the routable-tags branch 9 times, most recently from 876b0f0 to 9886754 Compare October 22, 2015 12:14
@kevinansfield kevinansfield changed the title WIP: Routable tags Routable tags Oct 22, 2015
@kevinansfield kevinansfield force-pushed the routable-tags branch 2 times, most recently from 7f92457 to e374ea7 Compare October 22, 2015 12:35
@kevinansfield kevinansfield changed the title Routable tags WIP: Routable tags Oct 22, 2015
@kevinansfield kevinansfield changed the title WIP: Routable tags Routable tags Oct 22, 2015
@kevinansfield kevinansfield force-pushed the routable-tags branch 4 times, most recently from f38f5c6 to 23e8ad9 Compare October 22, 2015 14:08
@ErisDS ErisDS mentioned this pull request Oct 22, 2015
24 tasks
@kevinansfield kevinansfield changed the title Routable tags WIP: Routable tags Oct 22, 2015
@kevinansfield kevinansfield changed the title WIP: Routable tags Routable tags Oct 22, 2015
@kevinansfield
Copy link
Member Author

😞 Realised this needs some more work for mobile. Opening a separate PR for that as this is already huge.

@ErisDS
Copy link
Member

ErisDS commented Oct 23, 2015

Playing around with this I've spotted a couple of things:

  • the image doesn't seem to get correctly reset between tags. I uploaded an image and it appeared on all tags, and then when I refreshed there was no image on any tag again.
  • when typing in the name field, using the arrows on the keyboards moves me around the ui instead of moving be left and right inside the field

@kevinansfield
Copy link
Member Author

the image doesn't seem to get correctly reset between tags. I uploaded an image and it appeared on all tags, and then when I refreshed there was no image on any tag again.

D'oh that's come back? I was sure that had been nailed in d49991f 😞

when typing in the name field, using the arrows on the keyboards moves me around the ui instead of moving be left and right inside the field

Good catch! I need to toggle the keymaster scope somewhere to prevent that...

no issue
- adds `shouldBackgroundReloadRecord` override so that we keep the current behaviour (never background reload unless instigated manually) when we upgrade to Ember Data 2.0 which will always background-reload by default
no issue
- delete old/unused CSS that was used for an old tag component
@kevinansfield
Copy link
Member Author

@ErisDS both issues should be fixed now.

@kevinansfield kevinansfield changed the title Routable tags WIP: Routable tags Oct 27, 2015
@kevinansfield kevinansfield changed the title WIP: Routable tags Routable tags Oct 27, 2015
refs TryGhost#5845
- Updates tag settings screen to match content screen behaviour. Each now tag has it's own route that is link-able from other areas of the app
- Updates a number of places where jQuery event handler code was not wrapped in Ember's run loop
ErisDS added a commit that referenced this pull request Nov 1, 2015
@ErisDS ErisDS merged commit 5f7add0 into TryGhost:master Nov 1, 2015
@ErisDS ErisDS deleted the routable-tags branch November 1, 2015 15:34
kevinansfield added a commit to kevinansfield/Ghost that referenced this pull request Nov 2, 2015
refs TryGhost#5845, TryGhost#5969
- when on mobile devices tag management UI will only display a list and when a tag is accessed the tag settings form will slide in from the right
- tag settings form header has a 'back' button when on mobile to go back to tags list
- switching from mobile to standard modes will auto load the first tag as per standard tags screen on desktop
- if no tags are present then the blank-slate template will be shown when on mobile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants