Merge pull request #17 from smthbh/Update-QuestCompareUsability

Update quest compare usability
This commit is contained in:
Brad 2025-04-29 13:36:23 -04:00 committed by GitHub
commit ca5bb1bc8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 4 deletions

View file

@ -450,6 +450,10 @@ export class CharacterController {
const existingQuest = categories[category].find(q => q.id === quest.id); const existingQuest = categories[category].find(q => q.id === quest.id);
if (existingQuest) { if (existingQuest) {
existingQuest[source] = quest.status; existingQuest[source] = quest.status;
// Remove quest if both characters have completed it
if (existingQuest.char1Status === 'Completed' && existingQuest.char2Status === 'Completed') {
categories[category] = categories[category].filter(q => q.id !== quest.id);
}
} else { } else {
categories[category].push({ categories[category].push({
id: quest.id, id: quest.id,

View file

@ -24,7 +24,7 @@
selected selected
{{/if}} {{/if}}
{{/if}}> {{/if}}>
{{this.name}} ({{this.realmName}}) {{this.name}}
</option> </option>
{{/each}} {{/each}}
</select> </select>

View file

@ -18,7 +18,7 @@
<select id="compareCharacter"> <select id="compareCharacter">
<option value="">Select a character...</option> <option value="">Select a character...</option>
{{#each data.otherCharacters}} {{#each data.otherCharacters}}
<option value="{{this.realmName}}/{{this.name}}">{{this.name}} ({{this.realmName}})</option> <option value="{{this.realmName}}/{{this.name}}">{{this.name}}</option>
{{/each}} {{/each}}
</select> </select>
</div> </div>

View file

@ -123,9 +123,9 @@
font-weight: bold; font-weight: bold;
} }
tr.quest-diff { /* tr.quest-diff {
background-color: rgba(255, 255, 0, 0.2) !important; background-color: rgba(255, 255, 0, 0.2) !important;
} } */
tr.quest-missing-1 td:nth-child(3) { tr.quest-missing-1 td:nth-child(3) {
background-color: rgba(255, 0, 0, 0.2) !important; background-color: rgba(255, 0, 0, 0.2) !important;