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

Remake Twitter handle saving with Vue and modularize account property components #33217

Merged
merged 2 commits into from
Aug 25, 2022

Conversation

Pytal
Copy link
Member

@Pytal Pytal commented Jul 13, 2022

Remake Twitter handle saving with Vue for accessibility purposes alongside preparations for allowing simple replacement of other account property sections with Vue

Incorporates improvements to accessibility from the https://github.com/nextcloud/nextcloud-vue library over the legacy PHP implementation

Deprecation

The lookupServerUploadEnabled block

<?php if ($_['lookupServerUploadEnabled']) { ?>
<div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') {
p('hidden');
} ?>">
<img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src="
<?php
switch ($_['twitterVerification']) {
case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
p(image_path('core', 'actions/verifying.svg'));
break;
case \OC\Accounts\AccountManager::VERIFIED:
p(image_path('core', 'actions/verified.svg'));
break;
default:
p(image_path('core', 'actions/verify.svg'));
}
?>" <?php if ($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) {
print_unescaped(' class="verify-action"');
} ?>>
<div class="verification-dialog popovermenu bubble menu">
<div class="verification-dialog-content">
<p class="explainVerification"></p>
<p class="verificationCode"></p>
<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
</div>
</div>
</div>
<?php } ?>
is deprecated and therefore not brought over as it is only displayed under the condition that your Twitter handle is set and the scope is public which is never the case as the public scope was deprecated in 21.0.1
/**
* Contact details visible on trusted federated servers and in the public lookup server.
*
* @deprecated 21.0.1
*/
public const VISIBILITY_PUBLIC = 'public';

Requires

@Pytal Pytal added this to the Nextcloud 25 milestone Jul 13, 2022
@Pytal Pytal self-assigned this Jul 13, 2022
@Pytal Pytal force-pushed the enh/27869/twitter branch from 76b54fb to b995f76 Compare July 14, 2022 01:15
@github-actions

This comment was marked as outdated.

@Pytal Pytal force-pushed the enh/27869/consolidate branch from 64584ef to a70eb01 Compare July 15, 2022 03:32
@Pytal Pytal force-pushed the enh/27869/twitter branch 2 times, most recently from 0219f8b to a556c67 Compare July 15, 2022 04:30
@Pytal Pytal force-pushed the enh/27869/consolidate branch from a70eb01 to ae18cdd Compare July 15, 2022 19:15
@Pytal Pytal force-pushed the enh/27869/twitter branch 3 times, most recently from 1bb7323 to f644707 Compare July 15, 2022 20:22
@Pytal
Copy link
Member Author

Pytal commented Jul 15, 2022

Keeping as draft pending merge of

@Pytal Pytal added 3. to review Waiting for reviews feature: accessibility and removed 2. developing Work in progress labels Jul 15, 2022
@Pytal Pytal force-pushed the enh/27869/twitter branch 2 times, most recently from 4dbe41e to 6cf836a Compare July 15, 2022 20:50
@github-actions

This comment was marked as outdated.

@Pytal Pytal force-pushed the enh/27869/twitter branch from 6cf836a to 446b83f Compare July 19, 2022 00:34
@Pytal Pytal force-pushed the enh/27869/consolidate branch from ae18cdd to 3430808 Compare July 21, 2022 01:14
@Pytal Pytal force-pushed the enh/27869/twitter branch 2 times, most recently from edbce9e to 77f73f8 Compare July 26, 2022 00:51
@github-actions

This comment was marked as outdated.

Base automatically changed from enh/27869/consolidate to master July 26, 2022 07:13
@Pytal Pytal requested review from artonge and marcoambrosini July 27, 2022 00:22
@Pytal Pytal force-pushed the enh/27869/twitter branch from 13ca063 to 91fc449 Compare July 27, 2022 00:53
Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

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

Nice cleanup :)

@Pytal Pytal force-pushed the enh/27869/twitter branch from 91fc449 to c6361da Compare July 29, 2022 00:13
@Pytal Pytal requested a review from artonge July 29, 2022 00:14
@Pytal Pytal force-pushed the enh/27869/twitter branch 2 times, most recently from 5e6458f to db89be3 Compare July 29, 2022 00:40
@Pytal Pytal force-pushed the enh/27869/twitter branch 3 times, most recently from 7e0cd45 to 7fd6634 Compare July 29, 2022 20:16
@Pytal Pytal force-pushed the enh/27869/twitter branch from 7fd6634 to df757f3 Compare August 9, 2022 03:09
@Pytal
Copy link
Member Author

Pytal commented Aug 9, 2022

Rebased and review-ready

@PVince81
Copy link
Member

@Pytal this PR seems to contain a lot more changes than just the Twitter handle, in case it's not a mistake, please adjust the PR title and description

@Pytal Pytal changed the title Remake Twitter handle saving with Vue Remake Twitter handle saving with Vue and modularize account property components Aug 11, 2022
@Pytal
Copy link
Member Author

Pytal commented Aug 11, 2022

@Pytal this PR seems to contain a lot more changes than just the Twitter handle, in case it's not a mistake, please adjust the PR title and description

Title updated, description already adjusted and commits already split between modularization and Twitter section

@Pytal Pytal force-pushed the enh/27869/twitter branch from df757f3 to 257ab46 Compare August 11, 2022 02:12
This was referenced Aug 12, 2022
@blizzz blizzz mentioned this pull request Aug 24, 2022
@PVince81
Copy link
Member

@Pytal rebase needed and also a second review

Pytal added 2 commits August 25, 2022 18:08
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
@Pytal Pytal force-pushed the enh/27869/twitter branch from 257ab46 to 09f6eb5 Compare August 25, 2022 18:19
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

@PVince81 PVince81 merged commit 38d0419 into master Aug 25, 2022
@delete-merged-branch delete-merged-branch bot deleted the enh/27869/twitter branch August 25, 2022 21:40
@blizzz blizzz mentioned this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants