starting on UAC description
All checks were successful
gitea.arg.rip/vassago/pipeline/head This commit looks good

This commit is contained in:
adam 2025-05-22 17:40:51 -04:00
parent 2645d631a5
commit 8dd8b599bd
3 changed files with 11 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public class Behaver
public async Task<bool> ActOn(Message message) public async Task<bool> ActOn(Message message)
{ {
//TODO: this is yet another hit to the database, and a big one. cache them in memory! there needs to be a feasibly-viewable amount, anyway.
var matchingUACs = Rememberer.MatchUACs(message); var matchingUACs = Rememberer.MatchUACs(message);
var behaviorsActedOn = new List<string>(); var behaviorsActedOn = new List<string>();
foreach (var behavior in Behaviors.ToList()) foreach (var behavior in Behaviors.ToList())

View File

@ -20,4 +20,10 @@ public class UAC
public List<Account> AccountInChannels { get; set; } public List<Account> AccountInChannels { get; set; }
public List<Channel> Channels { get; set; } public List<Channel> Channels { get; set; }
public List<User> Users { get; set; } public List<User> Users { get; set; }
///<summary>"but past adam", you may ask. "if UACs are configured before runtime, why not write html into your source control, as part of the project,
///with the benefit of an html editor?"
///absolutely fair question. **But**: the plan is for external services, e.g., over kafka, to manage their own. So from Vassago's perspective,
///it's variably before and after compile time. shrug.emote.
///</summary>
public string Description { get; set; }
} }

View File

@ -12,6 +12,10 @@
<th scope="row">Display Name</th> <th scope="row">Display Name</th>
<td>@Model.DisplayName</td> <td>@Model.DisplayName</td>
</tr> </tr>
<tr>
<th scope="row">Description</th>
<td>@Html.Raw(Model.Description)
</tr>
<tr> <tr>
<th scope="row">Channels</th> <th scope="row">Channels</th>
<td> <td>