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

REFACTOR: convert to ember component, add timeline toggle #73

Merged
merged 22 commits into from
Jan 31, 2024

Conversation

awesomerobot
Copy link
Member

@awesomerobot awesomerobot commented Dec 15, 2023

This PR refactors the TOC component to a modern Ember component, moving away from the original version which largely relied on direct DOM manipulation using vanilla JS in the initializer.

In addition it adds a toggle so users can switch between the table of contents and the topic timeline.

The acceptance tests have been replaced with system specs.

This update will require Discourse 3.2.0.beta5-dev or later, due to the reliance on some new plugin outlet arguments. The Discourse Docs plugin will also require updating to be compatible.

Screenshot 2024-01-11 at 10 36 09 AM

@janzenisaac janzenisaac marked this pull request as ready for review January 10, 2024 21:51
@awesomerobot awesomerobot changed the title DEV: make TOC an ember component, WIP REFACTOR: convert to ember component, add timeline toggle Jan 11, 2024
@awesomerobot awesomerobot merged commit 826b5fb into main Jan 31, 2024
3 checks passed
@awesomerobot awesomerobot deleted the ember-refactor branch January 31, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants