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

Feature: save title as pageslug on publish #7052

Merged
merged 17 commits into from
Oct 25, 2023

Conversation

JoshuaHungDinh
Copy link
Contributor

@JoshuaHungDinh JoshuaHungDinh commented Oct 19, 2023

Resolves Asana task: https://app.asana.com/0/1205428662243164/1205735215345414/f

Description

This PR saves the form title as the page slug when a form first publishes. After a form has been published the page slug can still be edited, however it is not respective of the form title on any subsequent change.

If the form title is not updated on the first publish the page slug will continue to to work as it previously did, generating the slug trailing with a new number.

I had looked into a central way of dispatching this in the onSave function call - however had inconsistent state changes and the page slug was being overwritten on refresh. Due to this I've opted to include conditional dispatch call's for the page slug on both form title controls.

Re: https://lw.slack.com/archives/C05QFUQ805V/p1697494770284989?thread_ts=1694639392.259359&cid=C05QFUQ805V

Visuals

Screen.Recording.2023-10-23.at.12.02.50.PM.mov

Testing Instructions

  • Create a form
  • Update the form title.
  • Publish the form.
  • View new page slug.
  • Visit page - verify pageslug works.

Pre-review Checklist

  • Relevant @unreleased tags included in DocBlocks
  • Self Review of code and UX completed

Copy link
Contributor

@jonwaldstein jonwaldstein left a comment

Choose a reason for hiding this comment

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

Looks good, nice job 👍

Copy link
Member

@rickalday rickalday left a comment

Choose a reason for hiding this comment

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

Passed manual QA tests.

@JoshuaHungDinh JoshuaHungDinh merged commit 266b6f1 into develop Oct 25, 2023
20 checks passed
@JoshuaHungDinh JoshuaHungDinh deleted the feature/use-title-as-form-slug branch October 25, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants