Skip to content

Conversation

@seanmarcia
Copy link
Member

@seanmarcia seanmarcia commented Feb 4, 2025

Resolves #18

image image

@seanmarcia seanmarcia force-pushed the create_topics branch 2 times, most recently from 7e01f0b to a3e1e8b Compare February 4, 2025 14:21
@seanmarcia seanmarcia requested a review from Oli0li February 4, 2025 14:22
@seanmarcia seanmarcia force-pushed the create_topics branch 2 times, most recently from 8d418e7 to 736da1d Compare February 4, 2025 14:28

<div class="mt-4">
<div class="col-12 d-flex justify-content-end">
<%= form.submit "Create Topic", class: "btn btn-primary me-1 mb-1" %>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since this is also used for the #edit action, maybe changing the wording to "Save" would be better to apply both for #create and #edit.

Suggested change
<%= form.submit "Create Topic", class: "btn btn-primary me-1 mb-1" %>
<%= form.submit "Save Topic", class: "btn btn-primary me-1 mb-1" %>

<div class="col-md-4">
<div class="form-group">
<%= form.label :title, style: "display: block" %>
<%= form.text_field :title, id: "basicInput", class: "form-control", autofocus: true %>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see we have a few "id: "basicInput"" in the app, sometimes within the same page, but I don't think we actually need them? I think we got them when we copy/pasted code from Mazer and forgot to remove it.

t.text :description
t.references :language, null: false, foreign_key: true
t.references :provider, null: false, foreign_key: true
t.boolean :archived, default: false
Copy link
Collaborator

Choose a reason for hiding this comment

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

On the wiki, Danny had mentioned using enumerables for states like "active" and "archived". Do we want to do this or should we go with a boolean?

@Oli0li
Copy link
Collaborator

Oli0li commented Feb 5, 2025

Sorry, I hadn't realised we already had another PR for this, so please ignore my comments!

@seanmarcia seanmarcia closed this Feb 5, 2025
@dmitrytrager dmitrytrager deleted the create_topics branch February 13, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Topic Model Implementation

3 participants