Skip to content

Update URL when publishing post.#836

Merged
swissspidy merged 9 commits intomasterfrom
fix/697-address-bar-url
Apr 1, 2020
Merged

Update URL when publishing post.#836
swissspidy merged 9 commits intomasterfrom
fix/697-address-bar-url

Conversation

@miina
Copy link
Copy Markdown
Contributor

@miina miina commented Mar 27, 2020

Fixes #697

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2020

Size Change: +336 B (0%)

Total Size: 510 kB

Filename Size Change
assets/js/edit-story.js 439 kB +336 B (0%)
ℹ️ View Unchanged
Filename Size Change
assets/css/edit-story.css 3.01 kB 0 B
assets/css/stories-dashboard.css 206 B 0 B
assets/js/stories-dashboard.js 67.3 kB 0 B

compressed-size-action

Copy link
Copy Markdown
Contributor

@barklund barklund left a comment

Choose a reason for hiding this comment

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

A few comments, mostly on test

Copy link
Copy Markdown
Contributor

@spacedmonkey spacedmonkey left a comment

Choose a reason for hiding this comment

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

One quick question, otherwise this looks good.

Copy link
Copy Markdown
Contributor

@spacedmonkey spacedmonkey left a comment

Choose a reason for hiding this comment

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

SGTM

@swissspidy
Copy link
Copy Markdown
Collaborator

It's odd that hitting "Publish" merely changes the status in the editor but doesn't actually save the story until I click "Update". The URL is updated, but I still lose all changes when reloading the page.

@spacedmonkey
Copy link
Copy Markdown
Contributor

Do you mean changing the post status? I am not sure what the expected behaviour should be here.

@miina
Copy link
Copy Markdown
Contributor Author

miina commented Mar 30, 2020

It's odd that hitting "Publish" merely changes the status in the editor but doesn't actually save the story until I click "Update". The URL is updated, but I still lose all changes when reloading the page.

Hmm, that's a good point, it should use saving the Story and not just update the state.

Will check if I can add this quickly.

@spacedmonkey
Copy link
Copy Markdown
Contributor

I am not sure from a UI state point this is good. Changing the post visibility does not publish the post in gutenberg. It shouldn't do so here either. Clicking a update / publish button is clear you making a story public. Changing the visibility is not.

@miina
Copy link
Copy Markdown
Contributor Author

miina commented Mar 30, 2020

I am not sure from a UI state point this is good. Changing the post visibility does not publish the post in gutenberg. It shouldn't do so here either. Clicking a update / publish button is clear you making a story public. Changing the visibility is not.

The discussion is about the "Publish" button -- it's currently not publishing the post until "Update" is also clicked. The visibility is a different case and that should only change in case of clicking "Update".

@miina
Copy link
Copy Markdown
Contributor Author

miina commented Mar 30, 2020

@swissspidy Actually, let's create a separate issue for that, it should also "Switch to Draft" without having to Save Draft as well, currently, it's not doing that either.

Ideally, "Publish" button would have a confirmation as well then, I suppose?

Anyway -- let's create a separate issue to track the instant status change with the buttons and get this issue specific to the URL merged separately. Thoughts?

@swissspidy
Copy link
Copy Markdown
Collaborator

Good points! Makes sense to me

@miina
Copy link
Copy Markdown
Contributor Author

miina commented Mar 30, 2020

Follow-up issue: #861

@swissspidy
Copy link
Copy Markdown
Collaborator

@miina Can you resolve the conflict here?

@swissspidy swissspidy added Needs Cherry-Picking Type: Bug Something isn't working labels Mar 30, 2020
@swissspidy swissspidy dismissed barklund’s stale review March 31, 2020 14:21

Outdated review / points have been addressed

@swissspidy
Copy link
Copy Markdown
Collaborator

Another conflict emerged 😥

@miina
Copy link
Copy Markdown
Contributor Author

miina commented Apr 1, 2020

Resolved.

@swissspidy swissspidy merged commit 4809dad into master Apr 1, 2020
@swissspidy swissspidy deleted the fix/697-address-bar-url branch April 1, 2020 08:31
@swissspidy
Copy link
Copy Markdown
Collaborator

Thanks!

Merged now, but needs #861 soon-ish.

obetomuniz added a commit that referenced this pull request Apr 1, 2020
* master: (61 commits)
  Change placeholder text for pre-publish panel (#934)
  Bump @ampproject/toolbox-optimizer from 2.0.1 to 2.1.0 (#931)
  Bump eslint-plugin-testing-library from 3.0.1 to 3.0.2 (#932)
  Fix Document panel crashing (#930)
  Fix deployment (#928)
  Update URL when publishing post. (#836)
  Fix multiple warnings and proptype issues (#929)
  Added scroll behavior to layer panel when reordering by mouse (#551)
  Fix forms events in Firefox (#875)
  Add save story error message (#888)
  lints
  fixed tests
  font size calculations fixed
  Use native aspect-ration format for grid layers
  Fixed behavior for selected elements (#924)
  Fix ID prefix in auto-advanve-after (#915)
  Review fixes
  Switch to using Resource object throughout. Fix related bugs.
  Bump uuid from 7.0.2 to 7.0.3 (#913)
  Use Resource type everywhere relevant
  ...
obetomuniz added a commit that referenced this pull request Apr 1, 2020
…working

* master: (50 commits)
  Update react-moveable and disable snap digits again (#941)
  Template Animation: Added move and repeater animation (#618) (#881)
  Fix storybook hierarchy (#939)
  Fix spinner / progress bar when saving (#937)
  Change placeholder text for pre-publish panel (#934)
  Bump @ampproject/toolbox-optimizer from 2.0.1 to 2.1.0 (#931)
  Bump eslint-plugin-testing-library from 3.0.1 to 3.0.2 (#932)
  Fix Document panel crashing (#930)
  Fix deployment (#928)
  Update URL when publishing post. (#836)
  Fix multiple warnings and proptype issues (#929)
  Added scroll behavior to layer panel when reordering by mouse (#551)
  Fix forms events in Firefox (#875)
  Add save story error message (#888)
  lints
  fixed tests
  font size calculations fixed
  Use native aspect-ration format for grid layers
  Fixed behavior for selected elements (#924)
  Fix ID prefix in auto-advanve-after (#915)
  ...
obetomuniz added a commit that referenced this pull request Apr 1, 2020
* master: (56 commits)
  Add Snackbar for Invalid Links. (#912)
  Renamed files to make more sense, updated aria-label.
  Finished initial pass on Dashboard My Stories Page UI Grid View
  Update react-moveable and disable snap digits again (#941)
  Template Animation: Added move and repeater animation (#618) (#881)
  Fix storybook hierarchy (#939)
  Fix spinner / progress bar when saving (#937)
  Change placeholder text for pre-publish panel (#934)
  Bump @ampproject/toolbox-optimizer from 2.0.1 to 2.1.0 (#931)
  Bump eslint-plugin-testing-library from 3.0.1 to 3.0.2 (#932)
  Fix Document panel crashing (#930)
  Fix deployment (#928)
  Update URL when publishing post. (#836)
  Fix multiple warnings and proptype issues (#929)
  Added scroll behavior to layer panel when reordering by mouse (#551)
  Fix forms events in Firefox (#875)
  Add save story error message (#888)
  lints
  fixed tests
  font size calculations fixed
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

URL in address bar does not change after publishing story

5 participants