Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Prompt user if uploading settings_data.json #439

Merged
merged 2 commits into from
Mar 21, 2018
Merged

Conversation

t-kelly
Copy link
Contributor

@t-kelly t-kelly commented Mar 14, 2018

What are you trying to accomplish with this PR?

Fixes #404

image

Still TODO

  • Clean things up
  • Add reference to docs on how to ignore settings_data.json in the .env file.
  • Add config option for slate.config.js

@t-kelly t-kelly self-assigned this Mar 14, 2018
@wizzy94
Copy link

wizzy94 commented Mar 17, 2018

Pull

Copy link
Contributor

@bertiful bertiful left a comment

Choose a reason for hiding this comment

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

Tested on my side, everything checks out 🎩. Have some comments on the wording of things however.

return maybeDeploy;
}

function promiseThemekitConfig(files) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Unused argument.

const figures = require('figures');
const flatten = require('array-flatten');
const minimatch = require('minimatch');
const wrap = require('word-wrap');
Copy link
Contributor

Choose a reason for hiding this comment

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

Dependency not used.

)} It looks like you are about to upload the ${chalk.bold(
'settings_data.json',
)} file.\n` +
` This can reset any theme setting customizations you've done in the\n` +
Copy link
Contributor

Choose a reason for hiding this comment

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

I say we remove the contractions and go with "you have" (we're using "you are" above).

` Or to disable this prompt, add the following to your slate.config.js file:\n`,
);
console.log(
` ${chalk.cyan(`'slate-sync': { promptSkipSettings: false }`)}\n`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it's me but I find the property name, and the description on line 46, slightly confusing.

First instinct by reading this: it should be promptSkipSettings: true in order to disable the prompt. I understand what you're saying but I think it's the word "skip" that's throwing me off.

We should go with either promptSettings: false or keep as is but rename to skipPromptSettings.

id: 'promptSkipSettings',
description:
'Enable/disable the prompt to skip uploading settings_data.json',
default: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

This will need to be updated based on my comment above.

@t-kelly t-kelly merged commit f62c69b into 1.x Mar 21, 2018
@t-kelly t-kelly deleted the prompt-if-settings-data branch March 21, 2018 14:40
@lock
Copy link

lock bot commented Oct 26, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants