GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Info messages about previous submissions in create submission side panel by taoerman · Pull Request #5513 · learningequality/studio

Conversation

@taoerman

@taoerman taoerman commented Oct 29, 2025

Copy link
Copy Markdown
Contributor

Summary

  1. Updated the Submit to Community Library side panel UI according to the issue's specs.
  2. Backend supports multiple submissions ; users can resubmit with the same channel and version without deleting existing records, with all PENDING submissions kept in the review queue.

References

Fixes #5450

Reviewer guidance

run new unit tests;
test the updated UI manually.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
taoerman and others added 3 commits October 28, 2025 19:37
@taoerman
Info messages about previous submissions in create submission side panel
2c8a6e1
@pre-commit-ci-lite
[pre-commit.ci lite] apply automatic fixes
de532fc
@taoerman
fix tests bug
781d953
AlexVelezLl
AlexVelezLl requested changes Oct 31, 2025
View reviewed changes

@AlexVelezLl AlexVelezLl left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks @taoerman!! This is looking :chefs-kiss:. I've found a couple of minor issues that can be improved, but overall, this looks great!!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...uration/frontend/channelEdit/components/sidePanels/SubmitToCommunityLibrarySidePanel/Box.vue Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...uration/frontend/channelEdit/components/sidePanels/SubmitToCommunityLibrarySidePanel/Box.vue Outdated
@@ -17,7 +17,9 @@
<div class="box-icon">
<KIcon :icon="icon" />

@AlexVelezLl AlexVelezLl Oct 31, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Could we set the font-size of this icon to 18px? Right now, it feels a bit small compared to the spec.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed it! Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ation/frontend/channelEdit/components/sidePanels/SubmitToCommunityLibrarySidePanel/index.vue
v-else-if="latestSubmissionIsFinished"
class="info-section"
>
<div class="info-text">

@AlexVelezLl AlexVelezLl Oct 31, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Could we set the color of this node to gray.v_700 to match the specs? Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed it! Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ation/frontend/channelEdit/components/sidePanels/SubmitToCommunityLibrarySidePanel/index.vue Outdated
Comment on lines +42 to +48
<div
class="more-details-link"
data-test="more-details-button"
@click="showingMoreDetails = true"
>
{{ moreDetailsButton$() }}
</div>

@AlexVelezLl AlexVelezLl Oct 31, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Could we use the KButton component with the appearance set to basic-link? That'd work fine, although the specs do not look as a link, but it's okay.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed it! Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ation/frontend/channelEdit/components/sidePanels/SubmitToCommunityLibrarySidePanel/index.vue Outdated
<div class="info-text">
<template v-if="latestSubmissionStatus === null">
<template v-if="showingMoreDetails">
<div>{{ infoBoxPrimaryText }} {{ moreDetails$() }}</div>

@AlexVelezLl AlexVelezLl Oct 31, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Could we show the moreDetails$ in a different paragraph? Rather than having it next to the primary text, separated by a space.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed it! Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ation/frontend/channelEdit/components/sidePanels/SubmitToCommunityLibrarySidePanel/index.vue Outdated
<div class="channel-title">{{ channel.name }}</div>
<div>
<div class="field-annotation">{{ languagesDetected$() }}</div>
<div class="channel-title">{{ channel.name }} v{{ channel.version }}</div>

@AlexVelezLl AlexVelezLl Oct 31, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Having the title string composed by

{{ channel.name }} v{{ channel.version }} is not internationalizable, because if in any other languages a different character is used to separate text, or a different character is used to display versions, then this structure won't apply.

I think we can perhaps create a new "channelVersion$" string that receives the channel name and its version, so it can be translated properly.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks Alex, I created a placeholders {name} and {version} in communityChannelsStrings.js.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ation/frontend/channelEdit/components/sidePanels/SubmitToCommunityLibrarySidePanel/index.vue Outdated
);
const canBeEdited = computed(() => {
if (!isPublished.value || isPublic.value) return false;
return !isCurrentVersionAlreadySubmitted.value || needsReplacementConfirmation.value;

@AlexVelezLl AlexVelezLl Oct 31, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Here, I think we can allow editing the form, but prevent the user from submitting it, so they don't have to check this first before editing anything else in the modal.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed it, Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ation/frontend/channelEdit/components/sidePanels/SubmitToCommunityLibrarySidePanel/index.vue Outdated
Comment on lines +426 to +427
replacementConfirmed.value = false;
description.value = '';

@AlexVelezLl AlexVelezLl Oct 31, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I don't think we need to clear these values here. Because by this point, the modal was already unmounted, it doesn't make any difference.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed it, Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ation/frontend/channelEdit/components/sidePanels/SubmitToCommunityLibrarySidePanel/index.vue Outdated
Comment on lines +594 to +599
color: #4368f5;
cursor: pointer;
}

.more-details-link:hover {
color: #4368f5;

@AlexVelezLl AlexVelezLl Oct 31, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I think these styles will be removed because we may use KButton instead, but just as a general note: Something very weird should happen for us to use burned colors, in the vast majority of cases, we will always use the themeTokens or themePalette colors.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed it, Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread contentcuration/contentcuration/models.py
Comment on lines -2677 to -2682
constraints = [
models.UniqueConstraint(
fields=["channel", "channel_version"],
name="unique_channel_with_channel_version",
),
]

@AlexVelezLl AlexVelezLl Oct 31, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Whoops, it seems I didn't explain this well 😅. Apologies. This constraint still applies; we should not allow creating multiple submissions of the same channel version. If the user wants to create a new submission for the same channel, they must publish a new version first.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Ah, I see. There is little issue I found if we still use props.channel.version to get channel version, it would get the previous channel version. So I used a computed property of currentChannel to instead of. It works much better than props.channel.version.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Hi Alex, I have fixed the logic of checkbox. Only show checkbox if there's a pending submission AND the version has changed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
taoerman and others added 3 commits October 31, 2025 16:30
@taoerman
fix bugs
1292e35
@pre-commit-ci-lite
[pre-commit.ci lite] apply automatic fixes
3b1656e
@taoerman
fix frontend bug
0d204a9
@rtibbles rtibbles assigned AlexVelezLl Nov 4, 2025
AlexVelezLl
AlexVelezLl requested changes Nov 5, 2025
View reviewed changes

@AlexVelezLl AlexVelezLl left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This is looking awesome! Just a couple of nitpicks, and a blocking comment to remove the unnecessary migrations 👐. Thanks @taoerman!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ation/frontend/channelEdit/components/sidePanels/SubmitToCommunityLibrarySidePanel/index.vue Outdated
LoadingText,
StatusChip,
CountryField,
KCheckbox,

@AlexVelezLl AlexVelezLl Nov 5, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Here, we don't need to declare the KCheckbox component because it is already declared as part of the KDS installation here

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Nov 5, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Removed, Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ation/frontend/channelEdit/components/sidePanels/SubmitToCommunityLibrarySidePanel/index.vue Outdated

.info-text {
font-size: 14px;
line-height: 140%;

@AlexVelezLl AlexVelezLl Nov 5, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I think we can remove this line-height and rely on the global line-height style

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Nov 5, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Removed, Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...on/contentcuration/migrations/0159_restore_unique_constraint_community_library_submission.py Outdated

@AlexVelezLl AlexVelezLl Nov 5, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Since this change was never merged and published, we can just remove the 0158 and 0159 migration files! 😄 As the 0158 migration only took place on our computers 😅.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@taoerman taoerman Nov 5, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Removed, Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@taoerman
fix index.vue
f8ea41b
AlexVelezLl
AlexVelezLl approved these changes Nov 5, 2025
View reviewed changes

@AlexVelezLl AlexVelezLl left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks a lot for your hard work @taoerman! 🎉 lgtm!!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@AlexVelezLl
AlexVelezLl merged commit 434f375 into learningequality:unstable Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@AlexVelezLl AlexVelezLl AlexVelezLl approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@AlexVelezLl AlexVelezLl

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Info messages about previous submissions in create submission side panel

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@taoerman @AlexVelezLl
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.