Skip to content

Conversation

notthatjen
Copy link
Member

@notthatjen notthatjen commented Jun 30, 2020

Changes

  • Add tag attribute in ChunkCollection
  • Add limit attribute in ChunkCollection
  • Add toQuery util - this converts object to url parameters
📦 Published PR as canary version: 3.0.1-canary.7.dba0530.0

✨ Test out this PR locally via:

npm install [email protected]
# or 
yarn add [email protected]

@notthatjen notthatjen requested a review from ericclemmons June 30, 2020 16:15
@notthatjen notthatjen added documentation Changes only affect the documentation enhancement New feature or request and removed documentation Changes only affect the documentation labels Jun 30, 2020
@notthatjen notthatjen self-assigned this Jun 30, 2020
Copy link
Contributor

@ericclemmons ericclemmons left a comment

Choose a reason for hiding this comment

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

Nothing to worth blocking over, but some questions & potential improvements for my own curiousity!

Comment on lines 10 to 14
let urlParams = toQuery({
collection_identifier: identifier,
limit: limit || "",
'tags[]': tags || [],
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh! You're right. I'll use this instead thanks 💯

src/Editmode.jsx Outdated
Comment on lines 14 to 16
script.src = "https://static.editmode.com/editmode@^1.0.0/dist/editmode.js";
script.src = devMode ? "http://static.lvh.me:3002/editmode@^1.0.0/dist/editmode.js" : "https://static.editmode.com/editmode@^1.0.0/dist/editmode.js";
Copy link
Contributor

Choose a reason for hiding this comment

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

Would a check for window.location.href.includes("localhost") work for this ternary?

Copy link
Member Author

Choose a reason for hiding this comment

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

Smart! Yeah, I'll update this line 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, I'll remove the devMode ternary for now, this is just for me anyway haha.
Using window.location.href.includes("localhost") will return an error for other devs that will use editmode-react locally, since the library is pointing to editmode local server instead of the prod one.

@ericclemmons ericclemmons merged commit 7f046e0 into master Jul 8, 2020
@ericclemmons ericclemmons deleted the Implement-limit-and-taging-functionality branch July 8, 2020 16:15
@github-actions
Copy link

github-actions bot commented Jul 8, 2020

🚀 PR was released in v3.0.1 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants