Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make "add time recurrence" button #1280

Draft
wants to merge 35 commits into
base: original-improve-timeslots-page
Choose a base branch
from

Conversation

hmpf
Copy link
Contributor

@hmpf hmpf commented Mar 21, 2025

Scope and purpose

Fixes #1275

Contributor Checklist

Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to Argus can be found in the
Development docs.

  • Added a changelog fragment for towncrier
  • Added/amended tests for new/changed code
  • Added/changed documentation
  • Linted/formatted the code with ruff and djLint, easiest by using pre-commit
  • The first line of the commit message continues the sentence "If applied, this commit will ...", starts with a capital letter, does not end with punctuation and is 50 characters or less long. See our how-to
  • If applicable: Created new issues if this PR does not fix the issue completely/there is further work to be done
  • If this results in changes in the UI: Added screenshots of the before and after
  • If this results in changes to the database model: Updated the ER diagram

@hmpf hmpf changed the title Make add timerecurrnce button Make "add time recurrence" button Mar 21, 2025
@hmpf hmpf added the frontend Affects frontend label Mar 21, 2025
@hmpf hmpf requested a review from podliashanyk March 21, 2025 14:42
@hmpf hmpf force-pushed the make-add-timerecurrnce-button branch 2 times, most recently from 3227890 to 6c6912d Compare March 24, 2025 07:12
podliashanyk and others added 2 commits March 24, 2025 15:02
Missing: Theme-ability so that it is always visible in all themes.

Needs user feedback on: Visibilty/thickness for kiosk mode/big screen
Primary in incident list page, color type not set elsewhere.
@hmpf hmpf self-assigned this Mar 25, 2025
hmpf and others added 18 commits March 25, 2025 10:00
Mark v1 as deprecated in the OpenAPI schema.

* Deprecate all V1 views that differ from V2
* Deprecate V1 views that do not differ from V2

  Turns out it is necessary to subclass views to make the `deprecated`
  attribute mark the correct view.

---------

Co-authored-by: Johanna England <johanna.england@sikt.no>
This should make it so it no longer shows an error
message if you enter a tag that doesnt match any existing
incidents. Instead you will get an empty list of incidents.
Per now it only contains Name field. But in case more fields will be
added, they will be styled as text field. This can easily be changed via
widget tweaks if needed.
.. with the help of widget tweaks
Makes it so you have to type in HH:MM format with little help
other than placeholder. type=time is nicer, but depending on the
local language of your computer it might show 24h or AM/PM.
We want to avoid AM/PM at pretty much all costs so we use this
basic field for selecting time with goal of making
something nicer later that will be reused other places.
.. using further improvements to TimeRecurrence.__str__
Otherwise the last message won't (I know, nitpick)
@hmpf hmpf force-pushed the make-add-timerecurrnce-button branch from 6c6912d to 7027f34 Compare March 26, 2025 06:49
Copy link

@hmpf hmpf added the help wanted Extra attention is needed label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Affects frontend help wanted Extra attention is needed
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

4 participants