Commit Graph

16 Commits

Author SHA1 Message Date
Justin DiRose abb9047d29
FIX: Ignore canonical URL on /docs
When trying to onebox topics, the canonical URL overrides the generated
OpenGraph tags, causing a less than ideal onebox for a linked KE
article.

This commit uses the existing options for the `crawlable_meta_data`
method to generate the `og:ignore_canonical` tag.

1504fe7231/app/helpers/application_helper.rb (L267-L269)
2020-10-06 11:22:18 -05:00
Justin DiRose 310f2f142c
FIX: Handle encoding on onebox excerpt
Oneboxes were breaking with bad encoding using the out of the box
excerpt on the topic. Mimicked core behaviors instead.
2020-10-05 16:17:38 -05:00
Justin DiRose 7849f8943c
FIX: 406 Error on Reload
Logic was not properly checking if there was a topic selected or not. As a result, the template for onebox data was still being loaded, causing an error. Also changed the order around TopicView to avoid unwanted effects.
2020-10-01 13:24:28 -05:00
Justin DiRose 0e1c7c7216
FEATURE: Add onebox metadata (#10)
Currently linking directly to Knowledge Explorer topics shows a generic onebox, which isn't super helpful in some cases.

This commit mimics how the theme creator plugin handles adding metadata to special occurrences. However, to get this to work, how the plugin handles showing topic contents needed to be refactored. Instead of hitting the existing topic route, the plugin implements its own version of this, including adding restrictions for topics that are not in a selected Knowledge Explorer category or tag.
2020-10-01 09:32:28 -05:00
Justin DiRose 6eb3c7574d
FEATURE: Filter by solved 2020-06-15 14:16:57 -05:00
Justin DiRose 1dd582e1b1 FEATURE: Sorting per column on topic list 2019-11-18 11:03:49 -06:00
Justin DiRose a34e4468c1
REFACTOR: Handle queries in more robust, customizable way
* Create custom query lib file

* Get topic list by category

* Get topic list with both categories and tags

* Count tags and pass back to controller in object

* Filter topic list by param-passed tag list

* FIX: Correctly serialize topic list data

* Filter results by search term (title only

* Debug commit

* Working multi-tag filtering

* FIX: case insensitive search terms

* Begin refactor of front end for new api changes

* REFACTOR: Use model for refreshing data
Instead of just using a route, which introduces full page refreshes, use
the route to pull the data initially, then update it using a model as to
refresh only the relevant parts of the page.

* Working topic load

* FIX: Visual alignment

* Refactor tests to follow new patterns

* Fixes suggested by eviltrout

* FEATURE: Load more topics

* FIX: Paginate records on return to the front end in a better fashion

* FIX: Prevent loadMore while loading more

* Fix pagination of topics to truncate list properly

* Inherit rubocop from discourse

* Make rubocop happynated

* Set list to unordered
2019-10-31 15:09:50 -05:00
Justin DiRose 5d0da1fe0a Spec tests & minor refactors 2019-10-02 16:24:40 -05:00
Justin DiRose 6057e054c4 REFACTOR: Complete filtering on back end for complexity purposes 2019-09-10 13:36:02 -05:00
Justin DiRose e7359a118b FIX: Missing count method for search results 2019-09-10 10:45:25 -05:00
Justin DiRose 7b8d3a84bd FEATURE: Use category_list for selecting categories 2019-08-30 15:04:07 -05:00
Justin DiRose 2c9b904e15 Working tag filtering of topics 2019-07-26 10:50:22 -05:00
Justin DiRose b8fd5aa8e2 Return tag count
I'm probably doing this wrong 😅
2019-07-02 16:46:18 -05:00
Justin DiRose 03a85bb3d7 Fix routing for Ember 2019-07-02 09:20:51 -05:00
Justin DiRose 578773f3c0 FEATURE: Disallow crawling of /knowledge-explorer/ via robots.txt 2019-06-28 15:05:27 -05:00
Justin DiRose 1789bac0cf FEATURE: Render Topics from Selected Categories/Tags on `/knowledge-explorer`
Add category/tag settings

Rename to knowledge explorer

Missed rename

Render a deduplicated list of topics from all selected tags and categories

Exclude category topic ids from rendered list
2019-06-28 14:56:04 -05:00