Skip to content

Conversation

@walthierer
Copy link
Member

Revised the module.js file to enable different displays of the modules after the website is reloaded.

@walthierer walthierer requested a review from timmwille January 27, 2026 16:48
@walthierer walthierer added feature New feature or request JavaScript labels Jan 27, 2026
this.addSorting();
this.addSearchFilter();

// ✅ ÄNDERUNG: Initiale Random-Darstellung – NUR EINMAL
Copy link
Member

Choose a reason for hiding this comment

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

please add documentation in English

// ✅ ÄNDERUNG: Initiale Random-Darstellung – NUR EINMAL
// Wichtig: nach Initialisierung, bevor User interagiert
requestAnimationFrame(() => {
this.shuffle.sort({ randomize: true });
Copy link
Member

Choose a reason for hiding this comment

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

I think this I am not sure this helps, in case to repeat training configurations this maximizes workload for the traininer/curator

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am also not sure about this. What problem are you trying to solve @walthierer ? How will this improve the platform?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this the only change you made @walthierer that affects the functioning of the app? I see a lot of changes but most of them are just syntactic sugar

Copy link
Member Author

Choose a reason for hiding this comment

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

Hello Linus,
It's not really a problem that needs solving. The project manager just requested that the modules on the landing page be rearranged. The reason for this is that the #ASKnet project is coming to an official end according to the funding perspective, so all the outputs, like the ASKtraining platform, will be presented to the founders. The idea behind rearranging the display of the modules was to liven up the landing page and not always show the same two #ASKotec images.

Copy link
Member Author

Choose a reason for hiding this comment

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

So, I created this 'feature' to demonstrate what it could look like.
BUT, nothing has been agreed yet, so please DON'T do anything for now.
Sorry for the poor programming sugar syntax – I'm not a professional!

Copy link
Member Author

Choose a reason for hiding this comment

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

I only made changes to the module.js file.

Copy link
Collaborator

Choose a reason for hiding this comment

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

So, I created this 'feature' to demonstrate what it could look like. BUT, nothing has been agreed yet, so please DON'T do anything for now. Sorry for the poor programming sugar syntax – I'm not a professional!

No problem with the syntax sugar. Just,

if it ain't broke, don't fix it 😃

@timmwille
Copy link
Member

I think this change has too many changes, that are not only aiming at the shuffle mode. It changes the internal structure of the platform view and caching/saving the selection. I am not 100% sure how to fix that properly, might be due to not up to date branch?

@saisilinus could you have a quick look on this

@timmwille timmwille marked this pull request as draft January 27, 2026 17:09
@saisilinus
Copy link
Collaborator

Please add a description for the PR @walthierer. You can use this template as a guideline:

Pull Request

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@timmwille
Copy link
Member

timmwille commented Jan 28, 2026

good Idea with #229 ... for now if you could help implementing a set switch button to "shuffle" would be awesome @saisilinus - I think this way one can still switch to "regular" unshuffled mode if needed

You can use the feature branch @walthierer created

@saisilinus
Copy link
Collaborator

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request JavaScript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants