GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Submit to Community Library panel by Jakoma02 · Pull Request #5405 · learningequality/studio Conversation
Contributor
SummaryThis PR implements a side panel for submitting channels to the Community Library.
I manually tested the changes by interacting with it in the browser, tried network throttling simulation to check the experience for users on slow networks, and tried switching the interface to Arabic to see how it handles RTL languages. Detailed changes
ReferencesResolves #5262. Reviewer guidanceThe UX of the panel when it is loading data it needs to display was invented by me and needs to be especially checked from a design perspective. Also, warnings for when the channel is already public or when the latest published version of the channel already has a submission to the community library were not present in the initial design and should be especially checked. Unresolved questions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
AlexVelezLl
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @Jakoma02! Code changes looks good! I have left some nitpick comments, we can handle them in the scope of this PR if you would have some time to take a look, otherwise no worries! We can open follow up issues for them 👐.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Nitpick) I think it'd be better to test these messages with the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I changed these to using the functions from the strings file for now in 608d3b9. I decided to check the strings content instead of something like For this reason, it is not possible to set the Do you think the current solution is still inappropriate after using the functions for the translated strings instead of the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good to me!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Comment on lines
+20
to
+29
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding these two text variables like this will end up being in a single paragraph with two sentences separated by a space. But this isn't always correct for i18n, as some languages may have other characters to separate sentences in the same paragraph. The usual suggestion is to have all sentences in a single string, so it can be translated correctly. So, for this, it'b be better to have just one string in a single span/div node, and set a
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In fact, the Do you think this is still an issue if the sentences are not separated by a space? PS: I was not aware that there were languages with other sentence separators than a space, thanks for the link!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh didn't see the display block. If it is a block element, then we can perhaps change the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed to use a
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Comment on lines
+4
to
+8
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For this side panel I think we don't need to load all previous submissions, right? As this viewset supports pagination, we can probably get some pagination/ordering params as arguments of this composable and load just the last submission in the side panel.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are of course correct, I am not sure why I did not think of that. Changed in 2709c46.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we rename this file to
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in 91850d6.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Nitpick) It was a bit difficult for me to fully understand the intention of this
I think a strategy that can declare more verbosely what the intention of the component would be to directly check the variable <template v-if="submissionsAreFinished && !latestSubmissionStatus"> ... </template> ... <template #chip> <StatusChip v-if="submissionsAreFinished && latestSubmissionStatus" ... and is a bit easier to read that the intention is to show these nodes just once the load of the submissions has finished. Another option would be to create a computed property for checking this. Let me know what you think!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason for using
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I imagined it was because of that. Perhaps using just a computed property to return the needed values are a more readable option without using the "none" magic string.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolved in bf8a914 by using a computed property instead of indexing an object.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Comment on lines
+409
to
+450
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This is one of the reasons why we now use strings files for strings 😅. One of the requirements described in the issue is not being met:
This is the new standard that we are using for user-facing strings to reuse these strings across multiple components in the same feature, and allows better organization for the translation process.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I missed the note that the strings file should be used. Changed in 608d3b9.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Comment on lines
+226
to
+227
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't seem like we are using the conceptual difference between if (!submissionsData.value?.length) return null;
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is likely not relevant anymore due to changes in 2709c46. However, I would still like to explain my thought process here, because I use similar reasoning at other places as well. Even though the Do you think there is a mistake in this thought process, and should I approach these situations differently?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a matter of preferences, and definitely, there isn't a correct answer! We can live with the conceptual difference between I've flagged it just because we should also consider how future readers of this code will react when they encounter it. e.g., suppose I have no context for this code and read these conditions. In that case, I would think that we are explicitly returning these two different values because that difference will somehow impact the final result in the UI, and would try to look at the setup method or any other child component until I finally discover that the different values does not impact the final result in the UI, these can perhaps take couple of minutes that we would have saved if we would have declare the intention better just returning the same value for both cases! But... It's just an assumption! There's no need to change it, but it's worth also considering this aspect of "what will future maintainers think when they read my code?"
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (A reason why a future maintainer would like to check the references of this property instead of just assuming that they are intentionally set to
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for elaborating, this is a good point. I was not aware that the distinction between
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks a lot @Jakoma02!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Comment on lines
+352
to
+374
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be great if we have some comments here regarding the logic behind using a delay before actually sending the submission.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a simple comment in b200765.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Comment on lines
+94
to
+109
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like we have some unwrapped strings here.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right, I missed these. Fixed in 608d3b9.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
AlexVelezLl
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks a lot for all your hard work, @Jakoma02! And thank you for all your contributions to Studio! It has been a pleasure working with you on this project over the past few months! LGTM!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. ESoCC: Create Submit to Community Library Side PanelUh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |