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

Improve the tag edit page (Tag moderators only) #4137

Merged
merged 1 commit into from
Oct 2, 2019

Conversation

timrodz
Copy link
Contributor

@timrodz timrodz commented Sep 30, 2019

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Documentation Update

Description

Since it's my first time working with Ruby, I decided to learn about ERB and do minor yet pleasing styling changes:

  • Decreased indentation for tag-edit.scss
  • Imported variables & mixins for code standardisation.
  • Moved the section order around to show mainly used ones first.
  • Textarea resizing is restricted to vertical
  • Focusing on a text field will set the border to a different colour
  • The 'Save Changes' CTA has been changed to go in accord with DEV's aesthetic

Related Tickets & Documents

Improve the tag edit pages #3953

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Screen Shot 2019-10-01 at 12 15 37 AM

Added to documentation?

  • docs.dev.to
  • readme
  • no documentation needed

[optional] What gif best describes this PR or how it makes you feel?

alt_text

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Sep 30, 2019
@CLAassistant
Copy link

CLAassistant commented Sep 30, 2019

CLA assistant check
All committers have signed the CLA.

@timrodz
Copy link
Contributor Author

timrodz commented Sep 30, 2019

Forgot to mention that I'd like to work on an improved version of the colour picker. I didn't want to do those changes here as my main aim for this PR was to familiarise myself with the environment. 😄

@timrodz timrodz changed the title Feature/improve tag edit page Improve the tag edit page (Tag moderators only) Sep 30, 2019
@rhymes rhymes requested a review from jessleenyc October 1, 2019 09:32
Tags scss needed to be more cohesive with the entire DEV aeshetic, so I made the following changes:

* Decreased the margin between the `tag-edit-container` and `tag-edit-tag areas`.
* Added vertical margins to `tag-form-field` so that elements have a breathing room between them.
* Increased the width of `tag-form-text-field` so that it's a bit easier to read, and changed its resizing mode to be vertical ONLY. Resizing a textarea should feel easy.
* When clicking on a text field, the class `focus-visible` becomes active - The border color now becomes black.
* Button `tag-edit-submit` was looking very unfamiliar with all other buttons. I didn't want it to be lonely, so I gave it attributes to match the 'WRITE A POST' CTA button.
* `tag-edit-flash-error` will show background $red instead of the hardcoded hex value (#ff0000).

Modify tags/edit.html.erb

* The top area now shows a '#' sign next to the tag show section, e.g. '#beginner is the name of the tag used in Markdown.'
* The order for text edit fields is now Summary, Wiki Markdown, Rules Markdown. The reason for this is that the Rules Markdown area feels like it's optional - Not every tag will have submission guidelines or specific rules.
* Text area descriptions have changed a bit to try represent what they do better.

Fix: import variables & mixin, refactor tag-edit
@timrodz timrodz force-pushed the feature/improve-tag-edit-page branch from 1cf2b9e to 9310eb3 Compare October 2, 2019 10:20
Copy link
Contributor

@jessleenyc jessleenyc 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 to me! going to re-run travis

@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Oct 2, 2019
@benhalpern benhalpern merged commit 6a8c766 into forem:master Oct 2, 2019
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Oct 2, 2019
@timrodz timrodz deleted the feature/improve-tag-edit-page branch October 2, 2019 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants