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

feat: add apple books highlight links (implement suggestions) #27

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

absorpheus
Copy link
Contributor

@absorpheus absorpheus commented Jul 10, 2024

This PR implements the suggestions made from #24

  • refactor(core): update types, constants, schemas, seedData and methods

  • refactor(core): update default template to include highlight location

  • test(db): update migrations to enable new database tests

  • test: add basic highlight links tests for db

  • test: update mock tests, plugin docs and plugin info

  • docs(README): update preview screenshot to show highlight links feature

  • docs(README): add highlight location template variable

@absorpheus absorpheus changed the title Feature: Add Apple Books highlight links feat: add apple books highlight links (fix suggestions) Jul 10, 2024
@absorpheus
Copy link
Contributor Author

absorpheus commented Jul 10, 2024

The database tests run successfully on my machine however it's failing on GitHub because test/mocks/testDatabase.sqlite is in .gitignore so it's possibly running the db tests on an outdated database. (hence the error SqliteError: table ZAEANNOTATION has no column named ZANNOTATIONLOCATION).

I think the GitHub workflow is not generating the updated testDatabase.sqlite file before running npm run coverage.

@bandantonio bandantonio force-pushed the feature/apple-books-highlight-links branch from ae82216 to f85090b Compare July 10, 2024 21:50
Copy link
Owner

@bandantonio bandantonio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@absorpheus Great work, thank you! 👏
Just one clarification left, please check.

src/template.ts Show resolved Hide resolved
@bandantonio bandantonio added this to the ⏳ 1.3.0 milestone Jul 10, 2024
@absorpheus absorpheus changed the title feat: add apple books highlight links (fix suggestions) feat: add apple books highlight links (implement suggestions) Jul 11, 2024
@bandantonio
Copy link
Owner

@absorpheus I will merge the changes later today as a new release version.
Thanks for your contribution.

@absorpheus
Copy link
Contributor Author

@bandantonio You're welcome 😄

@bandantonio bandantonio added the enhancement New feature or request label Jul 11, 2024
@bandantonio bandantonio force-pushed the feature/apple-books-highlight-links branch 2 times, most recently from ab48da7 to 1a41bb9 Compare July 11, 2024 18:25
* refactor(core): update types, constants, schemas, seedData and methods
* refactor(core): update default template to include highlight location
* test(db): update migrations to enable new database tests
* test: add basic highlight links tests for db
* test: update mock tests, plugin docs and plugin info
* docs(README): update preview screenshot to show highlight links feature
* docs(README): add highlight location template variable
@bandantonio bandantonio force-pushed the feature/apple-books-highlight-links branch from 1a41bb9 to 65e04ec Compare July 11, 2024 18:26
@bandantonio bandantonio merged commit e27aa2f into master Jul 11, 2024
4 checks passed
bandantonio pushed a commit that referenced this pull request Jul 11, 2024
* refactor(core): update types, constants, schemas, seedData and methods
* refactor(core): update default template to include highlight location
* test(db): update migrations to enable new database tests
* test: add basic highlight links tests for db
* test: update mock tests, plugin docs and plugin info
* docs(README): update preview screenshot to show highlight links feature
* docs(README): add highlight location template variable
@bandantonio bandantonio deleted the feature/apple-books-highlight-links branch July 11, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants