Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Big Official 2.x to 3.x Upgrade List of Issues #33

Closed
8 of 9 tasks
ericadestoya opened this issue Oct 10, 2017 · 8 comments
Closed
8 of 9 tasks

Big Official 2.x to 3.x Upgrade List of Issues #33

ericadestoya opened this issue Oct 10, 2017 · 8 comments

Comments

@ericadestoya
Copy link
Contributor

ericadestoya commented Oct 10, 2017

  • The month method URL reads /month/MM/YYYY. However, due to weird counting or whatever is happening there, advancing past December into January reads not as /01/YYYY, but rather /13/YYYY of the previous year. e.g. if you want to check out January 1992, you can put /01/1992 into the URL, but you can also put /25/1990 into the URL.

  • Month widgets only show the current month; using the prev & next buttons take you to month pages. Clicking prev & next buttons does not open the in-widget month.

  • Feed widgets show all the events at once, rather than a couple weeks at a time with a "More Events" button.

  • Clicking events in the feed widgets opens the event page, rather than the in-widget event.

  • Locations & custom tags don't autocomplete in the event form.

  • The mailing list might work? I don't know if it does and I don't know how to test it.

  • "More Events" button appears 100% of the time in indexes, even if there are literally no events to index.

  • The paginator buttons are ugly & awkward.

  • The index breaks if the events are more than two weeks apart.

BOLD INDICATES HIGH PRIORITY

@PhantomWatson
Copy link
Owner

PhantomWatson commented Nov 17, 2017

  • Event form
    • "remove" buttons appear below input fields instead of beside them
    • "submit" button needs Bootstrap classes added
  • Mailing list signup page
    • The "all events" option for "event types" is no longer selected by default
    • Checkboxes for event types aren't selected by default
    • Under "frequency", the weekly/daily options are missing and only the "custom" option is shown
  • Other
    • A successful login doesn't redirect to home page, but just loads the login page again
    • The ME icon in the logo needs cursor: pointer
    • New JavaScript error: Lines like muncieEvents.populatedDates['11-2009'] = [01,06,08,15,22,25,27,29]; generate errors for numbers that start with zero. This could be adapted to remove the leading zeros, or these values could be changed to strings.
    • In image_manager.js, on line 242 (url: '/images/user_images/'+ImageManager.user_id,), something's not setting ImageManager.user_id and the URL ends up being .../null
    • /general (and other category pages) is showing events from all categories
    • I recommend copying code from https://github.com/BallStateCBER/datacenter-plugin-cakephp3/blob/master/src/Template/Element/pagination.ctp to update the pagination element.
    • In /tag/... pages, the words "upcoming" and "past" are no longer capitalized
    • On /tags, the category icons need cursor: pointer

@ericadestoya
Copy link
Contributor Author

"remove" buttons appear below input fields instead of beside them

This is how it is in the 2.x version now too. Should I change the both of them?

@PhantomWatson
Copy link
Owner

I'm only seeing that issue in the CakePHP 3 version:
image

The CakePHP 2 version looks correct:
image

ericadestoya added a commit that referenced this issue Dec 4, 2017
@ericadestoya
Copy link
Contributor Author

I recommend copying code from https://github.com/BallStateCBER/datacenter-plugin-cakephp3/blob/master/src/Template/Element/pagination.ctp to update the pagination element.

It wouldn't match the 2.x version if I did that, though. The current pagination element I've got uses Bootstrap pagination elements and is similar in design to the one I made for the 2.x version.

@ericadestoya
Copy link
Contributor Author

New JavaScript error: Lines like muncieEvents.populatedDates['11-2009'] = [01,06,08,15,22,25,27,29]; generate errors for numbers that start with zero. This could be adapted to remove the leading zeros, or these values could be changed to strings.

Do you have an example of the error? Because there's no error like this on my end, nothing in the console etc. So I'm lost.

@ericadestoya
Copy link
Contributor Author

Under "frequency", the weekly/daily options are missing and only the "custom" option is shown

This, I did on purpose to sort of downsize the form, so if someone wants an email every day then they can check every checkbox, or just the ones they'd like depending on the day, or if they'd like it weekly they can do that too.

@PhantomWatson
Copy link
Owner

SyntaxError: 08 is not a legal ECMA-262 octal constant

A quick way to fix the problem would be in AppController::beforeRender(), changing the line

$populated["$month-$year"][] = $day;

to

$populated["$month-$year"][] = "'$day'";

But the better solution is probably to change this line in links_primary.ctp:

"muncieEvents.populatedDates['$monthYear'] = [".implode(',', $days)."];"

to

"muncieEvents.populatedDates = " . json_encode($populated) . ";"

@ericadestoya
Copy link
Contributor Author

^Done. I wonder why I never got the error message.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants