NationalSecurityAgency / skills-client

SkillTree client libraries facilitating the rapid integration of a gamified tool training approach in conjunction with skills-service. Provides out of the box support for Angular, React, Vue.js, and native Javascript.
https://skilltreeplatform.dev
Apache License 2.0
83 stars 25 forks source link

Is there a view to show the Points/Levels across Projects? #219

Closed a-schulz closed 1 year ago

a-schulz commented 1 year ago

I'm wanted to structure my context as follows: Project = Study module Subject = Subject/Topic Skill = Ability within a subject area

The problem is, that there are multiple Study modules (Projects) and i haven't figured out how to display the points accordingly.

Also I wasn't able to change the SkillConfiguration in Runtime: `const projectId = ref("");

const changeProject = () => { SkillsConfiguration.configure({ serviceUrl: import.meta.env.VITE_API_URL, projectId: projectId.value, authenticator: import.meta.env.VITE_AUTHENTICATION_URL + "/api/users/bill@email.org/" + projectId.value + "/token", }); };`

Am grateful for any advice!

sudo-may commented 1 year ago

Hi @a-schulz! A single project in a SkillTree is meant to drive gamified training for a single web-application so the skills-client libraries do not offer displays that summarize multiple SkillTree projects. With that said, the SkillTree Dashboard itself has Progress & Ranking views that visualize the user's current progress across multiple projects.

Same goes for configuration - since 1 project equates to 1 web application an ability to switch projectIds after the initial configuration is not supported. SkillsConfiguration is a singleton and you only need to provide configuration information once per your application's runtime for single page applications.

I hope this helps!